Skip to content
1 min read · 38 words

Variable: defaultCreateChatCompletionsToolCallDeltaAccumulator

ts
const defaultCreateChatCompletionsToolCallDeltaAccumulator: () => ChatCompletionsToolCallDeltaAccumulator =
  createChatCompletionsToolCallDeltaAccumulator;

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

Default delta-accumulator factory; alias of createChatCompletionsToolCallDeltaAccumulator.

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