Open History to see the last commit
1---
2id: createReplayStream
3title: createReplayStream
4---
5
6```ts
7function createReplayStream(recording): AsyncIterable<AGUIEvent>;
8```
9
10Defined in: [packages/ai/src/activities/chat/stream/processor.ts:3875](https://github.com/TanStack/ai/blob/main/packages/ai/src/activities/chat/stream/processor.ts#L3875)
11
12Create an async iterable from a recording
13
14## Parameters
15
16### recording
17
18[`ChunkRecording`](../interfaces/ChunkRecording.md)
19
20## Returns
21
22`AsyncIterable`\<[`AGUIEvent`](../type-aliases/AGUIEvent.md)\>