Skip to content
1 min read · 79 words

Variable: defaultCreateResponsesOutputSlotMachine

ts
const defaultCreateResponsesOutputSlotMachine: () => ResponsesOutputSlotMachine =
  createResponsesOutputSlotMachine;

Defined in: src/batteries/llm/openai_responses/helpers.ts:1178

Default output-slot state machine factory; alias of createResponsesOutputSlotMachine.

Implements OpenAIResponsesHelpers.createResponsesOutputSlotMachine.

Returns

ResponsesOutputSlotMachine

Remarks

Streaming state keyed by output_index (one slot per output item — NOT a tool-call index, unlike Chat Completions). openSlot deliberately opens NO slot for an unrecognized/hosted server-side tool item type (web_search_call, code_interpreter_call, mcp_call, etc.) — Known Gotcha #6 — so every subsequent event keyed to that output_index is silently ignored rather than crashing on an unexpected slot kind.