Skip to main content
Streaming displays tokens as they are generated instead of waiting for the full response. This dramatically improves perceived latency.

Agent Streaming

Event Types

Full Event Handling

Model Streaming

Stream directly from a model:
The RunCompleted event in agent streaming contains the full RunOutput object in event.output, giving you access to aggregated metrics and the complete message history.