Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

getChunkRunId.md

22 lines430 Bytes

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](https://github.com/TanStack/ai/blob/main/packages/ai/src/utilities/chunk-ids.ts#L9)
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`