Code
cookbook/05_agent_os/interfaces/agui/basic.py
Usage
Key Features
- Web Interface: Browser-based chat through an AG-UI frontend like Dojo or CopilotKit
- Real-Time Streaming: Responses stream token-by-token
- Markdown Support: Rich text formatting in responses
- DateTime Context: Time-aware responses via
add_datetime_to_context - Open Protocol: Works with any AG-UI-compatible frontend
Setup Frontend
- Clone the AG-UI repository:
git clone https://github.com/ag-ui-protocol/ag-ui.git - Install the TypeScript SDK:
cd ag-ui/typescript-sdk && pnpm install - Build the Agno integration:
cd integrations/agno && pnpm run build - Start Dojo:
cd ../../apps/dojo && pnpm run dev - Open
http://localhost:3000and select the Agno integration