> ## 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 PHP agent text, reasoning, item, and lifecycle streams.

`Agent::stream(...)` returns `AgentStreamResult`:

```php theme={null}
$stream = $agent->stream($input, $client);

foreach ($stream->textStream() as $delta) {
    echo $delta;
}

$completed = $stream->result;
```

Use `reasoningStream()`, `itemStream()`, or `fullStream()` for other projections. Each iterable is replayable after events have been consumed from the synchronous provider stream.

PHP item values remain generic arrays and objects rather than the TypeScript discriminated item union.

## Related

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