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