ag2-ag-ui
Installation
SKILL.md
AG-UI integration
When to use
- The user is building a web UI (React / Next.js / anything HTTP+SSE) that should talk to an AG2 beta agent.
- They want streaming text, tool-call rendering, shared state sync, or HITL checkpoints surfaced to the frontend with a standard protocol — not a custom REST/WebSocket contract.
- They're using or considering CopilotKit (the recommended React client).
For a custom narrow-purpose API where you own the contract end-to-end, skip AG-UI and write a plain endpoint instead.
Supported AG-UI features
| Feature | Status |
|---|---|
Streaming text events (TEXT_MESSAGE_*, TEXT_MESSAGE_CHUNK) |
✓ |
Backend tool lifecycle (TOOL_CALL_START / _ARGS / _RESULT / _END) |
✓ |
Frontend-tool dispatch (TOOL_CALL_CHUNK for client tools in RunAgentInput.tools) |
✓ |
Shared-state snapshots (STATE_SNAPSHOT) |
✓ |
| Human input checkpoints (surfaced as user-visible message events) | ✓ |