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

> Stream agent text and lifecycle events with replayable async enumerables.

`Agent.Stream(...)` runs the same state machine as `Run(...)` and returns `AgentStreamResult`:

```csharp theme={null}
var stream = agent.Stream(new RunOptions { Input = input, Client = client });

await foreach (var delta in stream.TextStream())
{
    Console.Write(delta);
}

var completed = await stream.GetResult();
```

Use `FullStream()` for model, tool, step, and run events. Consumers can replay the captured async sequence independently. Call `Cancel()` when the product should stop the active run; cancellation is passed to model requests and local tools.

## Related

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