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

# स्ट्रीमिंग

> Python एजेंट का टेक्स्ट, reasoning, items, tools और lifecycle events stream करें।

`Agent.stream(...)`, `run(...)` जैसी ही state machine चलाता है और दोबारा पढ़ा जा सकने वाला `AgentStreamResult` लौटाता है:

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

for delta in stream.text_stream():
    print(delta, end="", flush=True)

completed = stream.result()
```

अन्य projection के लिए `reasoning_stream()`, `item_stream()`, `tool_stream()` या `full_stream()` उपयोग करें। Python items अभी dictionary हैं, native discriminated union नहीं।

सक्रिय model stream रोकने और स्थानीय runtime काम तक cancellation पहुँचाने के लिए `cancel()` कॉल करें।

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

* [टूल](./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.