AgentsAgentBase
Start a FastAPI web server powered by uvicorn to serve this agent. The server exposes endpoints for SWML document delivery, SWAIG function execution, post-prompt summary handling, and health checks.
This method blocks until the server is shut down (e.g., via SIGINT).
For most cases, use run()
instead — it auto-detects the environment and calls serve() in server mode or
dispatches to the appropriate serverless handler.
The server automatically includes:
/health and /ready health check endpointsHost override. Defaults to the value set in the constructor.
Port override. Defaults to the value set in the constructor.
None — This method blocks and does not return until the server is stopped.