> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Streaming

> Consume Ruby agent text, reasoning, item, and lifecycle streams.

`Agent#stream` returns a replayable `StreamResult`:

```ruby theme={null}
stream = agent.stream(input: "Research this topic", client: client)

stream.text_stream.each { |delta| print delta }
completed = stream.result
```

Use `reasoning_stream`, `item_stream`, or `full_stream` for other projections. Ruby consumes provider streaming synchronously and then exposes replayable sequences to additional consumers.

Item values are currently hashes rather than the TypeScript discriminated item union.

## Related

* [Tools](./agent-sdk-tools)
* [Observability and DevTools](./agent-sdk-observability)
