> ## 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.

# स्ट्रीमिंग

> PHP एजेंट के टेक्स्ट, reasoning, item और lifecycle stream का उपयोग करें।

`Agent::stream(...)` एक `AgentStreamResult` लौटाता है:

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

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

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

अन्य projection के लिए `reasoningStream()`, `itemStream()` या `fullStream()` उपयोग करें। provider के synchronous stream से इवेंट पढ़ लेने के बाद भी हर iterable को दोबारा चलाया जा सकता है।

PHP item वैल्यू सामान्य array और object ही रहती हैं; वे TypeScript का discriminated item union नहीं हैं।

## संबंधित विषय

* [टूल](./agent-sdk-tools.mdx)
* [Observability और DevTools](./agent-sdk-observability.mdx)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.