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.

ExampleWhat it demonstrates
Basic agentSend a complete AG-UI request and consume the event stream.
Backend and frontend toolsCompare Python tools with client-defined external execution.
Media inputPass media parts to a Gemini agent.
Structured outputCollect the streamed result and validate it with Pydantic.
ReasoningTranslate the separate reasoning stage into AG-UI events.
Shared stateReceive state snapshots and JSON Patch deltas.
Human approvalResolve a backend tool confirmation through the client.
Research teamStream a team and its member activity.
Multiple interfacesMount separate chat and analysis endpoints.
OpenUIServe the companion interface for charts, follow-ups, and forms.