> ## 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 Go agent text and events with replayable consumers.

`Agent.Stream(...)` returns a replayable `StreamResult`:

```go theme={null}
stream := agent.Stream(ctx, phaseoagent.RunOptions{Input: input, Client: client})

for delta := range stream.Text() {
  fmt.Print(delta)
}

completed, err := stream.Result()
```

Use `Events()` for lifecycle and provider events. Call `Cancel()` to cancel the stream context and active model request.

Go does not yet expose the same native typed item consumer as TypeScript; use the event sequence and completed run records for structured product timelines.

## Related

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