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.