Open History to see the last commit
1---
2id: createReplayStream
3title: createReplayStream
4---
5
6# Function: createReplayStream()
7
8```ts
9function createReplayStream(recording): AsyncIterable<StreamChunk>;
10```
11
12Defined in: [activities/chat/stream/processor.ts:1078](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1078)
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`\<[`StreamChunk`](../type-aliases/StreamChunk.md)\>