Open History to see the last commit
1---
2id: getChunkThreadId
3title: getChunkThreadId
4---
5
6```ts
7function getChunkThreadId(chunk): string | undefined;
8```
9
10Defined in: packages/ai/src/utilities/chunk-ids.ts:18
11
12Thread id on the spec event, or `metadata.tanstack.threadId` after normalize.
13
14## Parameters
15
16### chunk
17
18[`AGUIEvent`](../type-aliases/AGUIEvent.md)
19
20## Returns
21
22`string` \| `undefined`