TanStack

getChunkThreadId

Function: getChunkThreadId()

ts
function getChunkThreadId(chunk): string | undefined;

Defined in: packages/ai/src/utilities/chunk-ids.ts:18

Thread id on the spec event, or metadata.tanstack.threadId after normalize.

Parameters

chunk

AGUIEvent

Returns

string | undefined