Skip to main content
Agent.stream(...) runs the same state machine as run(...) and returns a replayable AgentStreamResult:
Use reasoning_stream(), item_stream(), tool_stream(), or full_stream() for other projections. Python items are currently dictionary-shaped rather than a native discriminated union. Call cancel() to stop the active model stream and pass cancellation into local runtime work.
Last modified on July 26, 2026