from fastapi import FastAPI
from ag_kit_py.server import AGKitAPIApp
# Your existing FastAPI app
app = FastAPI(title="My Application")
# Add AG-Kit routes
agkit_app = AGKitAPIApp().build(create_agent, base_path="/api/agent")
app.mount("/api/agent", agkit_app)