Skip to main content
Deploy agents as AG-UI servers for CopilotKit and other AG-UI compatible frontends.

CLI

Python

Expected Output:
Verify:
Response:

Verify Routes

After include_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

CopilotKit Integration

Send AGUI Request

Response (SSE Stream):

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 as custom 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