Stream run events
When you create a run, you can stream its progress in real time using Server-Sent Events (SSE). The stream delivers events as the agent starts, produces state updates, and finishes.
Connecting to the stream
To stream events for a run, make a GET request to the stream endpoint after creating the run:
The response uses the text/event-stream content type and keeps the connection open until the run completes.
Event format
Events are emitted in AG-UI format. Each event is delivered as a standard SSE message:
Event types
Handling the stream
A typical integration connects to the stream immediately after creating a run:
If a run has already completed, the stream replays all events from the beginning and closes once the final event is delivered. Connect promptly after creating the run — stream data is retained for a limited time after completion.