API Endpoints
Deploy API: AGUI Server
AG-UI protocol endpoints for CopilotKit integration
POST
Deploy API: AGUI Server
AGUI API
AG-UI protocol endpoints for agents deployed viaAGUI(agent).get_router(). Compatible with CopilotKit.
Base URL + Playground
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
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.
Event Types
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 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 asrun_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.
custom praisonai.* event instead — see PraisonAI custom events.
CopilotKit Integration
Related
- AGUI Server - Deploy agents as AGUI server
- A2A API - A2A protocol endpoints
- Agents API - HTTP REST endpoints

