AG-UI
Serve agents and teams to AG-UI clients with tools, media, state, and approval events.
Each example starts its own server. Use the endpoint shown on its page and run one standalone server on port 7777 at a time.
| Example | What it demonstrates |
|---|---|
| Basic agent | Send a complete AG-UI request and consume the event stream. |
| Backend and frontend tools | Compare Python tools with client-defined external execution. |
| Media input | Pass media parts to a Gemini agent. |
| Structured output | Collect the streamed result and validate it with Pydantic. |
| Reasoning | Translate the separate reasoning stage into AG-UI events. |
| Shared state | Receive state snapshots and JSON Patch deltas. |
| Human approval | Resolve a backend tool confirmation through the client. |
| Research team | Stream a team and its member activity. |
| Multiple interfaces | Mount separate chat and analysis endpoints. |
| OpenUI | Serve the companion interface for charts, follow-ups, and forms. |