/** * ArkType schemas for the OpenAI Responses API request shape we accept on the * gateway. Mirrors https://platform.openai.com/docs/api-reference/responses. * * Unsupported / opaque controls (background/include/metadata/prompt/…) are * accepted as `"unknown"` optional so we silently ignore rather than 400. * Real clients (codex, openai-python, llm-git) routinely send these and a 400 * is a worse outcome than dropping them on the floor. */ import type { EasyInputMessage, ResponseCreateParams, ResponseFunctionToolCall, ResponseInputContent, ResponseInputItem, ResponseOutputMessage, ResponseReasoningItem, Tool as ResponsesTool } from "./openai-responses-wire.js"; declare const inputImageBlockSchema: import("@oh-my-pi/omptype").FluentType<{ detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; }, { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; }>; declare const inputFileBlockSchema: import("@oh-my-pi/omptype").FluentType<{ file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; }, { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; }>; declare const outputRefusalSchema: import("@oh-my-pi/omptype").FluentType<{ refusal: string; type: "refusal"; }, { refusal: string; type: "refusal"; }>; declare const customToolCallItemSchema: import("@oh-my-pi/omptype").FluentType<{ call_id: string; id?: string | undefined; input: string; name: string; type: "custom_tool_call"; }, { call_id: string; id?: string | undefined; input: string; name: string; type: "custom_tool_call"; }>; declare const customToolCallOutputItemSchema: import("@oh-my-pi/omptype").FluentType<{ call_id: string; output: string; type: "custom_tool_call_output"; }, { call_id: string; output: string; type: "custom_tool_call_output"; }>; declare const computerCallItemSchema: import("@oh-my-pi/omptype").FluentType<{ action?: { button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | undefined; actions?: ({ button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; })[] | undefined; call_id: string; id: string; pending_safety_checks: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[]; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; }, { action?: { button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | undefined; actions?: ({ button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; })[] | undefined; call_id: string; id: string; pending_safety_checks: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[]; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; }>; declare const computerCallOutputItemSchema: import("@oh-my-pi/omptype").FluentType<{ acknowledged_safety_checks?: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[] | null | undefined; call_id: string; id?: string | null | undefined; output: { image_url: string; type: "computer_screenshot"; } | { file_id: string; type: "computer_screenshot"; }; status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined; type: "computer_call_output"; }, { acknowledged_safety_checks?: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[] | null | undefined; call_id: string; id?: string | null | undefined; output: { image_url: string; type: "computer_screenshot"; } | { file_id: string; type: "computer_screenshot"; }; status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined; type: "computer_call_output"; }>; /** * Direct mapping to standard types. */ export declare const inputItemSchema: import("@oh-my-pi/omptype").FluentType<{ content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "developer" | "user"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "system"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; id?: string | undefined; phase?: "commentary" | "final_answer" | null | undefined; role: "assistant"; status?: "completed" | "in_progress" | "incomplete" | undefined; type?: "message" | undefined; } | { content?: { text: string; type: "reasoning_text"; }[] | undefined; id?: string | undefined; summary?: { text: string; type: "summary_text"; }[] | undefined; type: "reasoning"; } | { arguments?: string | undefined; call_id: string; id?: string | undefined; name: string; type: "function_call"; } | { call_id: string; output?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; type: "function_call_output"; } | { call_id: string; id?: string | undefined; input: string; name: string; type: "custom_tool_call"; } | { call_id: string; output: string; type: "custom_tool_call_output"; } | { action?: { button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | undefined; actions?: ({ button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; })[] | undefined; call_id: string; id: string; pending_safety_checks: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[]; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; } | { acknowledged_safety_checks?: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[] | null | undefined; call_id: string; id?: string | null | undefined; output: { image_url: string; type: "computer_screenshot"; } | { file_id: string; type: "computer_screenshot"; }; status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined; type: "computer_call_output"; } | { type: string; }, { content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "developer" | "user"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "system"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; id?: string | undefined; phase?: "commentary" | "final_answer" | null | undefined; role: "assistant"; status?: "completed" | "in_progress" | "incomplete" | undefined; type?: "message" | undefined; } | { content?: { text: string; type: "reasoning_text"; }[] | undefined; id?: string | undefined; summary?: { text: string; type: "summary_text"; }[] | undefined; type: "reasoning"; } | { arguments?: string | undefined; call_id: string; id?: string | undefined; name: string; type: "function_call"; } | { call_id: string; output?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; type: "function_call_output"; } | { call_id: string; id?: string | undefined; input: string; name: string; type: "custom_tool_call"; } | { call_id: string; output: string; type: "custom_tool_call_output"; } | { action?: { button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | undefined; actions?: ({ button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; })[] | undefined; call_id: string; id: string; pending_safety_checks: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[]; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; } | { acknowledged_safety_checks?: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[] | null | undefined; call_id: string; id?: string | null | undefined; output: { image_url: string; type: "computer_screenshot"; } | { file_id: string; type: "computer_screenshot"; }; status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined; type: "computer_call_output"; } | { type: string; }>; export type OpenAIResponsesUserItem = EasyInputMessage | ResponseInputItem.Message; export type OpenAIResponsesSystemItem = EasyInputMessage | ResponseInputItem.Message; export type OpenAIResponsesAssistantItem = EasyInputMessage | ResponseOutputMessage; export type OpenAIResponsesReasoningItem = ResponseReasoningItem; export type OpenAIResponsesFunctionCallItem = ResponseFunctionToolCall; export type OpenAIResponsesFunctionCallOutputItem = ResponseInputItem.FunctionCallOutput; /** Inferred shape of the custom tool call input item (no canonical SDK alias). */ export type OpenAIResponsesCustomToolCallItem = typeof customToolCallItemSchema.infer; export type OpenAIResponsesCustomToolCallOutputItem = typeof customToolCallOutputItemSchema.infer; export type OpenAIResponsesComputerCallItem = typeof computerCallItemSchema.infer; export type OpenAIResponsesComputerCallOutputItem = typeof computerCallOutputItemSchema.infer; export type OpenAIResponsesInputImageBlock = typeof inputImageBlockSchema.infer; export type OpenAIResponsesInputFileBlock = typeof inputFileBlockSchema.infer; export type OpenAIResponsesOutputRefusalBlock = typeof outputRefusalSchema.infer; export declare const toolSchema: import("@oh-my-pi/omptype").FluentType<{ description?: string | undefined; name: string; parameters?: Record | undefined; strict?: boolean | undefined; type: "function"; }, { description?: string | undefined; name: string; parameters?: Record | undefined; strict?: boolean | undefined; type: "function"; }>; export declare const toolChoiceSchema: import("@oh-my-pi/omptype").FluentType<"auto" | "none" | "required" | { name: string; type: "function"; } | { name: string; type: "custom"; } | { type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview"; } | { mode: "auto" | "required"; tools: { name?: string | undefined; type: string; }[]; type: "allowed_tools"; }, "auto" | "none" | "required" | { name: string; type: "function"; } | { name: string; type: "custom"; } | { type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview"; } | { mode: "auto" | "required"; tools: { name?: string | undefined; type: string; }[]; type: "allowed_tools"; }>; export declare const reasoningConfigSchema: import("@oh-my-pi/omptype").FluentType<{ effort?: string | undefined; summary?: "auto" | "concise" | "detailed" | "none" | undefined; }, { effort?: string | undefined; summary?: "auto" | "concise" | "detailed" | "none" | undefined; }>; export declare const stopSchema: import("@oh-my-pi/omptype").FluentType; export declare const openaiResponsesRequestSchema: import("@oh-my-pi/omptype").FluentType<{ background?: unknown; frequency_penalty?: number | undefined; include?: string[] | null | undefined; input?: string | ({ content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "developer" | "user"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "system"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; id?: string | undefined; phase?: "commentary" | "final_answer" | null | undefined; role: "assistant"; status?: "completed" | "in_progress" | "incomplete" | undefined; type?: "message" | undefined; } | { content?: { text: string; type: "reasoning_text"; }[] | undefined; id?: string | undefined; summary?: { text: string; type: "summary_text"; }[] | undefined; type: "reasoning"; } | { arguments?: string | undefined; call_id: string; id?: string | undefined; name: string; type: "function_call"; } | { call_id: string; output?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; type: "function_call_output"; } | { call_id: string; id?: string | undefined; input: string; name: string; type: "custom_tool_call"; } | { call_id: string; output: string; type: "custom_tool_call_output"; } | { action?: { button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | undefined; actions?: ({ button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; })[] | undefined; call_id: string; id: string; pending_safety_checks: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[]; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; } | { acknowledged_safety_checks?: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[] | null | undefined; call_id: string; id?: string | null | undefined; output: { image_url: string; type: "computer_screenshot"; } | { file_id: string; type: "computer_screenshot"; }; status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined; type: "computer_call_output"; } | { type: string; })[] | undefined; instructions?: string | null | undefined; max_output_tokens?: number | undefined; metadata?: unknown; model: string; parallel_tool_calls?: boolean | undefined; presence_penalty?: number | undefined; previous_response_id?: string | undefined; prompt?: unknown; prompt_cache_key?: string | undefined; reasoning?: { effort?: string | undefined; summary?: "auto" | "concise" | "detailed" | "none" | undefined; } | undefined; safety_identifier?: unknown; service_tier?: string | undefined; stop?: string | string[] | null | undefined; store?: boolean | undefined; stream?: boolean | undefined; temperature?: number | undefined; text?: unknown; tool_choice?: "auto" | "none" | "required" | { name: string; type: "function"; } | { name: string; type: "custom"; } | { type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview"; } | { mode: "auto" | "required"; tools: { name?: string | undefined; type: string; }[]; type: "allowed_tools"; } | undefined; tools?: ({ description?: string | undefined; name: string; parameters?: Record | undefined; strict?: boolean | undefined; type: "function"; } | { type: "computer"; } | { type: string; })[] | undefined; top_logprobs?: unknown; top_p?: number | undefined; truncation?: unknown; user?: string | undefined; }, { background?: unknown; frequency_penalty?: number | undefined; include?: string[] | null | undefined; input?: string | ({ content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "developer" | "user"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "input_text"; } | { text: string; type: "text"; } | { detail?: "auto" | "high" | "low" | "original" | undefined; file_id?: string | undefined; image_url?: string | undefined; type: "input_image"; } | { file_data?: string | undefined; file_id?: string | undefined; file_url?: string | undefined; filename?: string | undefined; type: "input_file"; })[] | undefined; role: "system"; type?: "message" | undefined; } | { content?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; id?: string | undefined; phase?: "commentary" | "final_answer" | null | undefined; role: "assistant"; status?: "completed" | "in_progress" | "incomplete" | undefined; type?: "message" | undefined; } | { content?: { text: string; type: "reasoning_text"; }[] | undefined; id?: string | undefined; summary?: { text: string; type: "summary_text"; }[] | undefined; type: "reasoning"; } | { arguments?: string | undefined; call_id: string; id?: string | undefined; name: string; type: "function_call"; } | { call_id: string; output?: string | ({ text: string; type: "text"; } | { text: string; type: "output_text"; } | { refusal: string; type: "refusal"; })[] | undefined; type: "function_call_output"; } | { call_id: string; id?: string | undefined; input: string; name: string; type: "custom_tool_call"; } | { call_id: string; output: string; type: "custom_tool_call_output"; } | { action?: { button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | undefined; actions?: ({ button: "back" | "forward" | "left" | "right" | "wheel"; keys?: string[] | null | undefined; type: "click"; x: number; y: number; } | { keys: string[] | null; type: "double_click"; x: number; y: number; } | { keys?: string[] | null | undefined; path: { x: number; y: number; }[]; type: "drag"; } | { keys: string[]; type: "keypress"; } | { keys?: string[] | null | undefined; type: "move"; x: number; y: number; } | { type: "screenshot"; } | { keys?: string[] | null | undefined; scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; })[] | undefined; call_id: string; id: string; pending_safety_checks: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[]; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; } | { acknowledged_safety_checks?: { code?: string | null | undefined; id: string; message?: string | null | undefined; }[] | null | undefined; call_id: string; id?: string | null | undefined; output: { image_url: string; type: "computer_screenshot"; } | { file_id: string; type: "computer_screenshot"; }; status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined; type: "computer_call_output"; } | { type: string; })[] | undefined; instructions?: string | null | undefined; max_output_tokens?: number | undefined; metadata?: unknown; model: string; parallel_tool_calls?: boolean | undefined; presence_penalty?: number | undefined; previous_response_id?: string | undefined; prompt?: unknown; prompt_cache_key?: string | undefined; reasoning?: { effort?: string | undefined; summary?: "auto" | "concise" | "detailed" | "none" | undefined; } | undefined; safety_identifier?: unknown; service_tier?: string | undefined; stop?: string | string[] | null | undefined; store?: boolean | undefined; stream?: boolean | undefined; temperature?: number | undefined; text?: unknown; tool_choice?: "auto" | "none" | "required" | { name: string; type: "function"; } | { name: string; type: "custom"; } | { type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview"; } | { mode: "auto" | "required"; tools: { name?: string | undefined; type: string; }[]; type: "allowed_tools"; } | undefined; tools?: ({ description?: string | undefined; name: string; parameters?: Record | undefined; strict?: boolean | undefined; type: "function"; } | { type: "computer"; } | { type: string; })[] | undefined; top_logprobs?: unknown; top_p?: number | undefined; truncation?: unknown; user?: string | undefined; }>; /** * Public types are sourced from the OpenAI SDK so the gateway stays in * lock-step with the canonical API surface; the schemas above are runtime * validators for the subset we actually accept. */ export type OpenAIResponsesRequest = ResponseCreateParams; export type OpenAIResponsesInputItem = ResponseInputItem; export type OpenAIResponsesTool = ResponsesTool; export type OpenAIResponsesToolChoice = NonNullable; export type OpenAIResponsesInputContent = ResponseInputContent; export type OpenAIResponsesOutputContent = ResponseOutputMessage["content"][number]; export {};