UNPKG

@tanstack/ai

Version:

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

9 lines (8 loc) 466 B
import { CustomEvent, StreamChunk } from '../types.js'; /** Mark a CUSTOM chunk so the durability producer keeps it in the batch. */ export declare function withDurabilityBatchHint(chunk: CustomEvent): CustomEvent; export declare function isDurabilityBatchedCustom(chunk: StreamChunk): boolean; /** * Drop the in-process batch hint so it does not sit in the log or on the wire. */ export declare function stripDurabilityBatchHint(chunk: StreamChunk): StreamChunk;