RUN_STARTED, TEXT_MESSAGE_CONTENT, TOOL_CALL_START, and REASONING_MESSAGE_CONTENT are emitted in the correct AG-UI sequence during every Stream call.
Basic integration
Enable streaming, then forward serialized events to your frontend over SSE, WebSocket, or Redis:event.ToJSON() on any AgentEvent to get AG-UI-compatible JSON.
Reference app
Agent Chat — production-shaped split API/worker app with Postgres, SSE streaming, and CopilotKit UI.Example
AG-UI
Go SSE server + CopilotKit UI
Related
Streaming
Stream API and event types
Approvals
CUSTOM events and OnApproval
Sub-agents
Event fan-in from delegated agents
Agent Chat
Full-stack reference application