Skip to content
1 min read · 32 words

Function: createChatCompletionsToolCallDeltaAccumulator()

ts
function createChatCompletionsToolCallDeltaAccumulator(): ChatCompletionsToolCallDeltaAccumulator;

Defined in: src/batteries/llm/openai_chat_completions/helpers.ts:924

Creates a fresh accumulator that stitches streamed ChatCompletionsToolCallDelta fragments (keyed by their stream index) into fully-assembled tool calls, drained once the stream completes.

Returns

ChatCompletionsToolCallDeltaAccumulator