AG-UI, the Agent-User Interaction Protocol, standardizes how AI agents connect to frontend applications.Documentation Index
Fetch the complete documentation index at: https://agno-v2-fix-deploy-docs-restructure.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Migration from Apps: For migration from
AGUIApp, see the v2 migration guide for complete steps.Example usage
Run the frontend
Use Dojo (
ag-ui’s frontend) as an advanced, customizable interface for AG-UI agents.- Clone:
git clone https://github.com/ag-ui-protocol/ag-ui.git - Install dependencies in
/ag-ui/typescript-sdk:pnpm install - Build the Agno package in
/ag-ui/integrations/agno:pnpm run build - Start Dojo following the instructions in the repository.
Custom Events
Custom events created in tools are automatically delivered to AG-UI in the AG-UI custom event format. Creating custom events:Core Components
AGUI(interface): Wraps an AgnoAgentorTeaminto an AG-UI compatible FastAPI router.AgentOS.serve: Serves the FastAPI app (including the AGUI router) with Uvicorn.
AGUI mounts protocol-compliant routes on the app.
AGUI interface
Main entry point for AG-UI exposure.
Initialization Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
agent | Optional[Union[Agent, RemoteAgent]] | None | Agno Agent or RemoteAgent instance. |
team | Optional[Union[Team, RemoteTeam]] | None | Agno Team or RemoteTeam instance. |
prefix | str | "" | Route prefix (e.g., /chat, /web-research). |
tags | Optional[List[str]] | ["AGUI"] | OpenAPI tags for the router. |
agent or team.
Key Method
| Method | Parameters | Return Type | Description |
|---|---|---|---|
get_router | None | APIRouter | Returns the AG-UI FastAPI router and attaches endpoints. |
Endpoints
Mounted at the interface’s route prefix (root by default):POST /agui: Main entrypoint. AcceptsRunAgentInputfromag-ui-protocol. Streams AG-UI events.GET /status: Health/status endpoint for the interface.
ag-ui-protocol docs for payload details.
Serving AgentOS
UseAgentOS.serve to run the app with Uvicorn.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
app | Union[str, FastAPI] | required | FastAPI app instance or import string. |
host | str | "localhost" | Host to bind. Override with AGENT_OS_HOST env var. |
port | int | 7777 | Port to bind. Override with AGENT_OS_PORT env var. |
reload | bool | False | Enable auto-reload for development. |
reload_includes | Optional[List[str]] | None | File patterns to watch. Auto-adds *.yaml, *.yml. |
reload_excludes | Optional[List[str]] | None | File patterns to exclude from reload. |
workers | Optional[int] | None | Number of Uvicorn worker processes. |
access_log | bool | False | Enable Uvicorn access logging. |