Skip to main content
AgentRunResult contains durable run state, messages, steps, usage and cost, warnings, finish reasons, and final output. Use text_stream() for answer text and item_stream() for provider and runtime items. Python item values are dictionary-shaped rather than the TypeScript discriminated AgentItem union.
Keep provider-specific dictionary access behind one application adapter, then persist the completed result for later reconstruction.
Last modified on July 26, 2026