UNPKG

@tanstack/ai

Version:

Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.

6 lines (5 loc) 368 B
import { StreamChunk } from '../types.js'; /** Run id on the spec event, or `metadata.tanstack.runId` after normalize. */ export declare function getChunkRunId(chunk: StreamChunk): string | undefined; /** Thread id on the spec event, or `metadata.tanstack.threadId` after normalize. */ export declare function getChunkThreadId(chunk: StreamChunk): string | undefined;