Ag2 Ag UI

Expose an AG2 `Agent` over the AG-UI protocol so a frontend (CopilotKit, custom React/Next.js, or any AG-UI client) can stream responses (text and reasoning), render tool calls, sync shared state, and track sub-task steps. Wraps the agent with `AGUIStream(agent)` and mounts it in FastAPI via `stream.dispatch(...)` or `stream.build_asgi()`. Use when the user wants a web frontend in front of an AG2 agent rather than a CLI / script.

ag2ai 98f6245 7.0 KB Updated

File contents

ag2ai/ag2-skills/tree/main/skills/ag2-ag-ui commit 98f624579c

Frequently asked questions

npx skillmds@latest add ag2ai/ag2-ag-ui