CLI
Python
Verify Routes
Afterinclude_router, app.routes won’t list /agui and /status as flat paths — Starlette nests them under an internal _IncludedRouter. The endpoints work at runtime; verify them with TestClient.
If you need to inspect route paths programmatically, read them off the router instead of the app:
agents.yaml
AGUI server is Python-only. No agents.yaml support.AGUI Endpoints
Nested-router paths may not flatten into the top-level OpenAPI schema at
/openapi.json. The endpoints are fully reachable; this only affects introspection and auto-generated docs tooling that reads app.routes. See Verify Routes.AGUI Parameters
Concurrency & Thread Isolation
OneAGUI(agent=agent) instance safely serves many concurrent clients — each run’s streamed tokens stay in its own SSE stream.
A shared Agent still means a shared chat_history. The request’s threadId does not create a separate conversation history. For per-thread memory, give each thread its own Agent.
Agent per thread — mount one
AGUI router per thread (or tenant) with prefix:
The server receives the request’s
threadId and messages, but does not replay them into the Agent’s history. Separate history needs the Agent-per-thread pattern above.CopilotKit Integration
Send AGUI Request
Event Types
A terminal error reaches the client as
run_error, now including mid-stream provider failures that were previously silently dropped. Recoverable conditions (retry, model fallback, streaming fallback) arrive as custom praisonai.* events while the run continues.
PraisonAI custom events
AG-UI has no first-class frames for recoverable failures or user-visible progress. PraisonAI carries these ascustom events with a praisonai.* name. AG-UI clients are expected to ignore custom event names they do not recognise, so these are backwards-compatible.
See the AGUI API reference for the SSE payload and a JavaScript handler.
JavaScript Client
Troubleshooting
Related
- AGUI API Reference - Full AGUI endpoint documentation
- A2A Server - Deploy as A2A server
- Agents Server - Deploy as HTTP server

