Skip to main content
The stream result exposes replayable consumers for text and provider items.
Use full_stream when the interface also needs reasoning deltas, tool progress, approval checkpoints, or lifecycle events.
Ruby item values are generic hashes rather than a closed typed item union. Validate the fields your UI consumes and keep an unknown-item fallback for future provider events.
Ruby consumes the provider stream synchronously and makes the collected sequence replayable. It does not create a background push service by itself.
Last modified on July 26, 2026