openai 7.27.0 → 7.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +8 -3
- package/helpers/standard-schema.d.mts.map +1 -1
- package/helpers/standard-schema.d.ts +8 -3
- package/helpers/standard-schema.d.ts.map +1 -1
- package/helpers/standard-schema.js +1 -0
- package/helpers/standard-schema.js.map +1 -1
- package/helpers/standard-schema.mjs +1 -0
- package/helpers/standard-schema.mjs.map +1 -1
- package/helpers/zod.d.mts +2 -0
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +2 -0
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +1 -0
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +1 -0
- package/helpers/zod.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +2 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +2 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +9 -2
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +9 -2
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +5 -0
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +5 -0
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/agents/agent-session-stream.d.mts +7 -0
- package/lib/agents/agent-session-stream.d.mts.map +1 -1
- package/lib/agents/agent-session-stream.d.ts +7 -0
- package/lib/agents/agent-session-stream.d.ts.map +1 -1
- package/lib/agents/agent-session-stream.js +8 -110
- package/lib/agents/agent-session-stream.js.map +1 -1
- package/lib/agents/agent-session-stream.mjs +9 -111
- package/lib/agents/agent-session-stream.mjs.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts +41 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.ts +41 -1
- package/lib/beta/agents/agent-session-create-stream.d.ts.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.js +70 -2
- package/lib/beta/agents/agent-session-create-stream.js.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.mjs +69 -2
- package/lib/beta/agents/agent-session-create-stream.mjs.map +1 -1
- package/lib/beta/agents/function-tool.d.mts.map +1 -1
- package/lib/beta/agents/function-tool.d.ts.map +1 -1
- package/lib/beta/agents/function-tool.js +22 -15
- package/lib/beta/agents/function-tool.js.map +1 -1
- package/lib/beta/agents/function-tool.mjs +22 -15
- package/lib/beta/agents/function-tool.mjs.map +1 -1
- package/lib/beta/agents/parse-result.d.mts +4 -2
- package/lib/beta/agents/parse-result.d.mts.map +1 -1
- package/lib/beta/agents/parse-result.d.ts +4 -2
- package/lib/beta/agents/parse-result.d.ts.map +1 -1
- package/lib/beta/agents/tool-dispatcher.d.mts +13 -0
- package/lib/beta/agents/tool-dispatcher.d.mts.map +1 -0
- package/lib/beta/agents/tool-dispatcher.d.ts +13 -0
- package/lib/beta/agents/tool-dispatcher.d.ts.map +1 -0
- package/lib/beta/agents/tool-dispatcher.js +185 -0
- package/lib/beta/agents/tool-dispatcher.js.map +1 -0
- package/lib/beta/agents/tool-dispatcher.mjs +181 -0
- package/lib/beta/agents/tool-dispatcher.mjs.map +1 -0
- package/lib/beta/agents/tool-error.d.mts +13 -0
- package/lib/beta/agents/tool-error.d.mts.map +1 -0
- package/lib/beta/agents/tool-error.d.ts +13 -0
- package/lib/beta/agents/tool-error.d.ts.map +1 -0
- package/lib/beta/agents/tool-error.js +3 -0
- package/lib/beta/agents/tool-error.js.map +1 -0
- package/lib/beta/agents/tool-error.mjs +2 -0
- package/lib/beta/agents/tool-error.mjs.map +1 -0
- package/lib/beta/agents/tool-stages.d.mts +12 -0
- package/lib/beta/agents/tool-stages.d.mts.map +1 -0
- package/lib/beta/agents/tool-stages.d.ts +12 -0
- package/lib/beta/agents/tool-stages.d.ts.map +1 -0
- package/lib/beta/agents/tool-stages.js +6 -0
- package/lib/beta/agents/tool-stages.js.map +1 -0
- package/lib/beta/agents/tool-stages.mjs +3 -0
- package/lib/beta/agents/tool-stages.mjs.map +1 -0
- package/lib/chat-completions/streaming.d.mts +11 -0
- package/lib/chat-completions/streaming.d.mts.map +1 -0
- package/lib/chat-completions/streaming.d.ts +11 -0
- package/lib/chat-completions/streaming.d.ts.map +1 -0
- package/lib/chat-completions/streaming.js +27 -0
- package/lib/chat-completions/streaming.js.map +1 -0
- package/lib/chat-completions/streaming.mjs +23 -0
- package/lib/chat-completions/streaming.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/admin/organization/usage.d.mts +381 -20
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +381 -20
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/audio/audio.d.mts +4 -0
- package/resources/audio/audio.d.mts.map +1 -1
- package/resources/audio/audio.d.ts +4 -0
- package/resources/audio/audio.d.ts.map +1 -1
- package/resources/audio/audio.js +4 -0
- package/resources/audio/audio.js.map +1 -1
- package/resources/audio/audio.mjs +4 -0
- package/resources/audio/audio.mjs.map +1 -1
- package/resources/audio/index.d.mts +1 -0
- package/resources/audio/index.d.mts.map +1 -1
- package/resources/audio/index.d.ts +1 -0
- package/resources/audio/index.d.ts.map +1 -1
- package/resources/audio/index.js +3 -1
- package/resources/audio/index.js.map +1 -1
- package/resources/audio/index.mjs +1 -0
- package/resources/audio/index.mjs.map +1 -1
- package/resources/audio/speech.d.mts +2 -0
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +2 -0
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/voices.d.mts +119 -0
- package/resources/audio/voices.d.mts.map +1 -0
- package/resources/audio/voices.d.ts +119 -0
- package/resources/audio/voices.d.ts.map +1 -0
- package/resources/audio/voices.js +41 -0
- package/resources/audio/voices.js.map +1 -0
- package/resources/audio/voices.mjs +37 -0
- package/resources/audio/voices.mjs.map +1 -0
- package/resources/beta/agents/agents.d.mts +14 -10
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +14 -10
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +6 -8
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +6 -8
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.d.mts +1 -1
- package/resources/beta/agents/sessions/index.d.mts.map +1 -1
- package/resources/beta/agents/sessions/index.d.ts +1 -1
- package/resources/beta/agents/sessions/index.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.js +2 -2
- package/resources/beta/agents/sessions/index.js.map +1 -1
- package/resources/beta/agents/sessions/index.mjs +1 -1
- package/resources/beta/agents/sessions/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +8 -7
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +8 -7
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +7 -4
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +8 -5
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts +2 -2
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts +2 -2
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns/index.d.mts +3 -0
- package/resources/beta/agents/sessions/turns/index.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/index.d.ts +3 -0
- package/resources/beta/agents/sessions/turns/index.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/index.js +9 -0
- package/resources/beta/agents/sessions/turns/index.js.map +1 -0
- package/resources/beta/agents/sessions/turns/index.mjs +4 -0
- package/resources/beta/agents/sessions/turns/index.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns/items.d.mts +43 -0
- package/resources/beta/agents/sessions/turns/items.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/items.d.ts +43 -0
- package/resources/beta/agents/sessions/turns/items.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/items.js +40 -0
- package/resources/beta/agents/sessions/turns/items.js.map +1 -0
- package/resources/beta/agents/sessions/turns/items.mjs +36 -0
- package/resources/beta/agents/sessions/turns/items.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.d.mts +128 -0
- package/resources/beta/agents/sessions/turns/turns.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.d.ts +128 -0
- package/resources/beta/agents/sessions/turns/turns.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.js +111 -0
- package/resources/beta/agents/sessions/turns/turns.js.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.mjs +106 -0
- package/resources/beta/agents/sessions/turns/turns.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns.d.mts +1 -123
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +1 -123
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +2 -99
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +1 -97
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/index.d.mts +1 -1
- package/resources/beta/responses/index.d.mts.map +1 -1
- package/resources/beta/responses/index.d.ts +1 -1
- package/resources/beta/responses/index.d.ts.map +1 -1
- package/resources/beta/responses/index.js.map +1 -1
- package/resources/beta/responses/index.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +379 -9
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +379 -9
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +44 -9
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +44 -9
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +5 -2
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +5 -2
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/decisions.d.mts +196 -0
- package/resources/decisions.d.mts.map +1 -0
- package/resources/decisions.d.ts +196 -0
- package/resources/decisions.d.ts.map +1 -0
- package/resources/decisions.js +32 -0
- package/resources/decisions.js.map +1 -0
- package/resources/decisions.mjs +28 -0
- package/resources/decisions.mjs.map +1 -0
- package/resources/fine-tuning/jobs/jobs.d.mts +7 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +7 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +61 -75
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +61 -75
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +4 -7
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +4 -7
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +16 -4
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +16 -4
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/responses.d.mts +381 -9
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +381 -9
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +69 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +69 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/videos.d.mts +5 -0
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +5 -0
- package/resources/videos.d.ts.map +1 -1
- package/resources/webhooks/webhooks.d.mts +211 -6
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +211 -6
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +21 -0
- package/src/helpers/standard-schema.ts +11 -4
- package/src/helpers/zod.ts +4 -0
- package/src/lib/ChatCompletionStream.ts +10 -3
- package/src/lib/ResponsesParser.ts +8 -0
- package/src/lib/agents/agent-session-stream.ts +20 -124
- package/src/lib/beta/agents/agent-session-create-stream.ts +87 -1
- package/src/lib/beta/agents/function-tool.ts +23 -15
- package/src/lib/beta/agents/tool-dispatcher.ts +226 -0
- package/src/lib/beta/agents/tool-error.ts +12 -0
- package/src/lib/beta/agents/tool-stages.ts +14 -0
- package/src/lib/chat-completions/streaming.ts +35 -0
- package/src/resources/admin/organization/usage.ts +438 -20
- package/src/resources/audio/audio.ts +6 -0
- package/src/resources/audio/index.ts +1 -0
- package/src/resources/audio/speech.ts +2 -0
- package/src/resources/audio/voices.ts +152 -0
- package/src/resources/beta/agents/agents.ts +16 -9
- package/src/resources/beta/agents/environments/templates.ts +6 -8
- package/src/resources/beta/agents/sessions/index.ts +7 -1
- package/src/resources/beta/agents/sessions/sessions.ts +18 -8
- package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +2 -2
- package/src/resources/beta/agents/sessions/turns/index.ts +4 -0
- package/src/resources/beta/agents/sessions/turns/items.ts +79 -0
- package/src/resources/beta/agents/sessions/turns/turns.ts +383 -0
- package/src/resources/beta/agents/sessions/turns.ts +1 -373
- package/src/resources/beta/beta.ts +2 -0
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/responses/index.ts +1 -0
- package/src/resources/beta/responses/responses.ts +471 -8
- package/src/resources/chat/completions/completions.ts +67 -19
- package/src/resources/completions.ts +1 -1
- package/src/resources/decisions.ts +290 -0
- package/src/resources/fine-tuning/jobs/jobs.ts +7 -2
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +62 -76
- package/src/resources/index.ts +9 -0
- package/src/resources/realtime/realtime.ts +16 -4
- package/src/resources/responses/api.md +1 -0
- package/src/resources/responses/responses.ts +473 -8
- package/src/resources/shared.ts +70 -0
- package/src/resources/videos.ts +6 -0
- package/src/resources/webhooks/api.md +5 -0
- package/src/resources/webhooks/webhooks.ts +273 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1954,7 +1954,7 @@ export declare namespace ResponseComputerToolCall {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
export interface ResponseComputerToolCallOutputItem {
|
|
1956
1956
|
/**
|
|
1957
|
-
* The
|
|
1957
|
+
* The ID of the computer tool call output.
|
|
1958
1958
|
*/
|
|
1959
1959
|
id: string;
|
|
1960
1960
|
/**
|
|
@@ -2428,6 +2428,11 @@ export declare namespace ResponseError {
|
|
|
2428
2428
|
* An optional classification; clients must accept additional values.
|
|
2429
2429
|
*/
|
|
2430
2430
|
error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
|
|
2431
|
+
/**
|
|
2432
|
+
* An opaque target for explicitly continuing this review, or null when
|
|
2433
|
+
* unavailable.
|
|
2434
|
+
*/
|
|
2435
|
+
review_target?: string | null;
|
|
2431
2436
|
/**
|
|
2432
2437
|
* An optional public continuation instruction.
|
|
2433
2438
|
*/
|
|
@@ -6902,7 +6907,7 @@ export interface ResponseToolSearchOutputItemParam {
|
|
|
6902
6907
|
/**
|
|
6903
6908
|
* The loaded tool definitions returned by the tool search output.
|
|
6904
6909
|
*/
|
|
6905
|
-
tools: Array<
|
|
6910
|
+
tools: Array<FunctionTool | FileSearchTool | ComputerTool | ComputerUsePreviewTool | WebSearchTool | ResponseToolSearchOutputItemParam.Mcp | ResponseToolSearchOutputItemParam.CodeInterpreter | ResponseToolSearchOutputItemParam.ProgrammaticToolCalling | ResponseToolSearchOutputItemParam.ImageGeneration | ResponseToolSearchOutputItemParam.LocalShell | FunctionShellTool | CustomTool | ToolSearchOutputNamespaceTool | ToolSearchTool | WebSearchPreviewTool | ApplyPatchTool>;
|
|
6906
6911
|
/**
|
|
6907
6912
|
* The item type. Always `tool_search_output`.
|
|
6908
6913
|
*/
|
|
@@ -6924,6 +6929,311 @@ export interface ResponseToolSearchOutputItemParam {
|
|
|
6924
6929
|
*/
|
|
6925
6930
|
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
6926
6931
|
}
|
|
6932
|
+
export declare namespace ResponseToolSearchOutputItemParam {
|
|
6933
|
+
/**
|
|
6934
|
+
* Give the model access to additional tools via remote Model Context Protocol
|
|
6935
|
+
* (MCP) servers.
|
|
6936
|
+
* [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
|
|
6937
|
+
*/
|
|
6938
|
+
interface Mcp {
|
|
6939
|
+
/**
|
|
6940
|
+
* A label for this MCP server, used to identify it in tool calls.
|
|
6941
|
+
*/
|
|
6942
|
+
server_label: string;
|
|
6943
|
+
/**
|
|
6944
|
+
* The type of the MCP tool. Always `mcp`.
|
|
6945
|
+
*/
|
|
6946
|
+
type: 'mcp';
|
|
6947
|
+
/**
|
|
6948
|
+
* The tool invocation context(s).
|
|
6949
|
+
*/
|
|
6950
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
6951
|
+
/**
|
|
6952
|
+
* List of allowed tool names or a filter object.
|
|
6953
|
+
*/
|
|
6954
|
+
allowed_tools?: Array<string> | Mcp.McpToolFilter | null;
|
|
6955
|
+
/**
|
|
6956
|
+
* An OAuth access token that can be used with a remote MCP server, either with a
|
|
6957
|
+
* custom MCP server URL or a service connector. Your application must handle the
|
|
6958
|
+
* OAuth authorization flow and provide the token here.
|
|
6959
|
+
*/
|
|
6960
|
+
authorization?: string;
|
|
6961
|
+
/**
|
|
6962
|
+
* @deprecated Identifier for service connectors, like those available in ChatGPT.
|
|
6963
|
+
* One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
|
|
6964
|
+
* about service connectors
|
|
6965
|
+
* [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
6966
|
+
*
|
|
6967
|
+
* This field is deprecated for models released after September 1, 2026. Use
|
|
6968
|
+
* `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
6969
|
+
* through a Secure MCP Tunnel.
|
|
6970
|
+
*
|
|
6971
|
+
* Currently supported `connector_id` values are:
|
|
6972
|
+
*
|
|
6973
|
+
* - Dropbox: `connector_dropbox`
|
|
6974
|
+
* - Gmail: `connector_gmail`
|
|
6975
|
+
* - Google Calendar: `connector_googlecalendar`
|
|
6976
|
+
* - Google Drive: `connector_googledrive`
|
|
6977
|
+
* - Microsoft Teams: `connector_microsoftteams`
|
|
6978
|
+
* - Outlook Calendar: `connector_outlookcalendar`
|
|
6979
|
+
* - Outlook Email: `connector_outlookemail`
|
|
6980
|
+
* - SharePoint: `connector_sharepoint`
|
|
6981
|
+
*/
|
|
6982
|
+
connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
|
|
6983
|
+
/**
|
|
6984
|
+
* Whether this MCP tool is deferred and discovered via tool search.
|
|
6985
|
+
*/
|
|
6986
|
+
defer_loading?: boolean;
|
|
6987
|
+
/**
|
|
6988
|
+
* Optional HTTP headers to send to the MCP server. Use for authentication or other
|
|
6989
|
+
* purposes.
|
|
6990
|
+
*/
|
|
6991
|
+
headers?: {
|
|
6992
|
+
[key: string]: string;
|
|
6993
|
+
} | null;
|
|
6994
|
+
/**
|
|
6995
|
+
* Specify which of the MCP server's tools require approval.
|
|
6996
|
+
*/
|
|
6997
|
+
require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null;
|
|
6998
|
+
/**
|
|
6999
|
+
* Optional description of the MCP server, used to provide more context.
|
|
7000
|
+
*/
|
|
7001
|
+
server_description?: string;
|
|
7002
|
+
/**
|
|
7003
|
+
* The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
|
|
7004
|
+
* must be provided.
|
|
7005
|
+
*/
|
|
7006
|
+
server_url?: string;
|
|
7007
|
+
/**
|
|
7008
|
+
* The Secure MCP Tunnel ID to use instead of a direct server URL. One of
|
|
7009
|
+
* `server_url`, `connector_id`, or `tunnel_id` must be provided.
|
|
7010
|
+
*/
|
|
7011
|
+
tunnel_id?: string;
|
|
7012
|
+
}
|
|
7013
|
+
namespace Mcp {
|
|
7014
|
+
/**
|
|
7015
|
+
* A filter object to specify which tools are allowed.
|
|
7016
|
+
*/
|
|
7017
|
+
interface McpToolFilter {
|
|
7018
|
+
/**
|
|
7019
|
+
* Indicates whether or not a tool modifies data or is read-only. If an MCP server
|
|
7020
|
+
* is
|
|
7021
|
+
* [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
|
|
7022
|
+
* it will match this filter.
|
|
7023
|
+
*/
|
|
7024
|
+
read_only?: boolean;
|
|
7025
|
+
/**
|
|
7026
|
+
* List of allowed tool names.
|
|
7027
|
+
*/
|
|
7028
|
+
tool_names?: Array<string>;
|
|
7029
|
+
}
|
|
7030
|
+
/**
|
|
7031
|
+
* Specify which of the MCP server's tools require approval. Can be `always`,
|
|
7032
|
+
* `never`, or a filter object associated with tools that require approval.
|
|
7033
|
+
*/
|
|
7034
|
+
interface McpToolApprovalFilter {
|
|
7035
|
+
/**
|
|
7036
|
+
* A filter object to specify which tools are allowed.
|
|
7037
|
+
*/
|
|
7038
|
+
always?: McpToolApprovalFilter.Always;
|
|
7039
|
+
/**
|
|
7040
|
+
* A filter object to specify which tools are allowed.
|
|
7041
|
+
*/
|
|
7042
|
+
never?: McpToolApprovalFilter.Never;
|
|
7043
|
+
}
|
|
7044
|
+
namespace McpToolApprovalFilter {
|
|
7045
|
+
/**
|
|
7046
|
+
* A filter object to specify which tools are allowed.
|
|
7047
|
+
*/
|
|
7048
|
+
interface Always {
|
|
7049
|
+
/**
|
|
7050
|
+
* Indicates whether or not a tool modifies data or is read-only. If an MCP server
|
|
7051
|
+
* is
|
|
7052
|
+
* [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
|
|
7053
|
+
* it will match this filter.
|
|
7054
|
+
*/
|
|
7055
|
+
read_only?: boolean;
|
|
7056
|
+
/**
|
|
7057
|
+
* List of allowed tool names.
|
|
7058
|
+
*/
|
|
7059
|
+
tool_names?: Array<string>;
|
|
7060
|
+
}
|
|
7061
|
+
/**
|
|
7062
|
+
* A filter object to specify which tools are allowed.
|
|
7063
|
+
*/
|
|
7064
|
+
interface Never {
|
|
7065
|
+
/**
|
|
7066
|
+
* Indicates whether or not a tool modifies data or is read-only. If an MCP server
|
|
7067
|
+
* is
|
|
7068
|
+
* [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
|
|
7069
|
+
* it will match this filter.
|
|
7070
|
+
*/
|
|
7071
|
+
read_only?: boolean;
|
|
7072
|
+
/**
|
|
7073
|
+
* List of allowed tool names.
|
|
7074
|
+
*/
|
|
7075
|
+
tool_names?: Array<string>;
|
|
7076
|
+
}
|
|
7077
|
+
}
|
|
7078
|
+
}
|
|
7079
|
+
/**
|
|
7080
|
+
* A tool that runs Python code to help generate a response to a prompt.
|
|
7081
|
+
*/
|
|
7082
|
+
interface CodeInterpreter {
|
|
7083
|
+
/**
|
|
7084
|
+
* The code interpreter container. Can be a container ID or an object that
|
|
7085
|
+
* specifies uploaded file IDs to make available to your code, along with an
|
|
7086
|
+
* optional `memory_limit` setting.
|
|
7087
|
+
*/
|
|
7088
|
+
container: string | CodeInterpreter.CodeInterpreterToolAuto;
|
|
7089
|
+
/**
|
|
7090
|
+
* The type of the code interpreter tool. Always `code_interpreter`.
|
|
7091
|
+
*/
|
|
7092
|
+
type: 'code_interpreter';
|
|
7093
|
+
/**
|
|
7094
|
+
* The tool invocation context(s).
|
|
7095
|
+
*/
|
|
7096
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
7097
|
+
}
|
|
7098
|
+
namespace CodeInterpreter {
|
|
7099
|
+
/**
|
|
7100
|
+
* Configuration for a code interpreter container. Optionally specify the IDs of
|
|
7101
|
+
* the files to run the code on.
|
|
7102
|
+
*/
|
|
7103
|
+
interface CodeInterpreterToolAuto {
|
|
7104
|
+
/**
|
|
7105
|
+
* Always `auto`.
|
|
7106
|
+
*/
|
|
7107
|
+
type: 'auto';
|
|
7108
|
+
/**
|
|
7109
|
+
* An optional list of uploaded files to make available to your code.
|
|
7110
|
+
*/
|
|
7111
|
+
file_ids?: Array<string>;
|
|
7112
|
+
/**
|
|
7113
|
+
* The memory limit for the code interpreter container.
|
|
7114
|
+
*/
|
|
7115
|
+
memory_limit?: '1g' | '4g' | '16g' | '64g' | null;
|
|
7116
|
+
/**
|
|
7117
|
+
* Network access policy for the container.
|
|
7118
|
+
*/
|
|
7119
|
+
network_policy?: ResponsesAPI.ContainerNetworkPolicyDisabled | ResponsesAPI.ContainerNetworkPolicyAllowlist;
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
interface ProgrammaticToolCalling {
|
|
7123
|
+
/**
|
|
7124
|
+
* The type of the tool. Always `programmatic_tool_calling`.
|
|
7125
|
+
*/
|
|
7126
|
+
type: 'programmatic_tool_calling';
|
|
7127
|
+
}
|
|
7128
|
+
/**
|
|
7129
|
+
* A tool that generates images using the GPT image models.
|
|
7130
|
+
*/
|
|
7131
|
+
interface ImageGeneration {
|
|
7132
|
+
/**
|
|
7133
|
+
* The type of the image generation tool. Always `image_generation`.
|
|
7134
|
+
*/
|
|
7135
|
+
type: 'image_generation';
|
|
7136
|
+
/**
|
|
7137
|
+
* Whether to generate a new image or edit an existing image. Default: `auto`.
|
|
7138
|
+
*/
|
|
7139
|
+
action?: 'generate' | 'edit' | 'auto';
|
|
7140
|
+
/**
|
|
7141
|
+
* Allows to set transparency for the background of the generated image(s). Must be
|
|
7142
|
+
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
7143
|
+
* the model will automatically determine the best background for the image.
|
|
7144
|
+
*
|
|
7145
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
7146
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
7147
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
7148
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
7149
|
+
* set the output format to `png` or `webp`.
|
|
7150
|
+
*/
|
|
7151
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
7152
|
+
/**
|
|
7153
|
+
* Control how much effort the model will exert to match the style and features,
|
|
7154
|
+
* especially facial features, of input images. Supports `high` and `low` on
|
|
7155
|
+
* `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
7156
|
+
* `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
7157
|
+
*/
|
|
7158
|
+
input_fidelity?: 'high' | 'low' | null;
|
|
7159
|
+
/**
|
|
7160
|
+
* Optional mask for inpainting. Contains `image_url` (string, optional) and
|
|
7161
|
+
* `file_id` (string, optional).
|
|
7162
|
+
*/
|
|
7163
|
+
input_image_mask?: ImageGeneration.InputImageMask;
|
|
7164
|
+
/**
|
|
7165
|
+
* The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
|
|
7166
|
+
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
7167
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
7168
|
+
* `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
|
|
7169
|
+
* `chatgpt-image-latest`. Default: `gpt-image-1`.
|
|
7170
|
+
*/
|
|
7171
|
+
model?: (string & {}) | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-1.5' | 'chatgpt-image-latest';
|
|
7172
|
+
/**
|
|
7173
|
+
* Moderation level for the generated image. Default: `auto`.
|
|
7174
|
+
*/
|
|
7175
|
+
moderation?: 'auto' | 'low';
|
|
7176
|
+
/**
|
|
7177
|
+
* Compression level for the output image. Default: 100.
|
|
7178
|
+
*/
|
|
7179
|
+
output_compression?: number;
|
|
7180
|
+
/**
|
|
7181
|
+
* The output format of the generated image. One of `png`, `webp`, or `jpeg`.
|
|
7182
|
+
* Default: `png`.
|
|
7183
|
+
*/
|
|
7184
|
+
output_format?: 'png' | 'webp' | 'jpeg';
|
|
7185
|
+
/**
|
|
7186
|
+
* Number of partial images to generate in streaming mode, from 0 (default value)
|
|
7187
|
+
* to 3.
|
|
7188
|
+
*/
|
|
7189
|
+
partial_images?: number;
|
|
7190
|
+
/**
|
|
7191
|
+
* The quality of the generated image. The GPT image models support `low`,
|
|
7192
|
+
* `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
|
|
7193
|
+
* including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
|
|
7194
|
+
* `auto`.
|
|
7195
|
+
*/
|
|
7196
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
7197
|
+
/**
|
|
7198
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
7199
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
7200
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
7201
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
7202
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
7203
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
7204
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
7205
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
7206
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
7207
|
+
* `auto` is supported for models that allow automatic sizing.
|
|
7208
|
+
*/
|
|
7209
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
7210
|
+
}
|
|
7211
|
+
namespace ImageGeneration {
|
|
7212
|
+
/**
|
|
7213
|
+
* Optional mask for inpainting. Contains `image_url` (string, optional) and
|
|
7214
|
+
* `file_id` (string, optional).
|
|
7215
|
+
*/
|
|
7216
|
+
interface InputImageMask {
|
|
7217
|
+
/**
|
|
7218
|
+
* File ID for the mask image.
|
|
7219
|
+
*/
|
|
7220
|
+
file_id?: string;
|
|
7221
|
+
/**
|
|
7222
|
+
* Base64-encoded mask image.
|
|
7223
|
+
*/
|
|
7224
|
+
image_url?: string;
|
|
7225
|
+
}
|
|
7226
|
+
}
|
|
7227
|
+
/**
|
|
7228
|
+
* A tool that allows the model to execute shell commands in a local environment.
|
|
7229
|
+
*/
|
|
7230
|
+
interface LocalShell {
|
|
7231
|
+
/**
|
|
7232
|
+
* The type of the local shell tool. Always `local_shell`.
|
|
7233
|
+
*/
|
|
7234
|
+
type: 'local_shell';
|
|
7235
|
+
}
|
|
7236
|
+
}
|
|
6927
7237
|
/**
|
|
6928
7238
|
* Represents token usage details including input tokens, output tokens, a
|
|
6929
7239
|
* breakdown of output tokens, and the total tokens used.
|
|
@@ -8170,6 +8480,11 @@ export declare namespace ResponsesServerEvent {
|
|
|
8170
8480
|
* An optional classification; clients must accept additional values.
|
|
8171
8481
|
*/
|
|
8172
8482
|
error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
|
|
8483
|
+
/**
|
|
8484
|
+
* An opaque target for explicitly continuing this review, or null when
|
|
8485
|
+
* unavailable.
|
|
8486
|
+
*/
|
|
8487
|
+
review_target?: string | null;
|
|
8173
8488
|
/**
|
|
8174
8489
|
* An optional public continuation instruction.
|
|
8175
8490
|
*/
|
|
@@ -8457,9 +8772,10 @@ export declare namespace Tool {
|
|
|
8457
8772
|
*/
|
|
8458
8773
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
8459
8774
|
/**
|
|
8460
|
-
*
|
|
8461
|
-
*
|
|
8462
|
-
* `gpt-image-
|
|
8775
|
+
* Control how much effort the model will exert to match the style and features,
|
|
8776
|
+
* especially facial features, of input images. Supports `high` and `low` on
|
|
8777
|
+
* `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
8778
|
+
* `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
8463
8779
|
*/
|
|
8464
8780
|
input_fidelity?: 'high' | 'low' | null;
|
|
8465
8781
|
/**
|
|
@@ -8510,9 +8826,7 @@ export declare namespace Tool {
|
|
|
8510
8826
|
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
8511
8827
|
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
8512
8828
|
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
8513
|
-
* `auto` is supported for models that allow automatic sizing.
|
|
8514
|
-
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
8515
|
-
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
8829
|
+
* `auto` is supported for models that allow automatic sizing.
|
|
8516
8830
|
*/
|
|
8517
8831
|
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
8518
8832
|
}
|
|
@@ -8671,6 +8985,64 @@ export interface ToolChoiceTypes {
|
|
|
8671
8985
|
*/
|
|
8672
8986
|
type: 'file_search' | 'web_search_preview' | 'computer' | 'computer_use_preview' | 'computer_use' | 'web_search_preview_2025_03_11' | 'image_generation' | 'code_interpreter' | 'mcp';
|
|
8673
8987
|
}
|
|
8988
|
+
/**
|
|
8989
|
+
* Groups function/custom tools under a shared namespace.
|
|
8990
|
+
*/
|
|
8991
|
+
export interface ToolSearchOutputNamespaceTool {
|
|
8992
|
+
/**
|
|
8993
|
+
* A description of the namespace shown to the model.
|
|
8994
|
+
*/
|
|
8995
|
+
description: string;
|
|
8996
|
+
/**
|
|
8997
|
+
* The namespace name used in tool calls (for example, `crm`).
|
|
8998
|
+
*/
|
|
8999
|
+
name: string;
|
|
9000
|
+
/**
|
|
9001
|
+
* The function/custom tools loaded inside this namespace.
|
|
9002
|
+
*/
|
|
9003
|
+
tools: Array<ToolSearchOutputNamespaceTool.Function | CustomTool>;
|
|
9004
|
+
/**
|
|
9005
|
+
* The type of the tool. Always `namespace`.
|
|
9006
|
+
*/
|
|
9007
|
+
type: 'namespace';
|
|
9008
|
+
}
|
|
9009
|
+
export declare namespace ToolSearchOutputNamespaceTool {
|
|
9010
|
+
interface Function {
|
|
9011
|
+
/**
|
|
9012
|
+
* The name of the loaded function tool.
|
|
9013
|
+
*/
|
|
9014
|
+
name: string;
|
|
9015
|
+
type: 'function';
|
|
9016
|
+
/**
|
|
9017
|
+
* The tool invocation context(s).
|
|
9018
|
+
*/
|
|
9019
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
9020
|
+
/**
|
|
9021
|
+
* Whether the tool response can be returned asynchronously versus immediately
|
|
9022
|
+
* returned on next response creation.
|
|
9023
|
+
*/
|
|
9024
|
+
async?: boolean;
|
|
9025
|
+
/**
|
|
9026
|
+
* Whether this function should be deferred and discovered via tool search.
|
|
9027
|
+
*/
|
|
9028
|
+
defer_loading?: boolean;
|
|
9029
|
+
description?: string | null;
|
|
9030
|
+
/**
|
|
9031
|
+
* A JSON Schema describing the JSON value encoded in string outputs for this
|
|
9032
|
+
* function tool. This does not describe content-array outputs.
|
|
9033
|
+
*/
|
|
9034
|
+
output_schema?: {
|
|
9035
|
+
[key: string]: unknown;
|
|
9036
|
+
} | null;
|
|
9037
|
+
parameters?: unknown | null;
|
|
9038
|
+
/**
|
|
9039
|
+
* Whether to enforce strict parameter validation. If omitted, Responses attempts
|
|
9040
|
+
* to use strict validation when the schema is compatible, and falls back to
|
|
9041
|
+
* non-strict validation otherwise.
|
|
9042
|
+
*/
|
|
9043
|
+
strict?: boolean | null;
|
|
9044
|
+
}
|
|
9045
|
+
}
|
|
8674
9046
|
/**
|
|
8675
9047
|
* Hosted or BYOT tool search configuration for deferred tools.
|
|
8676
9048
|
*/
|
|
@@ -9417,7 +9789,7 @@ export declare namespace ResponseCompactParams {
|
|
|
9417
9789
|
}
|
|
9418
9790
|
}
|
|
9419
9791
|
export declare namespace Responses {
|
|
9420
|
-
export { type ApplyPatchTool as ApplyPatchTool, type CompactedResponse as CompactedResponse, type ComputerAction as ComputerAction, type ComputerActionList as ComputerActionList, type ComputerTool as ComputerTool, type ComputerUsePreviewTool as ComputerUsePreviewTool, type ContainerAuto as ContainerAuto, type ContainerNetworkPolicyAllowlist as ContainerNetworkPolicyAllowlist, type ContainerNetworkPolicyDisabled as ContainerNetworkPolicyDisabled, type ContainerNetworkPolicyDomainSecret as ContainerNetworkPolicyDomainSecret, type ContainerReference as ContainerReference, type CustomTool as CustomTool, type EasyInputMessage as EasyInputMessage, type FileSearchTool as FileSearchTool, type FunctionShellTool as FunctionShellTool, type FunctionTool as FunctionTool, type ImageDetail as ImageDetail, type InlineSkill as InlineSkill, type InlineSkillSource as InlineSkillSource, type LocalEnvironment as LocalEnvironment, type LocalSkill as LocalSkill, type McpToolCallError as McpToolCallError, type NamespaceTool as NamespaceTool, type Response as Response, type ResponseApplyPatchToolCall as ResponseApplyPatchToolCall, type ResponseApplyPatchToolCallOutput as ResponseApplyPatchToolCallOutput, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCodeInterpreterCallCodeDeltaEvent as ResponseCodeInterpreterCallCodeDeltaEvent, type ResponseCodeInterpreterCallCodeDoneEvent as ResponseCodeInterpreterCallCodeDoneEvent, type ResponseCodeInterpreterCallCompletedEvent as ResponseCodeInterpreterCallCompletedEvent, type ResponseCodeInterpreterCallInProgressEvent as ResponseCodeInterpreterCallInProgressEvent, type ResponseCodeInterpreterCallInterpretingEvent as ResponseCodeInterpreterCallInterpretingEvent, type ResponseCodeInterpreterToolCall as ResponseCodeInterpreterToolCall, type ResponseCompactionCompactingEvent as ResponseCompactionCompactingEvent, type ResponseCompactionItem as ResponseCompactionItem, type ResponseCompactionItemParam as ResponseCompactionItemParam, type ResponseCompletedEvent as ResponseCompletedEvent, type ResponseComputerToolCall as ResponseComputerToolCall, type ResponseComputerToolCallOutputItem as ResponseComputerToolCallOutputItem, type ResponseComputerToolCallOutputScreenshot as ResponseComputerToolCallOutputScreenshot, type ResponseConfigurationUpdateItem as ResponseConfigurationUpdateItem, type ResponseConfigurationUpdateItemParam as ResponseConfigurationUpdateItemParam, type ResponseContainerReference as ResponseContainerReference, type ResponseContent as ResponseContent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseConversationParam as ResponseConversationParam, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseCustomToolCall as ResponseCustomToolCall, type ResponseCustomToolCallInputDeltaEvent as ResponseCustomToolCallInputDeltaEvent, type ResponseCustomToolCallInputDoneEvent as ResponseCustomToolCallInputDoneEvent, type ResponseCustomToolCallItem as ResponseCustomToolCallItem, type ResponseCustomToolCallOutput as ResponseCustomToolCallOutput, type ResponseCustomToolCallOutputItem as ResponseCustomToolCallOutputItem, type ResponseError as ResponseError, type ResponseErrorEvent as ResponseErrorEvent, type ResponseFailedEvent as ResponseFailedEvent, type ResponseFileSearchCallCompletedEvent as ResponseFileSearchCallCompletedEvent, type ResponseFileSearchCallInProgressEvent as ResponseFileSearchCallInProgressEvent, type ResponseFileSearchCallSearchingEvent as ResponseFileSearchCallSearchingEvent, type ResponseFileSearchToolCall as ResponseFileSearchToolCall, type ResponseFormatTextConfig as ResponseFormatTextConfig, type ResponseFormatTextJSONSchemaConfig as ResponseFormatTextJSONSchemaConfig, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseFunctionCallOutputItem as ResponseFunctionCallOutputItem, type ResponseFunctionCallOutputItemList as ResponseFunctionCallOutputItemList, type ResponseFunctionShellCallOutputContent as ResponseFunctionShellCallOutputContent, type ResponseFunctionShellToolCall as ResponseFunctionShellToolCall, type ResponseFunctionShellToolCallOutput as ResponseFunctionShellToolCallOutput, type ResponseFunctionToolCall as ResponseFunctionToolCall, type ResponseFunctionToolCallItem as ResponseFunctionToolCallItem, type ResponseFunctionToolCallOutputItem as ResponseFunctionToolCallOutputItem, type ResponseFunctionWebSearch as ResponseFunctionWebSearch, type ResponseImageGenCallCompletedEvent as ResponseImageGenCallCompletedEvent, type ResponseImageGenCallGeneratingEvent as ResponseImageGenCallGeneratingEvent, type ResponseImageGenCallInProgressEvent as ResponseImageGenCallInProgressEvent, type ResponseImageGenCallPartialImageEvent as ResponseImageGenCallPartialImageEvent, type ResponseInProgressEvent as ResponseInProgressEvent, type ResponseIncludable as ResponseIncludable, type ResponseIncompleteEvent as ResponseIncompleteEvent, type ResponseInput as ResponseInput, type ResponseInputAudio as ResponseInputAudio, type ResponseInputContent as ResponseInputContent, type ResponseInputFile as ResponseInputFile, type ResponseInputFileContent as ResponseInputFileContent, type ResponseInputImage as ResponseInputImage, type ResponseInputImageContent as ResponseInputImageContent, type ResponseInputItem as ResponseInputItem, type ResponseInputMessageContentList as ResponseInputMessageContentList, type ResponseInputMessageItem as ResponseInputMessageItem, type ResponseInputText as ResponseInputText, type ResponseInputTextContent as ResponseInputTextContent, type ResponseItem as ResponseItem, type ResponseLocalEnvironment as ResponseLocalEnvironment, type ResponseMcpCallArgumentsDeltaEvent as ResponseMcpCallArgumentsDeltaEvent, type ResponseMcpCallArgumentsDoneEvent as ResponseMcpCallArgumentsDoneEvent, type ResponseMcpCallCompletedEvent as ResponseMcpCallCompletedEvent, type ResponseMcpCallFailedEvent as ResponseMcpCallFailedEvent, type ResponseMcpCallInProgressEvent as ResponseMcpCallInProgressEvent, type ResponseMcpListToolsCompletedEvent as ResponseMcpListToolsCompletedEvent, type ResponseMcpListToolsFailedEvent as ResponseMcpListToolsFailedEvent, type ResponseMcpListToolsInProgressEvent as ResponseMcpListToolsInProgressEvent, type ResponseOutputAudio as ResponseOutputAudio, type ResponseOutputItem as ResponseOutputItem, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseOutputMessage as ResponseOutputMessage, type ResponseOutputRefusal as ResponseOutputRefusal, type ResponseOutputText as ResponseOutputText, type ResponseOutputTextAnnotationAddedEvent as ResponseOutputTextAnnotationAddedEvent, type ResponsePrompt as ResponsePrompt, type ResponseQueuedEvent as ResponseQueuedEvent, type ResponseReasoningItem as ResponseReasoningItem, type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent, type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent, type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent, type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent, type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent, type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent, type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent, type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent, type ResponseShellCallCommandAddedEvent as ResponseShellCallCommandAddedEvent, type ResponseShellCallCommandDeltaEvent as ResponseShellCallCommandDeltaEvent, type ResponseShellCallCommandDoneEvent as ResponseShellCallCommandDoneEvent, type ResponseShellCallOutputContentDeltaEvent as ResponseShellCallOutputContentDeltaEvent, type ResponseShellCallOutputContentDoneEvent as ResponseShellCallOutputContentDoneEvent, type ResponseStatus as ResponseStatus, type ResponseSteerAcceptedEvent as ResponseSteerAcceptedEvent, type ResponseSteerErrorCode as ResponseSteerErrorCode, type ResponseSteerEvent as ResponseSteerEvent, type ResponseSteerFailedEvent as ResponseSteerFailedEvent, type ResponseSteerInput as ResponseSteerInput, type ResponseSteerInputContent as ResponseSteerInputContent, type ResponseSteerPendingEvent as ResponseSteerPendingEvent, type ResponseSteerPendingReason as ResponseSteerPendingReason, type ResponseSteerRequiredInput as ResponseSteerRequiredInput, type ResponseStreamEvent as ResponseStreamEvent, type ResponseTextConfig as ResponseTextConfig, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type ResponseToolSearchCall as ResponseToolSearchCall, type ResponseToolSearchOutputItem as ResponseToolSearchOutputItem, type ResponseToolSearchOutputItemParam as ResponseToolSearchOutputItemParam, type ResponseUsage as ResponseUsage, type ResponseWebSearchCallCompletedEvent as ResponseWebSearchCallCompletedEvent, type ResponseWebSearchCallInProgressEvent as ResponseWebSearchCallInProgressEvent, type ResponseWebSearchCallSearchingEvent as ResponseWebSearchCallSearchingEvent, type ResponsesClientEvent as ResponsesClientEvent, type ResponsesServerEvent as ResponsesServerEvent, type ServiceTier as ServiceTier, type SkillReference as SkillReference, type Tool as Tool, type ToolChoiceAllowed as ToolChoiceAllowed, type ToolChoiceApplyPatch as ToolChoiceApplyPatch, type ToolChoiceCustom as ToolChoiceCustom, type ToolChoiceFunction as ToolChoiceFunction, type ToolChoiceMcp as ToolChoiceMcp, type ToolChoiceOptions as ToolChoiceOptions, type ToolChoiceShell as ToolChoiceShell, type ToolChoiceTypes as ToolChoiceTypes, type ToolSearchTool as ToolSearchTool, type WebSearchPreviewTool as WebSearchPreviewTool, type WebSearchTool as WebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, type ResponseCompactParams as ResponseCompactParams, };
|
|
9792
|
+
export { type ApplyPatchTool as ApplyPatchTool, type CompactedResponse as CompactedResponse, type ComputerAction as ComputerAction, type ComputerActionList as ComputerActionList, type ComputerTool as ComputerTool, type ComputerUsePreviewTool as ComputerUsePreviewTool, type ContainerAuto as ContainerAuto, type ContainerNetworkPolicyAllowlist as ContainerNetworkPolicyAllowlist, type ContainerNetworkPolicyDisabled as ContainerNetworkPolicyDisabled, type ContainerNetworkPolicyDomainSecret as ContainerNetworkPolicyDomainSecret, type ContainerReference as ContainerReference, type CustomTool as CustomTool, type EasyInputMessage as EasyInputMessage, type FileSearchTool as FileSearchTool, type FunctionShellTool as FunctionShellTool, type FunctionTool as FunctionTool, type ImageDetail as ImageDetail, type InlineSkill as InlineSkill, type InlineSkillSource as InlineSkillSource, type LocalEnvironment as LocalEnvironment, type LocalSkill as LocalSkill, type McpToolCallError as McpToolCallError, type NamespaceTool as NamespaceTool, type Response as Response, type ResponseApplyPatchToolCall as ResponseApplyPatchToolCall, type ResponseApplyPatchToolCallOutput as ResponseApplyPatchToolCallOutput, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCodeInterpreterCallCodeDeltaEvent as ResponseCodeInterpreterCallCodeDeltaEvent, type ResponseCodeInterpreterCallCodeDoneEvent as ResponseCodeInterpreterCallCodeDoneEvent, type ResponseCodeInterpreterCallCompletedEvent as ResponseCodeInterpreterCallCompletedEvent, type ResponseCodeInterpreterCallInProgressEvent as ResponseCodeInterpreterCallInProgressEvent, type ResponseCodeInterpreterCallInterpretingEvent as ResponseCodeInterpreterCallInterpretingEvent, type ResponseCodeInterpreterToolCall as ResponseCodeInterpreterToolCall, type ResponseCompactionCompactingEvent as ResponseCompactionCompactingEvent, type ResponseCompactionItem as ResponseCompactionItem, type ResponseCompactionItemParam as ResponseCompactionItemParam, type ResponseCompletedEvent as ResponseCompletedEvent, type ResponseComputerToolCall as ResponseComputerToolCall, type ResponseComputerToolCallOutputItem as ResponseComputerToolCallOutputItem, type ResponseComputerToolCallOutputScreenshot as ResponseComputerToolCallOutputScreenshot, type ResponseConfigurationUpdateItem as ResponseConfigurationUpdateItem, type ResponseConfigurationUpdateItemParam as ResponseConfigurationUpdateItemParam, type ResponseContainerReference as ResponseContainerReference, type ResponseContent as ResponseContent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseConversationParam as ResponseConversationParam, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseCustomToolCall as ResponseCustomToolCall, type ResponseCustomToolCallInputDeltaEvent as ResponseCustomToolCallInputDeltaEvent, type ResponseCustomToolCallInputDoneEvent as ResponseCustomToolCallInputDoneEvent, type ResponseCustomToolCallItem as ResponseCustomToolCallItem, type ResponseCustomToolCallOutput as ResponseCustomToolCallOutput, type ResponseCustomToolCallOutputItem as ResponseCustomToolCallOutputItem, type ResponseError as ResponseError, type ResponseErrorEvent as ResponseErrorEvent, type ResponseFailedEvent as ResponseFailedEvent, type ResponseFileSearchCallCompletedEvent as ResponseFileSearchCallCompletedEvent, type ResponseFileSearchCallInProgressEvent as ResponseFileSearchCallInProgressEvent, type ResponseFileSearchCallSearchingEvent as ResponseFileSearchCallSearchingEvent, type ResponseFileSearchToolCall as ResponseFileSearchToolCall, type ResponseFormatTextConfig as ResponseFormatTextConfig, type ResponseFormatTextJSONSchemaConfig as ResponseFormatTextJSONSchemaConfig, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseFunctionCallOutputItem as ResponseFunctionCallOutputItem, type ResponseFunctionCallOutputItemList as ResponseFunctionCallOutputItemList, type ResponseFunctionShellCallOutputContent as ResponseFunctionShellCallOutputContent, type ResponseFunctionShellToolCall as ResponseFunctionShellToolCall, type ResponseFunctionShellToolCallOutput as ResponseFunctionShellToolCallOutput, type ResponseFunctionToolCall as ResponseFunctionToolCall, type ResponseFunctionToolCallItem as ResponseFunctionToolCallItem, type ResponseFunctionToolCallOutputItem as ResponseFunctionToolCallOutputItem, type ResponseFunctionWebSearch as ResponseFunctionWebSearch, type ResponseImageGenCallCompletedEvent as ResponseImageGenCallCompletedEvent, type ResponseImageGenCallGeneratingEvent as ResponseImageGenCallGeneratingEvent, type ResponseImageGenCallInProgressEvent as ResponseImageGenCallInProgressEvent, type ResponseImageGenCallPartialImageEvent as ResponseImageGenCallPartialImageEvent, type ResponseInProgressEvent as ResponseInProgressEvent, type ResponseIncludable as ResponseIncludable, type ResponseIncompleteEvent as ResponseIncompleteEvent, type ResponseInput as ResponseInput, type ResponseInputAudio as ResponseInputAudio, type ResponseInputContent as ResponseInputContent, type ResponseInputFile as ResponseInputFile, type ResponseInputFileContent as ResponseInputFileContent, type ResponseInputImage as ResponseInputImage, type ResponseInputImageContent as ResponseInputImageContent, type ResponseInputItem as ResponseInputItem, type ResponseInputMessageContentList as ResponseInputMessageContentList, type ResponseInputMessageItem as ResponseInputMessageItem, type ResponseInputText as ResponseInputText, type ResponseInputTextContent as ResponseInputTextContent, type ResponseItem as ResponseItem, type ResponseLocalEnvironment as ResponseLocalEnvironment, type ResponseMcpCallArgumentsDeltaEvent as ResponseMcpCallArgumentsDeltaEvent, type ResponseMcpCallArgumentsDoneEvent as ResponseMcpCallArgumentsDoneEvent, type ResponseMcpCallCompletedEvent as ResponseMcpCallCompletedEvent, type ResponseMcpCallFailedEvent as ResponseMcpCallFailedEvent, type ResponseMcpCallInProgressEvent as ResponseMcpCallInProgressEvent, type ResponseMcpListToolsCompletedEvent as ResponseMcpListToolsCompletedEvent, type ResponseMcpListToolsFailedEvent as ResponseMcpListToolsFailedEvent, type ResponseMcpListToolsInProgressEvent as ResponseMcpListToolsInProgressEvent, type ResponseOutputAudio as ResponseOutputAudio, type ResponseOutputItem as ResponseOutputItem, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseOutputMessage as ResponseOutputMessage, type ResponseOutputRefusal as ResponseOutputRefusal, type ResponseOutputText as ResponseOutputText, type ResponseOutputTextAnnotationAddedEvent as ResponseOutputTextAnnotationAddedEvent, type ResponsePrompt as ResponsePrompt, type ResponseQueuedEvent as ResponseQueuedEvent, type ResponseReasoningItem as ResponseReasoningItem, type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent, type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent, type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent, type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent, type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent, type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent, type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent, type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent, type ResponseShellCallCommandAddedEvent as ResponseShellCallCommandAddedEvent, type ResponseShellCallCommandDeltaEvent as ResponseShellCallCommandDeltaEvent, type ResponseShellCallCommandDoneEvent as ResponseShellCallCommandDoneEvent, type ResponseShellCallOutputContentDeltaEvent as ResponseShellCallOutputContentDeltaEvent, type ResponseShellCallOutputContentDoneEvent as ResponseShellCallOutputContentDoneEvent, type ResponseStatus as ResponseStatus, type ResponseSteerAcceptedEvent as ResponseSteerAcceptedEvent, type ResponseSteerErrorCode as ResponseSteerErrorCode, type ResponseSteerEvent as ResponseSteerEvent, type ResponseSteerFailedEvent as ResponseSteerFailedEvent, type ResponseSteerInput as ResponseSteerInput, type ResponseSteerInputContent as ResponseSteerInputContent, type ResponseSteerPendingEvent as ResponseSteerPendingEvent, type ResponseSteerPendingReason as ResponseSteerPendingReason, type ResponseSteerRequiredInput as ResponseSteerRequiredInput, type ResponseStreamEvent as ResponseStreamEvent, type ResponseTextConfig as ResponseTextConfig, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type ResponseToolSearchCall as ResponseToolSearchCall, type ResponseToolSearchOutputItem as ResponseToolSearchOutputItem, type ResponseToolSearchOutputItemParam as ResponseToolSearchOutputItemParam, type ResponseUsage as ResponseUsage, type ResponseWebSearchCallCompletedEvent as ResponseWebSearchCallCompletedEvent, type ResponseWebSearchCallInProgressEvent as ResponseWebSearchCallInProgressEvent, type ResponseWebSearchCallSearchingEvent as ResponseWebSearchCallSearchingEvent, type ResponsesClientEvent as ResponsesClientEvent, type ResponsesServerEvent as ResponsesServerEvent, type ServiceTier as ServiceTier, type SkillReference as SkillReference, type Tool as Tool, type ToolChoiceAllowed as ToolChoiceAllowed, type ToolChoiceApplyPatch as ToolChoiceApplyPatch, type ToolChoiceCustom as ToolChoiceCustom, type ToolChoiceFunction as ToolChoiceFunction, type ToolChoiceMcp as ToolChoiceMcp, type ToolChoiceOptions as ToolChoiceOptions, type ToolChoiceShell as ToolChoiceShell, type ToolChoiceTypes as ToolChoiceTypes, type ToolSearchOutputNamespaceTool as ToolSearchOutputNamespaceTool, type ToolSearchTool as ToolSearchTool, type WebSearchPreviewTool as WebSearchPreviewTool, type WebSearchTool as WebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, type ResponseCompactParams as ResponseCompactParams, };
|
|
9421
9793
|
export { InputItems as InputItems, type ResponseItemList as ResponseItemList, type InputItemListParams as InputItemListParams, };
|
|
9422
9794
|
export { InputTokens as InputTokens, type InputTokenCountResponse as InputTokenCountResponse, type InputTokenCountParams as InputTokenCountParams, };
|
|
9423
9795
|
}
|