Skip to main content
POST
Deploy API: AGUI Server

AGUI API

AG-UI protocol endpoints for agents deployed via AGUI(agent).get_router(). Compatible with CopilotKit.

Base URL + Playground

Base URL: http://localhost:8000

Endpoints

POST /agui

Run agent with Server-Sent Events streaming.
string
required
Thread identifier
string
required
Run identifier
array
required
Conversation messages array
Response (SSE Stream):
The custom event carries a praisonai.* name. Clients that do not recognise a custom name must ignore it — see PraisonAI custom events.

GET /status

Check agent availability.
none
No parameters required.
Response:

Event Types

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 adding these is backwards-compatible. Recoverable events (retry, model_fallback, stream_unavailable) are deliberately not run_error — the run continues. run_error is terminal in AG-UI. Branch on event.type === 'custom' and inspect event.name for the praisonai. prefix:

Message Format

Input Message:

Error Events

A terminal error reaches the client as run_error. This now includes mid-stream provider failures — a provider-side error part-way through a response is surfaced as run_error instead of being silently swallowed.
For recoverable conditions where the run continues (retry, model fallback, streaming fallback), the client receives a custom praisonai.* event instead — see PraisonAI custom events.

CopilotKit Integration