Skip to content
1 min read · 71 words

Function: createResponsesOutputSlotMachine() ​

ts
function createResponsesOutputSlotMachine(): ResponsesOutputSlotMachine;

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

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.