Posted in

AG-UI Streams Typed Agent Updates to UIs via SSE

Building interactive agent interfaces just changed with AG-UI and Microsoft Agent Framework integration. The update targets a common failure mode in agent apps. Users currently see spinners while agents run multi-step tool chains.

AG-UI standardizes agent-to-UI streaming with typed events

AG-UI introduces an event-based protocol that replaces ad hoc streaming formats. Instead of raw token streams, UIs receive explicit, typed events. Examples include TOOL_CALL_START, TEXT_MESSAGE_CONTENT, RUN_FINISHED, and error events. This adds structured observability during long runs. The protocol is framework-agnostic, so one UI can work across Microsoft Agent Framework, LangGraph, and CrewAI.

What developers must change in client and server implementations

Developers shift from request-response handlers to event consumers. The backend emits a sequence of AG-UI events while the agent reasons and calls tools. The UI subscribes and renders progress, intermediate outputs, and tool status. AG-UI uses Server-Sent Events over standard HTTP. That reduces proxy issues versus WebSockets. It also simplifies reconnection handling using browser-native SSE support.

“AG-UI is a fairly new event-based protocol that standardizes how agents communicate with user interfaces.”

Teams should evaluate where their agents have long tool latencies or multi-step planning. If users need progress visibility, implement AG-UI events and render them directly in the UI. Next, ensure your chosen framework emits consistent tool and error events, then test reconnection and partial results behavior.

Key points from the article:

  • AG-UI standardizes agent-to-UI events for consistent streaming behavior.
  • Typed events expose tool starts, tool results, text deltas, and errors.
  • SSE provides simple, HTTP-friendly server-to-client event delivery.
  • Framework-agnostic clients reduce rewrites across agent backends.
  • Protocol-managed threads reduce manual state and history tracking.
  • Related Coverage:

    From the Microsoft Developer Community Blog articles