Skip to main content
Stream exposes a replayable event sequence for live agent interfaces. Text deltas are the simplest consumer; the full event stream also carries reasoning, provider items, tool progress, lifecycle changes, and the final response.
Go currently exposes provider items through the generic AgentEvent details map rather than a closed typed item union. Switch on event.Type, validate item payloads at your UI boundary, and keep an unknown-event fallback for forward compatibility.
The event history is replayable after completion, so separate consumers can render text, persist events, and build an audit timeline without starting another model request.
Last modified on July 26, 2026