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