openai 7.9.0 → 7.10.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 +12 -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/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.js +1 -0
- package/lib/responses/ResponseInputItems.js.map +1 -1
- package/lib/responses/ResponseInputItems.mjs +1 -0
- package/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/usage.d.mts +1 -1
- package/resources/admin/organization/usage.d.ts +1 -1
- package/resources/batches.d.mts +1 -1
- package/resources/batches.d.ts +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 +660 -17
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +660 -17
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +2 -2
- package/resources/chat/completions/completions.d.ts +2 -2
- package/resources/conversations/items.d.mts +1 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/evals/evals.d.mts +4 -4
- package/resources/evals/evals.d.ts +4 -4
- package/resources/evals/runs/runs.d.mts +1 -1
- package/resources/evals/runs/runs.d.ts +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/responses/responses.d.mts +1098 -480
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +1098 -480
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety/alerts.d.mts +32 -0
- package/resources/safety/alerts.d.mts.map +1 -0
- package/resources/safety/alerts.d.ts +32 -0
- package/resources/safety/alerts.d.ts.map +1 -0
- package/resources/safety/alerts.js +16 -0
- package/resources/safety/alerts.js.map +1 -0
- package/resources/safety/alerts.mjs +12 -0
- package/resources/safety/alerts.mjs.map +1 -0
- package/resources/safety/index.d.mts +3 -0
- package/resources/safety/index.d.mts.map +1 -0
- package/resources/safety/index.d.ts +3 -0
- package/resources/safety/index.d.ts.map +1 -0
- package/resources/safety/index.js +9 -0
- package/resources/safety/index.js.map +1 -0
- package/resources/safety/index.mjs +4 -0
- package/resources/safety/index.mjs.map +1 -0
- package/resources/safety/safety.d.mts +10 -0
- package/resources/safety/safety.d.mts.map +1 -0
- package/resources/safety/safety.d.ts +10 -0
- package/resources/safety/safety.d.ts.map +1 -0
- package/resources/safety/safety.js +17 -0
- package/resources/safety/safety.js.map +1 -0
- package/resources/safety/safety.mjs +12 -0
- package/resources/safety/safety.mjs.map +1 -0
- package/resources/safety.d.mts +2 -0
- package/resources/safety.d.mts.map +1 -0
- package/resources/safety.d.ts +2 -0
- package/resources/safety.d.ts.map +1 -0
- package/resources/safety.js +6 -0
- package/resources/safety.js.map +1 -0
- package/resources/safety.mjs +3 -0
- package/resources/safety.mjs.map +1 -0
- package/resources/shared.d.mts +29 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +29 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/videos.d.mts +28 -0
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +28 -0
- package/resources/videos.d.ts.map +1 -1
- package/resources/webhooks/webhooks.d.mts +62 -2
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +62 -2
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/src/client.ts +5 -0
- package/src/lib/responses/ResponseInputItems.ts +1 -0
- package/src/resources/admin/organization/usage.ts +1 -1
- package/src/resources/batches.ts +1 -1
- package/src/resources/beta/beta.ts +22 -0
- package/src/resources/beta/index.ts +11 -0
- package/src/resources/beta/responses/index.ts +11 -0
- package/src/resources/beta/responses/responses.ts +801 -8
- package/src/resources/chat/completions/completions.ts +2 -2
- package/src/resources/conversations/items.ts +1 -0
- package/src/resources/evals/evals.ts +4 -4
- package/src/resources/evals/runs/runs.ts +1 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/responses/api.md +11 -0
- package/src/resources/responses/responses.ts +1280 -518
- package/src/resources/safety/alerts.ts +51 -0
- package/src/resources/safety/index.ts +4 -0
- package/src/resources/safety/safety.ts +15 -0
- package/src/resources/safety.ts +3 -0
- package/src/resources/shared.ts +39 -0
- package/src/resources/videos.ts +38 -0
- package/src/resources/webhooks/api.md +2 -0
- package/src/resources/webhooks/webhooks.ts +77 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -81,7 +81,7 @@ export declare class Responses extends APIResource {
|
|
|
81
81
|
* ```ts
|
|
82
82
|
* const betaCompactedResponse =
|
|
83
83
|
* await client.beta.responses.compact({
|
|
84
|
-
* model: 'gpt-
|
|
84
|
+
* model: 'gpt-6-astra',
|
|
85
85
|
* });
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
@@ -441,6 +441,11 @@ export interface BetaCustomTool {
|
|
|
441
441
|
* The tool invocation context(s).
|
|
442
442
|
*/
|
|
443
443
|
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
444
|
+
/**
|
|
445
|
+
* Whether the tool response can be returned asynchronously versus immediately
|
|
446
|
+
* returned on next response creation.
|
|
447
|
+
*/
|
|
448
|
+
async?: boolean;
|
|
444
449
|
/**
|
|
445
450
|
* Whether this tool should be deferred and discovered via tool search.
|
|
446
451
|
*/
|
|
@@ -694,6 +699,7 @@ export interface BetaFunctionTool {
|
|
|
694
699
|
* The tool invocation context(s).
|
|
695
700
|
*/
|
|
696
701
|
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
702
|
+
async?: boolean;
|
|
697
703
|
/**
|
|
698
704
|
* Whether this function is deferred and loaded via tool search.
|
|
699
705
|
*/
|
|
@@ -817,6 +823,11 @@ export declare namespace BetaNamespaceTool {
|
|
|
817
823
|
* The tool invocation context(s).
|
|
818
824
|
*/
|
|
819
825
|
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
826
|
+
/**
|
|
827
|
+
* Whether the tool response can be returned asynchronously versus immediately
|
|
828
|
+
* returned on next response creation.
|
|
829
|
+
*/
|
|
830
|
+
async?: boolean;
|
|
820
831
|
/**
|
|
821
832
|
* Whether this function should be deferred and discovered via tool search.
|
|
822
833
|
*/
|
|
@@ -875,13 +886,13 @@ export interface BetaResponse {
|
|
|
875
886
|
[key: string]: string;
|
|
876
887
|
} | null;
|
|
877
888
|
/**
|
|
878
|
-
* Model ID used to generate the response, like `gpt-
|
|
889
|
+
* Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
|
|
879
890
|
* range of models with different capabilities, performance characteristics, and
|
|
880
891
|
* price points. Refer to the
|
|
881
892
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
882
893
|
* available models.
|
|
883
894
|
*/
|
|
884
|
-
model: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
|
|
895
|
+
model: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
|
|
885
896
|
/**
|
|
886
897
|
* The object type of this resource - always set to `response`.
|
|
887
898
|
*/
|
|
@@ -1110,9 +1121,11 @@ export declare namespace BetaResponse {
|
|
|
1110
1121
|
*/
|
|
1111
1122
|
interface IncompleteDetails {
|
|
1112
1123
|
/**
|
|
1113
|
-
* The reason why the response is incomplete.
|
|
1124
|
+
* The reason why the response is incomplete. `steered` means the response stopped
|
|
1125
|
+
* at a safe output boundary after a WebSocket `response.steer` event. The server
|
|
1126
|
+
* can then create a successor response automatically with the queued input.
|
|
1114
1127
|
*/
|
|
1115
|
-
reason?: 'max_output_tokens' | 'max_messages' | 'content_filter';
|
|
1128
|
+
reason?: 'max_output_tokens' | 'max_messages' | 'content_filter' | 'steered';
|
|
1116
1129
|
}
|
|
1117
1130
|
interface BetaSpecificProgrammaticToolCallingParam {
|
|
1118
1131
|
/**
|
|
@@ -2119,6 +2132,93 @@ export interface BetaResponseComputerToolCallOutputScreenshot {
|
|
|
2119
2132
|
*/
|
|
2120
2133
|
image_url?: string;
|
|
2121
2134
|
}
|
|
2135
|
+
/**
|
|
2136
|
+
* A configuration update that applies to subsequent responses until it is replaced
|
|
2137
|
+
* by another configuration update.
|
|
2138
|
+
*/
|
|
2139
|
+
export interface BetaResponseConfigurationUpdateItem {
|
|
2140
|
+
/**
|
|
2141
|
+
* The unique ID of the configuration update item.
|
|
2142
|
+
*/
|
|
2143
|
+
id: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* The item type. Always `configuration_update`.
|
|
2146
|
+
*/
|
|
2147
|
+
type: 'configuration_update';
|
|
2148
|
+
/**
|
|
2149
|
+
* The agent that produced this item.
|
|
2150
|
+
*/
|
|
2151
|
+
agent?: BetaResponseConfigurationUpdateItem.Agent;
|
|
2152
|
+
/**
|
|
2153
|
+
* The reasoning configuration applied by this update.
|
|
2154
|
+
*/
|
|
2155
|
+
reasoning?: BetaResponseConfigurationUpdateItem.Reasoning;
|
|
2156
|
+
}
|
|
2157
|
+
export declare namespace BetaResponseConfigurationUpdateItem {
|
|
2158
|
+
/**
|
|
2159
|
+
* The agent that produced this item.
|
|
2160
|
+
*/
|
|
2161
|
+
interface Agent {
|
|
2162
|
+
/**
|
|
2163
|
+
* The canonical name of the agent that produced this item.
|
|
2164
|
+
*/
|
|
2165
|
+
agent_name: string;
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* The reasoning configuration applied by this update.
|
|
2169
|
+
*/
|
|
2170
|
+
interface Reasoning {
|
|
2171
|
+
/**
|
|
2172
|
+
* The reasoning effort used for subsequent responses until another configuration
|
|
2173
|
+
* update replaces it.
|
|
2174
|
+
*/
|
|
2175
|
+
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
/**
|
|
2179
|
+
* An update to the conversation's response configuration. The configuration
|
|
2180
|
+
* remains in effect for subsequent responses until it is replaced by another
|
|
2181
|
+
* configuration update.
|
|
2182
|
+
*/
|
|
2183
|
+
export interface BetaResponseConfigurationUpdateItemParam {
|
|
2184
|
+
/**
|
|
2185
|
+
* The item type. Always `configuration_update`.
|
|
2186
|
+
*/
|
|
2187
|
+
type: 'configuration_update';
|
|
2188
|
+
/**
|
|
2189
|
+
* The unique ID of the configuration update item.
|
|
2190
|
+
*/
|
|
2191
|
+
id?: string | null;
|
|
2192
|
+
/**
|
|
2193
|
+
* The agent that produced this item.
|
|
2194
|
+
*/
|
|
2195
|
+
agent?: BetaResponseConfigurationUpdateItemParam.Agent | null;
|
|
2196
|
+
/**
|
|
2197
|
+
* Updates to reasoning configuration. Only effort is supported.
|
|
2198
|
+
*/
|
|
2199
|
+
reasoning?: BetaResponseConfigurationUpdateItemParam.Reasoning;
|
|
2200
|
+
}
|
|
2201
|
+
export declare namespace BetaResponseConfigurationUpdateItemParam {
|
|
2202
|
+
/**
|
|
2203
|
+
* The agent that produced this item.
|
|
2204
|
+
*/
|
|
2205
|
+
interface Agent {
|
|
2206
|
+
/**
|
|
2207
|
+
* The canonical name of the agent that produced this item.
|
|
2208
|
+
*/
|
|
2209
|
+
agent_name: string;
|
|
2210
|
+
}
|
|
2211
|
+
/**
|
|
2212
|
+
* Updates to reasoning configuration. Only effort is supported.
|
|
2213
|
+
*/
|
|
2214
|
+
interface Reasoning {
|
|
2215
|
+
/**
|
|
2216
|
+
* The reasoning effort to use for subsequent responses until another configuration
|
|
2217
|
+
* update replaces it.
|
|
2218
|
+
*/
|
|
2219
|
+
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2122
2222
|
/**
|
|
2123
2223
|
* Represents a container created with /v1/containers.
|
|
2124
2224
|
*/
|
|
@@ -2331,6 +2431,10 @@ export interface BetaResponseCustomToolCall {
|
|
|
2331
2431
|
* The agent that produced this item.
|
|
2332
2432
|
*/
|
|
2333
2433
|
agent?: BetaResponseCustomToolCall.Agent | null;
|
|
2434
|
+
/**
|
|
2435
|
+
* Whether the custom tool call runs asynchronously.
|
|
2436
|
+
*/
|
|
2437
|
+
async?: boolean;
|
|
2334
2438
|
/**
|
|
2335
2439
|
* The execution context that produced this tool call.
|
|
2336
2440
|
*/
|
|
@@ -2541,11 +2645,39 @@ export interface BetaResponseError {
|
|
|
2541
2645
|
/**
|
|
2542
2646
|
* The error code for the response.
|
|
2543
2647
|
*/
|
|
2544
|
-
code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt' | 'data_residency_mismatch' | 'bio_policy' | 'vector_store_timeout' | 'invalid_image' | 'invalid_image_format' | 'invalid_base64_image' | 'invalid_image_url' | 'image_too_large' | 'image_too_small' | 'image_parse_error' | 'image_content_policy_violation' | 'invalid_image_mode' | 'image_file_too_large' | 'unsupported_image_media_type' | 'empty_image_file' | 'failed_to_download_image' | 'image_file_not_found';
|
|
2648
|
+
code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt' | 'data_residency_mismatch' | 'bio_policy' | 'misalignment_policy_violation' | 'vector_store_timeout' | 'invalid_image' | 'invalid_image_format' | 'invalid_base64_image' | 'invalid_image_url' | 'image_too_large' | 'image_too_small' | 'image_parse_error' | 'image_content_policy_violation' | 'invalid_image_mode' | 'image_file_too_large' | 'unsupported_image_media_type' | 'empty_image_file' | 'failed_to_download_image' | 'image_file_not_found';
|
|
2545
2649
|
/**
|
|
2546
2650
|
* A human-readable description of the error.
|
|
2547
2651
|
*/
|
|
2548
2652
|
message: string;
|
|
2653
|
+
misalignment?: BetaResponseError.Misalignment;
|
|
2654
|
+
}
|
|
2655
|
+
export declare namespace BetaResponseError {
|
|
2656
|
+
interface Misalignment {
|
|
2657
|
+
/**
|
|
2658
|
+
* The public explanation for this block.
|
|
2659
|
+
*/
|
|
2660
|
+
detailed_explanation?: string;
|
|
2661
|
+
/**
|
|
2662
|
+
* An optional classification; clients must accept additional values.
|
|
2663
|
+
*/
|
|
2664
|
+
error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
|
|
2665
|
+
/**
|
|
2666
|
+
* An optional public continuation instruction.
|
|
2667
|
+
*/
|
|
2668
|
+
steer?: Misalignment.Steer;
|
|
2669
|
+
}
|
|
2670
|
+
namespace Misalignment {
|
|
2671
|
+
/**
|
|
2672
|
+
* An optional public continuation instruction.
|
|
2673
|
+
*/
|
|
2674
|
+
interface Steer {
|
|
2675
|
+
/**
|
|
2676
|
+
* The public continuation instruction.
|
|
2677
|
+
*/
|
|
2678
|
+
message: string;
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2549
2681
|
}
|
|
2550
2682
|
/**
|
|
2551
2683
|
* Emitted when an error occurs.
|
|
@@ -3221,6 +3353,10 @@ export interface BetaResponseFunctionToolCall {
|
|
|
3221
3353
|
* The agent that produced this item.
|
|
3222
3354
|
*/
|
|
3223
3355
|
agent?: BetaResponseFunctionToolCall.Agent | null;
|
|
3356
|
+
/**
|
|
3357
|
+
* Whether the function tool call runs asynchronously.
|
|
3358
|
+
*/
|
|
3359
|
+
async?: boolean;
|
|
3224
3360
|
/**
|
|
3225
3361
|
* The execution context that produced this tool call.
|
|
3226
3362
|
*/
|
|
@@ -3680,6 +3816,10 @@ export declare namespace BetaResponseInProgressEvent {
|
|
|
3680
3816
|
export type BetaResponseIncludable = 'file_search_call.results' | 'web_search_call.results' | 'web_search_call.action.sources' | 'message.input_image.image_url' | 'computer_call_output.output.image_url' | 'code_interpreter_call.outputs' | 'reasoning.encrypted_content' | 'message.output_text.logprobs';
|
|
3681
3817
|
/**
|
|
3682
3818
|
* An event that is emitted when a response finishes as incomplete.
|
|
3819
|
+
*
|
|
3820
|
+
* Over WebSocket, steering can finish a response with
|
|
3821
|
+
* `response.incomplete_details.reason` set to `steered`, followed automatically by
|
|
3822
|
+
* a successor `response.created` that commits the queued steering input.
|
|
3683
3823
|
*/
|
|
3684
3824
|
export interface BetaResponseIncompleteEvent {
|
|
3685
3825
|
/**
|
|
@@ -4027,7 +4167,7 @@ export declare namespace BetaResponseInputImageContent {
|
|
|
4027
4167
|
* `assistant` role are presumed to have been generated by the model in previous
|
|
4028
4168
|
* interactions.
|
|
4029
4169
|
*/
|
|
4030
|
-
export type BetaResponseInputItem = BetaEasyInputMessage | BetaResponseInputItem.Message | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseInputItem.ComputerCallOutput | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCall | BetaResponseInputItem.FunctionCallOutput | BetaResponseInputItem.AgentMessage | BetaResponseInputItem.MultiAgentCall | BetaResponseInputItem.MultiAgentCallOutput | BetaResponseInputItem.ToolSearchCall | BetaResponseToolSearchOutputItemParam | BetaResponseInputItem.AdditionalTools | BetaResponseReasoningItem | BetaResponseCompactionItemParam | BetaResponseInputItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseInputItem.LocalShellCall | BetaResponseInputItem.LocalShellCallOutput | BetaResponseInputItem.ShellCall | BetaResponseInputItem.ShellCallOutput | BetaResponseInputItem.ApplyPatchCall | BetaResponseInputItem.ApplyPatchCallOutput | BetaResponseInputItem.McpListTools | BetaResponseInputItem.McpApprovalRequest | BetaResponseInputItem.McpApprovalResponse | BetaResponseInputItem.McpCall | BetaResponseCustomToolCallOutput | BetaResponseCustomToolCall | BetaResponseInputItem.CompactionTrigger | BetaResponseInputItem.ItemReference | BetaResponseInputItem.Program | BetaResponseInputItem.ProgramOutput;
|
|
4170
|
+
export type BetaResponseInputItem = BetaEasyInputMessage | BetaResponseInputItem.Message | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseInputItem.ComputerCallOutput | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCall | BetaResponseInputItem.FunctionCallOutput | BetaResponseInputItem.AgentMessage | BetaResponseInputItem.MultiAgentCall | BetaResponseInputItem.MultiAgentCallOutput | BetaResponseInputItem.ToolSearchCall | BetaResponseToolSearchOutputItemParam | BetaResponseInputItem.AdditionalTools | BetaResponseConfigurationUpdateItemParam | BetaResponseReasoningItem | BetaResponseCompactionItemParam | BetaResponseInputItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseInputItem.LocalShellCall | BetaResponseInputItem.LocalShellCallOutput | BetaResponseInputItem.ShellCall | BetaResponseInputItem.ShellCallOutput | BetaResponseInputItem.ApplyPatchCall | BetaResponseInputItem.ApplyPatchCallOutput | BetaResponseInputItem.McpListTools | BetaResponseInputItem.McpApprovalRequest | BetaResponseInputItem.McpApprovalResponse | BetaResponseInputItem.McpCall | BetaResponseCustomToolCallOutput | BetaResponseCustomToolCall | BetaResponseInputItem.CompactionTrigger | BetaResponseInputItem.ItemReference | BetaResponseInputItem.Program | BetaResponseInputItem.ProgramOutput;
|
|
4031
4171
|
export declare namespace BetaResponseInputItem {
|
|
4032
4172
|
/**
|
|
4033
4173
|
* A message input to the model with a role indicating instruction following
|
|
@@ -5390,7 +5530,7 @@ export declare namespace BetaResponseInputTextContent {
|
|
|
5390
5530
|
/**
|
|
5391
5531
|
* Content item used to generate a response.
|
|
5392
5532
|
*/
|
|
5393
|
-
export type BetaResponseItem = BetaResponseInputMessageItem | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseComputerToolCallOutputItem | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCallItem | BetaResponseFunctionToolCallOutputItem | BetaResponseItem.AgentMessage | BetaResponseItem.MultiAgentCall | BetaResponseItem.MultiAgentCallOutput | BetaResponseToolSearchCall | BetaResponseToolSearchOutputItem | BetaResponseItem.AdditionalTools | BetaResponseReasoningItem | BetaResponseItem.Program | BetaResponseItem.ProgramOutput | BetaResponseCompactionItem | BetaResponseItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseItem.LocalShellCall | BetaResponseItem.LocalShellCallOutput | BetaResponseFunctionShellToolCall | BetaResponseFunctionShellToolCallOutput | BetaResponseApplyPatchToolCall | BetaResponseApplyPatchToolCallOutput | BetaResponseItem.McpListTools | BetaResponseItem.McpApprovalRequest | BetaResponseItem.McpApprovalResponse | BetaResponseItem.McpCall | BetaResponseCustomToolCallItem | BetaResponseCustomToolCallOutputItem;
|
|
5533
|
+
export type BetaResponseItem = BetaResponseInputMessageItem | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseComputerToolCallOutputItem | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCallItem | BetaResponseFunctionToolCallOutputItem | BetaResponseItem.AgentMessage | BetaResponseItem.MultiAgentCall | BetaResponseItem.MultiAgentCallOutput | BetaResponseToolSearchCall | BetaResponseToolSearchOutputItem | BetaResponseItem.AdditionalTools | BetaResponseConfigurationUpdateItem | BetaResponseReasoningItem | BetaResponseItem.Program | BetaResponseItem.ProgramOutput | BetaResponseCompactionItem | BetaResponseItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseItem.LocalShellCall | BetaResponseItem.LocalShellCallOutput | BetaResponseFunctionShellToolCall | BetaResponseFunctionShellToolCallOutput | BetaResponseApplyPatchToolCall | BetaResponseApplyPatchToolCallOutput | BetaResponseItem.McpListTools | BetaResponseItem.McpApprovalRequest | BetaResponseItem.McpApprovalResponse | BetaResponseItem.McpCall | BetaResponseCustomToolCallItem | BetaResponseCustomToolCallOutputItem;
|
|
5394
5534
|
export declare namespace BetaResponseItem {
|
|
5395
5535
|
interface AgentMessage {
|
|
5396
5536
|
/**
|
|
@@ -8225,6 +8365,477 @@ export declare namespace BetaResponseShellCallOutputContentDoneEvent {
|
|
|
8225
8365
|
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
8226
8366
|
*/
|
|
8227
8367
|
export type BetaResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete';
|
|
8368
|
+
/**
|
|
8369
|
+
* Emitted when steering input has been validated and queued. Acceptance means the
|
|
8370
|
+
* server owns the input, not that it has been applied. The successor's
|
|
8371
|
+
* `response.created` event is the commit point. If accepted input cannot be
|
|
8372
|
+
* committed, `response.steer.failed` returns it with the same steering ID.
|
|
8373
|
+
*
|
|
8374
|
+
* When the response stops for client-owned tool output or approval, the input
|
|
8375
|
+
* remains queued and `response.steer.pending` is emitted after
|
|
8376
|
+
* `response.completed`. Fill the pending event's `required_input` stubs with saved
|
|
8377
|
+
* results and send one matching explicit `response.create` per parent. Do not
|
|
8378
|
+
* resend accepted input while it is still queued.
|
|
8379
|
+
*/
|
|
8380
|
+
export interface BetaResponseSteerAcceptedEvent {
|
|
8381
|
+
/**
|
|
8382
|
+
* The sequence number for this event.
|
|
8383
|
+
*/
|
|
8384
|
+
sequence_number: number;
|
|
8385
|
+
/**
|
|
8386
|
+
* The accepted steering submission.
|
|
8387
|
+
*/
|
|
8388
|
+
steer: BetaResponseSteerAcceptedEvent.Steer;
|
|
8389
|
+
/**
|
|
8390
|
+
* The event discriminator. Always `response.steer.accepted`.
|
|
8391
|
+
*/
|
|
8392
|
+
type: 'response.steer.accepted';
|
|
8393
|
+
/**
|
|
8394
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8395
|
+
* target response's `response.create` event supplied a `stream_id`.
|
|
8396
|
+
*/
|
|
8397
|
+
stream_id?: string;
|
|
8398
|
+
}
|
|
8399
|
+
export declare namespace BetaResponseSteerAcceptedEvent {
|
|
8400
|
+
/**
|
|
8401
|
+
* The accepted steering submission.
|
|
8402
|
+
*/
|
|
8403
|
+
interface Steer {
|
|
8404
|
+
/**
|
|
8405
|
+
* The ID assigned to the steering submission.
|
|
8406
|
+
*/
|
|
8407
|
+
id: string;
|
|
8408
|
+
/**
|
|
8409
|
+
* The ID of the response being steered.
|
|
8410
|
+
*/
|
|
8411
|
+
previous_response_id: string;
|
|
8412
|
+
}
|
|
8413
|
+
}
|
|
8414
|
+
/**
|
|
8415
|
+
* A machine-readable steering error code. Clients should handle unknown values
|
|
8416
|
+
* because additional codes may be introduced. Known values include:
|
|
8417
|
+
*
|
|
8418
|
+
* - `response_not_found`: The target response is not available on this connection.
|
|
8419
|
+
* - `invalid_input`: The event or input failed validation.
|
|
8420
|
+
* - `steering_not_supported`: The model or response execution mode does not
|
|
8421
|
+
* support steering.
|
|
8422
|
+
* - `too_many_pending_steers`: Too much steering input is pending for the
|
|
8423
|
+
* response.
|
|
8424
|
+
* - `response_already_completed`: The response completed and is no longer
|
|
8425
|
+
* accepting steering input.
|
|
8426
|
+
* - `response_not_active`: The response is no longer accepting steering input.
|
|
8427
|
+
* - `successor_creation_failed`: The successor response could not be created.
|
|
8428
|
+
*/
|
|
8429
|
+
export type BetaResponseSteerErrorCode = 'response_not_found' | 'invalid_input' | 'steering_not_supported' | 'too_many_pending_steers' | 'response_already_completed' | 'response_not_active' | 'successor_creation_failed' | (string & {});
|
|
8430
|
+
/**
|
|
8431
|
+
* Queues user input to steer a response on this WebSocket connection. Input can
|
|
8432
|
+
* contain text, images, and files. Steering is supported only for single-agent
|
|
8433
|
+
* responses on models and execution modes that support steering. Responses bound
|
|
8434
|
+
* to a conversation or using automatic compaction do not support steering.
|
|
8435
|
+
*
|
|
8436
|
+
* A `response.steer.accepted` event acknowledges that the server owns the queued
|
|
8437
|
+
* input, not that it has been applied. The successor's `response.created` event is
|
|
8438
|
+
* the commit point. Input that cannot be committed is returned in
|
|
8439
|
+
* `response.steer.failed`.
|
|
8440
|
+
*
|
|
8441
|
+
* Steering may cause the active response to finish at a safe output boundary with
|
|
8442
|
+
* `response.incomplete` and `incomplete_details.reason` set to `steered`, followed
|
|
8443
|
+
* automatically by a successor `response.created`. Normal completion can also be
|
|
8444
|
+
* followed by an automatic successor. Automatic successors inherit the previous
|
|
8445
|
+
* response's settings and continue from it with the queued input.
|
|
8446
|
+
*
|
|
8447
|
+
* If the response stops for client-owned tool output or approval, accepted
|
|
8448
|
+
* steering input remains queued and `response.steer.pending` is emitted after
|
|
8449
|
+
* `response.completed`. Fill the `required_input` stubs from that event with saved
|
|
8450
|
+
* tool results or approval decisions, and send one explicit `response.create` per
|
|
8451
|
+
* parent with the same `previous_response_id` and WebSocket lane. Do not rerun
|
|
8452
|
+
* tools or resend accepted steering input. The queued input is prepended in
|
|
8453
|
+
* submission order to that request's input, and the explicit request retains its
|
|
8454
|
+
* own settings.
|
|
8455
|
+
*
|
|
8456
|
+
* This event accepts only `type`, `previous_response_id`, and `input`. Do not send
|
|
8457
|
+
* `stream_id`; the target response determines the WebSocket lane.
|
|
8458
|
+
*/
|
|
8459
|
+
export interface BetaResponseSteerEvent {
|
|
8460
|
+
/**
|
|
8461
|
+
* Input to queue for a continuation of the response. Uses the same string or
|
|
8462
|
+
* input-item shape as `response.create.input`, with a non-empty array when
|
|
8463
|
+
* supplying input items.
|
|
8464
|
+
*
|
|
8465
|
+
* Steering accepts only messages with the `user` role. Each message may contain
|
|
8466
|
+
* only `type`, `role`, and `content`, with `content` as a string or an array of
|
|
8467
|
+
* `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
|
|
8468
|
+
* `message`. Other roles, tool outputs, and item types are not supported for
|
|
8469
|
+
* steering.
|
|
8470
|
+
*/
|
|
8471
|
+
input: BetaResponseSteerInput;
|
|
8472
|
+
/**
|
|
8473
|
+
* The ID of the response to steer on this WebSocket connection.
|
|
8474
|
+
*/
|
|
8475
|
+
previous_response_id: string;
|
|
8476
|
+
/**
|
|
8477
|
+
* The event discriminator. Always `response.steer`.
|
|
8478
|
+
*/
|
|
8479
|
+
type: 'response.steer';
|
|
8480
|
+
}
|
|
8481
|
+
/**
|
|
8482
|
+
* Emitted when steering input is rejected or cannot be committed to a successor
|
|
8483
|
+
* response. Returns the original, uncommitted input so the client can carry it
|
|
8484
|
+
* into `response.create` when appropriate. Invalid input must be corrected before
|
|
8485
|
+
* retrying.
|
|
8486
|
+
*
|
|
8487
|
+
* Failures after acceptance include the same steering ID. Failures before an ID is
|
|
8488
|
+
* allocated omit `steer.id`. A lost connection or missing acknowledgement leaves
|
|
8489
|
+
* the outcome unknown; it is not proof that the input was rejected.
|
|
8490
|
+
*/
|
|
8491
|
+
export interface BetaResponseSteerFailedEvent {
|
|
8492
|
+
/**
|
|
8493
|
+
* Information about why the input could not be committed.
|
|
8494
|
+
*/
|
|
8495
|
+
error: BetaResponseSteerFailedEvent.Error;
|
|
8496
|
+
/**
|
|
8497
|
+
* The sequence number for this event.
|
|
8498
|
+
*/
|
|
8499
|
+
sequence_number: number;
|
|
8500
|
+
/**
|
|
8501
|
+
* The steering submission that could not be committed.
|
|
8502
|
+
*/
|
|
8503
|
+
steer: BetaResponseSteerFailedEvent.Steer;
|
|
8504
|
+
/**
|
|
8505
|
+
* The event discriminator. Always `response.steer.failed`.
|
|
8506
|
+
*/
|
|
8507
|
+
type: 'response.steer.failed';
|
|
8508
|
+
/**
|
|
8509
|
+
* The WebSocket lane that emitted this event, when the target response is
|
|
8510
|
+
* available and its `response.create` event supplied a `stream_id`.
|
|
8511
|
+
*/
|
|
8512
|
+
stream_id?: string;
|
|
8513
|
+
}
|
|
8514
|
+
export declare namespace BetaResponseSteerFailedEvent {
|
|
8515
|
+
/**
|
|
8516
|
+
* Information about why the input could not be committed.
|
|
8517
|
+
*/
|
|
8518
|
+
interface Error {
|
|
8519
|
+
/**
|
|
8520
|
+
* A machine-readable steering error code. Clients should handle unknown values
|
|
8521
|
+
* because additional codes may be introduced. Known values include:
|
|
8522
|
+
*
|
|
8523
|
+
* - `response_not_found`: The target response is not available on this connection.
|
|
8524
|
+
* - `invalid_input`: The event or input failed validation.
|
|
8525
|
+
* - `steering_not_supported`: The model or response execution mode does not
|
|
8526
|
+
* support steering.
|
|
8527
|
+
* - `too_many_pending_steers`: Too much steering input is pending for the
|
|
8528
|
+
* response.
|
|
8529
|
+
* - `response_already_completed`: The response completed and is no longer
|
|
8530
|
+
* accepting steering input.
|
|
8531
|
+
* - `response_not_active`: The response is no longer accepting steering input.
|
|
8532
|
+
* - `successor_creation_failed`: The successor response could not be created.
|
|
8533
|
+
*/
|
|
8534
|
+
code: ResponsesAPI.BetaResponseSteerErrorCode;
|
|
8535
|
+
/**
|
|
8536
|
+
* A human-readable description of the error.
|
|
8537
|
+
*/
|
|
8538
|
+
message: string;
|
|
8539
|
+
/**
|
|
8540
|
+
* The error type. Always `invalid_request_error`.
|
|
8541
|
+
*/
|
|
8542
|
+
type: 'invalid_request_error';
|
|
8543
|
+
}
|
|
8544
|
+
/**
|
|
8545
|
+
* The steering submission that could not be committed.
|
|
8546
|
+
*/
|
|
8547
|
+
interface Steer {
|
|
8548
|
+
/**
|
|
8549
|
+
* Input to queue for a continuation of the response. Uses the same string or
|
|
8550
|
+
* input-item shape as `response.create.input`, with a non-empty array when
|
|
8551
|
+
* supplying input items.
|
|
8552
|
+
*
|
|
8553
|
+
* Steering accepts only messages with the `user` role. Each message may contain
|
|
8554
|
+
* only `type`, `role`, and `content`, with `content` as a string or an array of
|
|
8555
|
+
* `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
|
|
8556
|
+
* `message`. Other roles, tool outputs, and item types are not supported for
|
|
8557
|
+
* steering.
|
|
8558
|
+
*/
|
|
8559
|
+
input: ResponsesAPI.BetaResponseSteerInput;
|
|
8560
|
+
/**
|
|
8561
|
+
* The ID of the response that was targeted for steering.
|
|
8562
|
+
*/
|
|
8563
|
+
previous_response_id: string;
|
|
8564
|
+
/**
|
|
8565
|
+
* The ID assigned to the steering submission, if one was allocated.
|
|
8566
|
+
*/
|
|
8567
|
+
id?: string;
|
|
8568
|
+
}
|
|
8569
|
+
}
|
|
8570
|
+
/**
|
|
8571
|
+
* Input to queue for a continuation of the response. Uses the same string or
|
|
8572
|
+
* input-item shape as `response.create.input`, with a non-empty array when
|
|
8573
|
+
* supplying input items.
|
|
8574
|
+
*
|
|
8575
|
+
* Steering accepts only messages with the `user` role. Each message may contain
|
|
8576
|
+
* only `type`, `role`, and `content`, with `content` as a string or an array of
|
|
8577
|
+
* `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
|
|
8578
|
+
* `message`. Other roles, tool outputs, and item types are not supported for
|
|
8579
|
+
* steering.
|
|
8580
|
+
*/
|
|
8581
|
+
export type BetaResponseSteerInput = string | Array<ResponseSteerInputItemList.Message | ResponseSteerInputItemList.FunctionCallOutput>;
|
|
8582
|
+
export declare namespace ResponseSteerInputItemList {
|
|
8583
|
+
interface Message {
|
|
8584
|
+
/**
|
|
8585
|
+
* The message content, as an array of content parts.
|
|
8586
|
+
*/
|
|
8587
|
+
content: Array<ResponsesAPI.BetaResponseSteerInputContent> | string;
|
|
8588
|
+
/**
|
|
8589
|
+
* The message role. Always `user`.
|
|
8590
|
+
*/
|
|
8591
|
+
role: 'user';
|
|
8592
|
+
/**
|
|
8593
|
+
* The item type. Always `message`.
|
|
8594
|
+
*/
|
|
8595
|
+
type: 'message';
|
|
8596
|
+
/**
|
|
8597
|
+
* The unique ID of this message item.
|
|
8598
|
+
*/
|
|
8599
|
+
id?: string | null;
|
|
8600
|
+
/**
|
|
8601
|
+
* The agent that produced this item.
|
|
8602
|
+
*/
|
|
8603
|
+
agent?: Message.Agent | null;
|
|
8604
|
+
/**
|
|
8605
|
+
* The status of the message item.
|
|
8606
|
+
*/
|
|
8607
|
+
status?: string | null;
|
|
8608
|
+
}
|
|
8609
|
+
namespace Message {
|
|
8610
|
+
/**
|
|
8611
|
+
* The agent that produced this item.
|
|
8612
|
+
*/
|
|
8613
|
+
interface Agent {
|
|
8614
|
+
/**
|
|
8615
|
+
* The canonical name of the agent that produced this item.
|
|
8616
|
+
*/
|
|
8617
|
+
agent_name: string;
|
|
8618
|
+
}
|
|
8619
|
+
}
|
|
8620
|
+
/**
|
|
8621
|
+
* The output of a function tool call.
|
|
8622
|
+
*/
|
|
8623
|
+
interface FunctionCallOutput {
|
|
8624
|
+
/**
|
|
8625
|
+
* Text, image, or file output of the function tool call.
|
|
8626
|
+
*/
|
|
8627
|
+
output: string | ResponsesAPI.BetaResponseFunctionCallOutputItemList;
|
|
8628
|
+
/**
|
|
8629
|
+
* The type of the function tool call output. Always `function_call_output`.
|
|
8630
|
+
*/
|
|
8631
|
+
type: 'function_call_output';
|
|
8632
|
+
/**
|
|
8633
|
+
* The unique ID of the function tool call output. Populated when this item is
|
|
8634
|
+
* returned via API.
|
|
8635
|
+
*/
|
|
8636
|
+
id?: string | null;
|
|
8637
|
+
/**
|
|
8638
|
+
* The agent that produced this item.
|
|
8639
|
+
*/
|
|
8640
|
+
agent?: FunctionCallOutput.Agent | null;
|
|
8641
|
+
/**
|
|
8642
|
+
* The unique ID of the function tool call generated by the model.
|
|
8643
|
+
*/
|
|
8644
|
+
call_id?: string | null;
|
|
8645
|
+
/**
|
|
8646
|
+
* The execution context that produced this tool call.
|
|
8647
|
+
*/
|
|
8648
|
+
caller?: FunctionCallOutput.Direct | FunctionCallOutput.Program | null;
|
|
8649
|
+
/**
|
|
8650
|
+
* The name of the tool that produced the output.
|
|
8651
|
+
*/
|
|
8652
|
+
name?: string | null;
|
|
8653
|
+
/**
|
|
8654
|
+
* The namespace of the tool that produced the output.
|
|
8655
|
+
*/
|
|
8656
|
+
namespace?: string | null;
|
|
8657
|
+
/**
|
|
8658
|
+
* The status of the item. One of `in_progress`, `completed`, or `incomplete`.
|
|
8659
|
+
* Populated when items are returned via API.
|
|
8660
|
+
*/
|
|
8661
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
8662
|
+
}
|
|
8663
|
+
namespace FunctionCallOutput {
|
|
8664
|
+
/**
|
|
8665
|
+
* The agent that produced this item.
|
|
8666
|
+
*/
|
|
8667
|
+
interface Agent {
|
|
8668
|
+
/**
|
|
8669
|
+
* The canonical name of the agent that produced this item.
|
|
8670
|
+
*/
|
|
8671
|
+
agent_name: string;
|
|
8672
|
+
}
|
|
8673
|
+
interface Direct {
|
|
8674
|
+
/**
|
|
8675
|
+
* The caller type. Always `direct`.
|
|
8676
|
+
*/
|
|
8677
|
+
type: 'direct';
|
|
8678
|
+
}
|
|
8679
|
+
interface Program {
|
|
8680
|
+
/**
|
|
8681
|
+
* The call ID of the program item that produced this tool call.
|
|
8682
|
+
*/
|
|
8683
|
+
caller_id: string;
|
|
8684
|
+
/**
|
|
8685
|
+
* The caller type. Always `program`.
|
|
8686
|
+
*/
|
|
8687
|
+
type: 'program';
|
|
8688
|
+
}
|
|
8689
|
+
}
|
|
8690
|
+
}
|
|
8691
|
+
/**
|
|
8692
|
+
* A piece of message content, such as text, an image, or a file.
|
|
8693
|
+
*/
|
|
8694
|
+
export type BetaResponseSteerInputContent = BetaResponseInputTextContent | BetaResponseInputImageContent | BetaResponseInputFileContent;
|
|
8695
|
+
/**
|
|
8696
|
+
* Emitted when accepted steering input remains queued after the target response
|
|
8697
|
+
* completes. The server still owns the input. Do not resend it. The successor's
|
|
8698
|
+
* `response.created` event is the commit point.
|
|
8699
|
+
*
|
|
8700
|
+
* When `reason` is `waiting_for_required_input`, this event follows
|
|
8701
|
+
* `response.completed` while the response waits for the tool results or approval
|
|
8702
|
+
* decisions identified by `required_input`. Copy those stubs, fill their result
|
|
8703
|
+
* fields using the ordinary `response.create` input schemas, and submit one
|
|
8704
|
+
* continuation per parent with the same `previous_response_id` and WebSocket lane.
|
|
8705
|
+
* Use saved results without rerunning tools. The queued steering input is
|
|
8706
|
+
* prepended in submission order to the continuation's input. That explicit request
|
|
8707
|
+
* retains its own settings.
|
|
8708
|
+
*
|
|
8709
|
+
* This notification is emitted at most once per steering submission. Multiple
|
|
8710
|
+
* submissions for the same parent can report the same required inputs; they do not
|
|
8711
|
+
* each require a separate continuation.
|
|
8712
|
+
*/
|
|
8713
|
+
export interface BetaResponseSteerPendingEvent {
|
|
8714
|
+
/**
|
|
8715
|
+
* An extensible enum describing why accepted steering input is still queued.
|
|
8716
|
+
* Clients should handle unknown values because additional reasons may be
|
|
8717
|
+
* introduced. Known values include:
|
|
8718
|
+
*
|
|
8719
|
+
* - `waiting_for_required_input`: The response is waiting for the tool results or
|
|
8720
|
+
* approval decisions identified by `required_input`.
|
|
8721
|
+
*/
|
|
8722
|
+
reason: BetaResponseSteerPendingReason;
|
|
8723
|
+
/**
|
|
8724
|
+
* Input stubs identifying outstanding client-owned tool results or approval
|
|
8725
|
+
* decisions. Each stub contains identifying fields only; the client supplies the
|
|
8726
|
+
* result before including it in `response.create`.
|
|
8727
|
+
*/
|
|
8728
|
+
required_input: Array<BetaResponseSteerRequiredInput>;
|
|
8729
|
+
/**
|
|
8730
|
+
* The sequence number for this event.
|
|
8731
|
+
*/
|
|
8732
|
+
sequence_number: number;
|
|
8733
|
+
/**
|
|
8734
|
+
* The steering submission that remains queued.
|
|
8735
|
+
*/
|
|
8736
|
+
steer: BetaResponseSteerPendingEvent.Steer;
|
|
8737
|
+
/**
|
|
8738
|
+
* The event discriminator. Always `response.steer.pending`.
|
|
8739
|
+
*/
|
|
8740
|
+
type: 'response.steer.pending';
|
|
8741
|
+
/**
|
|
8742
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8743
|
+
* target response's `response.create` event supplied a `stream_id`.
|
|
8744
|
+
*/
|
|
8745
|
+
stream_id?: string;
|
|
8746
|
+
}
|
|
8747
|
+
export declare namespace BetaResponseSteerPendingEvent {
|
|
8748
|
+
/**
|
|
8749
|
+
* The steering submission that remains queued.
|
|
8750
|
+
*/
|
|
8751
|
+
interface Steer {
|
|
8752
|
+
/**
|
|
8753
|
+
* The ID assigned to the steering submission.
|
|
8754
|
+
*/
|
|
8755
|
+
id: string;
|
|
8756
|
+
/**
|
|
8757
|
+
* The ID of the response being steered.
|
|
8758
|
+
*/
|
|
8759
|
+
previous_response_id: string;
|
|
8760
|
+
}
|
|
8761
|
+
}
|
|
8762
|
+
/**
|
|
8763
|
+
* An extensible enum describing why accepted steering input is still queued.
|
|
8764
|
+
* Clients should handle unknown values because additional reasons may be
|
|
8765
|
+
* introduced. Known values include:
|
|
8766
|
+
*
|
|
8767
|
+
* - `waiting_for_required_input`: The response is waiting for the tool results or
|
|
8768
|
+
* approval decisions identified by `required_input`.
|
|
8769
|
+
*/
|
|
8770
|
+
export type BetaResponseSteerPendingReason = 'waiting_for_required_input' | (string & {});
|
|
8771
|
+
/**
|
|
8772
|
+
* An input stub identifying an outstanding client-owned tool result or approval
|
|
8773
|
+
* decision. Copy the stub and fill the result fields using the corresponding
|
|
8774
|
+
* `response.create` input schema. Use saved results without rerunning the tool.
|
|
8775
|
+
* The server does not supply results, approval decisions, or safety
|
|
8776
|
+
* acknowledgements in these stubs.
|
|
8777
|
+
*/
|
|
8778
|
+
export type BetaResponseSteerRequiredInput = BetaResponseSteerRequiredInput.FunctionCallOutput | BetaResponseSteerRequiredInput.CustomToolCallOutput | BetaResponseSteerRequiredInput.ComputerCallOutput | BetaResponseSteerRequiredInput.ShellCallOutput | BetaResponseSteerRequiredInput.ApplyPatchCallOutput | BetaResponseSteerRequiredInput.ToolSearchOutput | BetaResponseSteerRequiredInput.McpApprovalResponse;
|
|
8779
|
+
export declare namespace BetaResponseSteerRequiredInput {
|
|
8780
|
+
/**
|
|
8781
|
+
* Supply `output` using the function tool call output input schema.
|
|
8782
|
+
*/
|
|
8783
|
+
interface FunctionCallOutput {
|
|
8784
|
+
call_id: string;
|
|
8785
|
+
name: string;
|
|
8786
|
+
type: 'function_call_output';
|
|
8787
|
+
}
|
|
8788
|
+
/**
|
|
8789
|
+
* Supply `output` using the custom tool call output input schema. The original
|
|
8790
|
+
* custom tool call supplies the tool's name.
|
|
8791
|
+
*/
|
|
8792
|
+
interface CustomToolCallOutput {
|
|
8793
|
+
call_id: string;
|
|
8794
|
+
type: 'custom_tool_call_output';
|
|
8795
|
+
}
|
|
8796
|
+
/**
|
|
8797
|
+
* Supply `output` using the computer tool call output input schema, including any
|
|
8798
|
+
* required `acknowledged_safety_checks`.
|
|
8799
|
+
*/
|
|
8800
|
+
interface ComputerCallOutput {
|
|
8801
|
+
call_id: string;
|
|
8802
|
+
type: 'computer_call_output';
|
|
8803
|
+
}
|
|
8804
|
+
/**
|
|
8805
|
+
* Supply `output` using the shell tool call output input schema. Each output entry
|
|
8806
|
+
* includes `stdout`, `stderr`, and `outcome`.
|
|
8807
|
+
*/
|
|
8808
|
+
interface ShellCallOutput {
|
|
8809
|
+
call_id: string;
|
|
8810
|
+
type: 'shell_call_output';
|
|
8811
|
+
}
|
|
8812
|
+
/**
|
|
8813
|
+
* Supply `status` and optional `output` using the apply patch tool call output
|
|
8814
|
+
* input schema.
|
|
8815
|
+
*/
|
|
8816
|
+
interface ApplyPatchCallOutput {
|
|
8817
|
+
call_id: string;
|
|
8818
|
+
type: 'apply_patch_call_output';
|
|
8819
|
+
}
|
|
8820
|
+
/**
|
|
8821
|
+
* Supply `tools` using the tool search output input schema, retaining
|
|
8822
|
+
* `execution: "client"`.
|
|
8823
|
+
*/
|
|
8824
|
+
interface ToolSearchOutput {
|
|
8825
|
+
call_id: string;
|
|
8826
|
+
execution: 'client';
|
|
8827
|
+
type: 'tool_search_output';
|
|
8828
|
+
}
|
|
8829
|
+
/**
|
|
8830
|
+
* Supply `approve` using the MCP approval response input schema. An optional
|
|
8831
|
+
* `reason` can be supplied when denying the request. The original approval request
|
|
8832
|
+
* identifies the tool and server.
|
|
8833
|
+
*/
|
|
8834
|
+
interface McpApprovalResponse {
|
|
8835
|
+
approval_request_id: string;
|
|
8836
|
+
type: 'mcp_approval_response';
|
|
8837
|
+
}
|
|
8838
|
+
}
|
|
8228
8839
|
/**
|
|
8229
8840
|
* Event emitted while a response is streamed.
|
|
8230
8841
|
*/
|
|
@@ -8712,7 +9323,7 @@ export declare namespace BetaResponseWebSearchCallSearchingEvent {
|
|
|
8712
9323
|
/**
|
|
8713
9324
|
* Client events accepted by the Responses WebSocket server.
|
|
8714
9325
|
*/
|
|
8715
|
-
export type BetaResponsesClientEvent = BetaResponsesClientEvent.ResponseCreate | BetaResponseInjectEvent;
|
|
9326
|
+
export type BetaResponsesClientEvent = BetaResponsesClientEvent.ResponseCreate | BetaResponseSteerEvent | BetaResponseInjectEvent;
|
|
8716
9327
|
export declare namespace BetaResponsesClientEvent {
|
|
8717
9328
|
/**
|
|
8718
9329
|
* Client event for creating a response over a persistent WebSocket connection.
|
|
@@ -8812,13 +9423,13 @@ export declare namespace BetaResponsesClientEvent {
|
|
|
8812
9423
|
[key: string]: string;
|
|
8813
9424
|
} | null;
|
|
8814
9425
|
/**
|
|
8815
|
-
* Model ID used to generate the response, like `gpt-
|
|
9426
|
+
* Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
|
|
8816
9427
|
* range of models with different capabilities, performance characteristics, and
|
|
8817
9428
|
* price points. Refer to the
|
|
8818
9429
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
8819
9430
|
* available models.
|
|
8820
9431
|
*/
|
|
8821
|
-
model?: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
|
|
9432
|
+
model?: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
|
|
8822
9433
|
/**
|
|
8823
9434
|
* Configuration for running moderation on the input and output of this response.
|
|
8824
9435
|
*/
|
|
@@ -9196,7 +9807,7 @@ export declare namespace BetaResponsesClientEvent {
|
|
|
9196
9807
|
/**
|
|
9197
9808
|
* Server events emitted by the Responses WebSocket server.
|
|
9198
9809
|
*/
|
|
9199
|
-
export type BetaResponsesServerEvent = BetaResponsesServerEvent.BetaResponseAudioWsDelta | BetaResponsesServerEvent.BetaResponseAudioWsDone | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDelta | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDelta | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsCompleted | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallInWsProgress | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsInterpreting | BetaResponsesServerEvent.BetaResponseWsCompleted | BetaResponsesServerEvent.BetaResponseContentPartWsAdded | BetaResponsesServerEvent.BetaResponseContentPartWsDone | BetaResponsesServerEvent.BetaResponseWsCreated | BetaResponsesServerEvent.BetaResponseFileSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseFileSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseFileSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseShellCallCommandWsAdded | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDelta | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDone | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDelta | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDone | BetaResponsesServerEvent.BetaResponseInWsProgress | BetaResponsesServerEvent.BetaResponseWsFailed | BetaResponsesServerEvent.BetaResponseWsIncomplete | BetaResponsesServerEvent.BetaResponseOutputItemWsAdded | BetaResponsesServerEvent.BetaResponseOutputItemWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsAdded | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDone | BetaResponsesServerEvent.BetaResponseReasoningTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningTextWsDone | BetaResponsesServerEvent.BetaResponseRefusalWsDelta | BetaResponsesServerEvent.BetaResponseRefusalWsDone | BetaResponsesServerEvent.BetaResponseTextWsDelta | BetaResponsesServerEvent.BetaResponseTextWsDone | BetaResponsesServerEvent.BetaResponseWebSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseWebSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseWebSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseImageGenCallWsCompleted | BetaResponsesServerEvent.BetaResponseImageGenCallWsGenerating | BetaResponsesServerEvent.BetaResponseImageGenCallInWsProgress | BetaResponsesServerEvent.BetaResponseImageGenCallPartialWsImage | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseMcpCallWsCompleted | BetaResponsesServerEvent.BetaResponseMcpCallWsFailed | BetaResponsesServerEvent.BetaResponseMcpCallInWsProgress | BetaResponsesServerEvent.BetaResponseMcpListToolsWsCompleted | BetaResponsesServerEvent.BetaResponseMcpListToolsWsFailed | BetaResponsesServerEvent.BetaResponseMcpListToolsInWsProgress | BetaResponsesServerEvent.BetaResponseOutputTextAnnotationWsAdded | BetaResponsesServerEvent.BetaResponseWsQueued | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDelta | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDone | BetaResponsesServerEvent.BetaResponseWsStreamingError | BetaResponsesServerEvent.BetaResponseWsError | BetaResponseInjectCreatedEvent | BetaResponseInjectFailedEvent;
|
|
9810
|
+
export type BetaResponsesServerEvent = BetaResponsesServerEvent.BetaResponseAudioWsDelta | BetaResponsesServerEvent.BetaResponseAudioWsDone | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDelta | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDelta | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsCompleted | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallInWsProgress | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsInterpreting | BetaResponsesServerEvent.BetaResponseWsCompleted | BetaResponsesServerEvent.BetaResponseContentPartWsAdded | BetaResponsesServerEvent.BetaResponseContentPartWsDone | BetaResponsesServerEvent.BetaResponseWsCreated | BetaResponsesServerEvent.BetaResponseFileSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseFileSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseFileSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseShellCallCommandWsAdded | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDelta | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDone | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDelta | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDone | BetaResponsesServerEvent.BetaResponseInWsProgress | BetaResponsesServerEvent.BetaResponseWsFailed | BetaResponsesServerEvent.BetaResponseWsIncomplete | BetaResponsesServerEvent.BetaResponseOutputItemWsAdded | BetaResponsesServerEvent.BetaResponseOutputItemWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsAdded | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDone | BetaResponsesServerEvent.BetaResponseReasoningTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningTextWsDone | BetaResponsesServerEvent.BetaResponseRefusalWsDelta | BetaResponsesServerEvent.BetaResponseRefusalWsDone | BetaResponsesServerEvent.BetaResponseTextWsDelta | BetaResponsesServerEvent.BetaResponseTextWsDone | BetaResponsesServerEvent.BetaResponseWebSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseWebSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseWebSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseImageGenCallWsCompleted | BetaResponsesServerEvent.BetaResponseImageGenCallWsGenerating | BetaResponsesServerEvent.BetaResponseImageGenCallInWsProgress | BetaResponsesServerEvent.BetaResponseImageGenCallPartialWsImage | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseMcpCallWsCompleted | BetaResponsesServerEvent.BetaResponseMcpCallWsFailed | BetaResponsesServerEvent.BetaResponseMcpCallInWsProgress | BetaResponsesServerEvent.BetaResponseMcpListToolsWsCompleted | BetaResponsesServerEvent.BetaResponseMcpListToolsWsFailed | BetaResponsesServerEvent.BetaResponseMcpListToolsInWsProgress | BetaResponsesServerEvent.BetaResponseOutputTextAnnotationWsAdded | BetaResponsesServerEvent.BetaResponseWsQueued | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDelta | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDone | BetaResponsesServerEvent.BetaResponseWsStreamingError | BetaResponsesServerEvent.BetaResponseWsError | BetaResponseSteerAcceptedEvent | BetaResponseSteerPendingEvent | BetaResponseSteerFailedEvent | BetaResponseInjectCreatedEvent | BetaResponseInjectFailedEvent;
|
|
9200
9811
|
export declare namespace BetaResponsesServerEvent {
|
|
9201
9812
|
/**
|
|
9202
9813
|
* Emitted when there is a partial audio response.
|
|
@@ -9450,6 +10061,10 @@ export declare namespace BetaResponsesServerEvent {
|
|
|
9450
10061
|
}
|
|
9451
10062
|
/**
|
|
9452
10063
|
* An event that is emitted when a response finishes as incomplete.
|
|
10064
|
+
*
|
|
10065
|
+
* Over WebSocket, steering can finish a response with
|
|
10066
|
+
* `response.incomplete_details.reason` set to `steered`, followed automatically by
|
|
10067
|
+
* a successor `response.created` that commits the queued steering input.
|
|
9453
10068
|
*/
|
|
9454
10069
|
interface BetaResponseWsIncomplete extends BetaResponseIncompleteEvent {
|
|
9455
10070
|
/**
|
|
@@ -9839,6 +10454,34 @@ export declare namespace BetaResponsesServerEvent {
|
|
|
9839
10454
|
headers?: {
|
|
9840
10455
|
[key: string]: string;
|
|
9841
10456
|
};
|
|
10457
|
+
misalignment?: Error.Misalignment;
|
|
10458
|
+
}
|
|
10459
|
+
namespace Error {
|
|
10460
|
+
interface Misalignment {
|
|
10461
|
+
/**
|
|
10462
|
+
* The public explanation for this block.
|
|
10463
|
+
*/
|
|
10464
|
+
detailed_explanation?: string;
|
|
10465
|
+
/**
|
|
10466
|
+
* An optional classification; clients must accept additional values.
|
|
10467
|
+
*/
|
|
10468
|
+
error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
|
|
10469
|
+
/**
|
|
10470
|
+
* An optional public continuation instruction.
|
|
10471
|
+
*/
|
|
10472
|
+
steer?: Misalignment.Steer;
|
|
10473
|
+
}
|
|
10474
|
+
namespace Misalignment {
|
|
10475
|
+
/**
|
|
10476
|
+
* An optional public continuation instruction.
|
|
10477
|
+
*/
|
|
10478
|
+
interface Steer {
|
|
10479
|
+
/**
|
|
10480
|
+
* The public continuation instruction.
|
|
10481
|
+
*/
|
|
10482
|
+
message: string;
|
|
10483
|
+
}
|
|
10484
|
+
}
|
|
9842
10485
|
}
|
|
9843
10486
|
/**
|
|
9844
10487
|
* The agent that owns this multi-agent streaming event.
|
|
@@ -10547,13 +11190,13 @@ export interface ResponseCreateParamsBase {
|
|
|
10547
11190
|
[key: string]: string;
|
|
10548
11191
|
} | null;
|
|
10549
11192
|
/**
|
|
10550
|
-
* Body param: Model ID used to generate the response, like `gpt-
|
|
11193
|
+
* Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
10551
11194
|
* offers a wide range of models with different capabilities, performance
|
|
10552
11195
|
* characteristics, and price points. Refer to the
|
|
10553
11196
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10554
11197
|
* available models.
|
|
10555
11198
|
*/
|
|
10556
|
-
model?: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
|
|
11199
|
+
model?: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
|
|
10557
11200
|
/**
|
|
10558
11201
|
* Body param: Configuration for running moderation on the input and output of this
|
|
10559
11202
|
* response.
|
|
@@ -11028,13 +11671,13 @@ export interface ResponseCancelParams {
|
|
|
11028
11671
|
}
|
|
11029
11672
|
export interface ResponseCompactParams {
|
|
11030
11673
|
/**
|
|
11031
|
-
* Body param: Model ID used to generate the response, like `gpt-
|
|
11674
|
+
* Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
11032
11675
|
* offers a wide range of models with different capabilities, performance
|
|
11033
11676
|
* characteristics, and price points. Refer to the
|
|
11034
11677
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
11035
11678
|
* available models.
|
|
11036
11679
|
*/
|
|
11037
|
-
model: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {}) | null;
|
|
11680
|
+
model: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {}) | null;
|
|
11038
11681
|
/**
|
|
11039
11682
|
* Body param: Text, image, or file inputs to the model, used to generate a
|
|
11040
11683
|
* response
|
|
@@ -11130,7 +11773,7 @@ export declare namespace ResponseCompactParams {
|
|
|
11130
11773
|
}
|
|
11131
11774
|
}
|
|
11132
11775
|
export declare namespace Responses {
|
|
11133
|
-
export { type BetaApplyPatchTool as BetaApplyPatchTool, type BetaCompactedResponse as BetaCompactedResponse, type BetaComputerAction as BetaComputerAction, type BetaComputerActionList as BetaComputerActionList, type BetaComputerTool as BetaComputerTool, type BetaComputerUsePreviewTool as BetaComputerUsePreviewTool, type BetaContainerAuto as BetaContainerAuto, type BetaContainerNetworkPolicyAllowlist as BetaContainerNetworkPolicyAllowlist, type BetaContainerNetworkPolicyDisabled as BetaContainerNetworkPolicyDisabled, type BetaContainerNetworkPolicyDomainSecret as BetaContainerNetworkPolicyDomainSecret, type BetaContainerReference as BetaContainerReference, type BetaCustomTool as BetaCustomTool, type BetaEasyInputMessage as BetaEasyInputMessage, type BetaFileSearchTool as BetaFileSearchTool, type BetaFunctionShellTool as BetaFunctionShellTool, type BetaFunctionTool as BetaFunctionTool, type BetaImageDetail as BetaImageDetail, type BetaInlineSkill as BetaInlineSkill, type BetaInlineSkillSource as BetaInlineSkillSource, type BetaLocalEnvironment as BetaLocalEnvironment, type BetaLocalSkill as BetaLocalSkill, type BetaMcpToolCallError as BetaMcpToolCallError, type BetaNamespaceTool as BetaNamespaceTool, type BetaResponse as BetaResponse, type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall, type BetaResponseApplyPatchToolCallOutput as BetaResponseApplyPatchToolCallOutput, type BetaResponseAudioDeltaEvent as BetaResponseAudioDeltaEvent, type BetaResponseAudioDoneEvent as BetaResponseAudioDoneEvent, type BetaResponseAudioTranscriptDeltaEvent as BetaResponseAudioTranscriptDeltaEvent, type BetaResponseAudioTranscriptDoneEvent as BetaResponseAudioTranscriptDoneEvent, type BetaResponseCodeInterpreterCallCodeDeltaEvent as BetaResponseCodeInterpreterCallCodeDeltaEvent, type BetaResponseCodeInterpreterCallCodeDoneEvent as BetaResponseCodeInterpreterCallCodeDoneEvent, type BetaResponseCodeInterpreterCallCompletedEvent as BetaResponseCodeInterpreterCallCompletedEvent, type BetaResponseCodeInterpreterCallInProgressEvent as BetaResponseCodeInterpreterCallInProgressEvent, type BetaResponseCodeInterpreterCallInterpretingEvent as BetaResponseCodeInterpreterCallInterpretingEvent, type BetaResponseCodeInterpreterToolCall as BetaResponseCodeInterpreterToolCall, type BetaResponseCompactionItem as BetaResponseCompactionItem, type BetaResponseCompactionItemParam as BetaResponseCompactionItemParam, type BetaResponseCompletedEvent as BetaResponseCompletedEvent, type BetaResponseComputerToolCall as BetaResponseComputerToolCall, type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem, type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot, type BetaResponseContainerReference as BetaResponseContainerReference, type BetaResponseContent as BetaResponseContent, type BetaResponseContentPartAddedEvent as BetaResponseContentPartAddedEvent, type BetaResponseContentPartDoneEvent as BetaResponseContentPartDoneEvent, type BetaResponseConversationParam as BetaResponseConversationParam, type BetaResponseCreatedEvent as BetaResponseCreatedEvent, type BetaResponseCustomToolCall as BetaResponseCustomToolCall, type BetaResponseCustomToolCallInputDeltaEvent as BetaResponseCustomToolCallInputDeltaEvent, type BetaResponseCustomToolCallInputDoneEvent as BetaResponseCustomToolCallInputDoneEvent, type BetaResponseCustomToolCallItem as BetaResponseCustomToolCallItem, type BetaResponseCustomToolCallOutput as BetaResponseCustomToolCallOutput, type BetaResponseCustomToolCallOutputItem as BetaResponseCustomToolCallOutputItem, type BetaResponseError as BetaResponseError, type BetaResponseErrorEvent as BetaResponseErrorEvent, type BetaResponseFailedEvent as BetaResponseFailedEvent, type BetaResponseFileSearchCallCompletedEvent as BetaResponseFileSearchCallCompletedEvent, type BetaResponseFileSearchCallInProgressEvent as BetaResponseFileSearchCallInProgressEvent, type BetaResponseFileSearchCallSearchingEvent as BetaResponseFileSearchCallSearchingEvent, type BetaResponseFileSearchToolCall as BetaResponseFileSearchToolCall, type BetaResponseFormatTextConfig as BetaResponseFormatTextConfig, type BetaResponseFormatTextJSONSchemaConfig as BetaResponseFormatTextJSONSchemaConfig, type BetaResponseFunctionCallArgumentsDeltaEvent as BetaResponseFunctionCallArgumentsDeltaEvent, type BetaResponseFunctionCallArgumentsDoneEvent as BetaResponseFunctionCallArgumentsDoneEvent, type BetaResponseFunctionCallOutputItem as BetaResponseFunctionCallOutputItem, type BetaResponseFunctionCallOutputItemList as BetaResponseFunctionCallOutputItemList, type BetaResponseFunctionShellCallOutputContent as BetaResponseFunctionShellCallOutputContent, type BetaResponseFunctionShellToolCall as BetaResponseFunctionShellToolCall, type BetaResponseFunctionShellToolCallOutput as BetaResponseFunctionShellToolCallOutput, type BetaResponseFunctionToolCall as BetaResponseFunctionToolCall, type BetaResponseFunctionToolCallItem as BetaResponseFunctionToolCallItem, type BetaResponseFunctionToolCallOutputItem as BetaResponseFunctionToolCallOutputItem, type BetaResponseFunctionWebSearch as BetaResponseFunctionWebSearch, type BetaResponseImageGenCallCompletedEvent as BetaResponseImageGenCallCompletedEvent, type BetaResponseImageGenCallGeneratingEvent as BetaResponseImageGenCallGeneratingEvent, type BetaResponseImageGenCallInProgressEvent as BetaResponseImageGenCallInProgressEvent, type BetaResponseImageGenCallPartialImageEvent as BetaResponseImageGenCallPartialImageEvent, type BetaResponseInProgressEvent as BetaResponseInProgressEvent, type BetaResponseIncludable as BetaResponseIncludable, type BetaResponseIncompleteEvent as BetaResponseIncompleteEvent, type BetaResponseInjectCreatedEvent as BetaResponseInjectCreatedEvent, type BetaResponseInjectEvent as BetaResponseInjectEvent, type BetaResponseInjectFailedEvent as BetaResponseInjectFailedEvent, type BetaResponseInput as BetaResponseInput, type BetaResponseInputAudio as BetaResponseInputAudio, type BetaResponseInputContent as BetaResponseInputContent, type BetaResponseInputFile as BetaResponseInputFile, type BetaResponseInputFileContent as BetaResponseInputFileContent, type BetaResponseInputImage as BetaResponseInputImage, type BetaResponseInputImageContent as BetaResponseInputImageContent, type BetaResponseInputItem as BetaResponseInputItem, type BetaResponseInputMessageContentList as BetaResponseInputMessageContentList, type BetaResponseInputMessageItem as BetaResponseInputMessageItem, type BetaResponseInputText as BetaResponseInputText, type BetaResponseInputTextContent as BetaResponseInputTextContent, type BetaResponseItem as BetaResponseItem, type BetaResponseLocalEnvironment as BetaResponseLocalEnvironment, type BetaResponseMcpCallArgumentsDeltaEvent as BetaResponseMcpCallArgumentsDeltaEvent, type BetaResponseMcpCallArgumentsDoneEvent as BetaResponseMcpCallArgumentsDoneEvent, type BetaResponseMcpCallCompletedEvent as BetaResponseMcpCallCompletedEvent, type BetaResponseMcpCallFailedEvent as BetaResponseMcpCallFailedEvent, type BetaResponseMcpCallInProgressEvent as BetaResponseMcpCallInProgressEvent, type BetaResponseMcpListToolsCompletedEvent as BetaResponseMcpListToolsCompletedEvent, type BetaResponseMcpListToolsFailedEvent as BetaResponseMcpListToolsFailedEvent, type BetaResponseMcpListToolsInProgressEvent as BetaResponseMcpListToolsInProgressEvent, type BetaResponseOutputAudio as BetaResponseOutputAudio, type BetaResponseOutputItem as BetaResponseOutputItem, type BetaResponseOutputItemAddedEvent as BetaResponseOutputItemAddedEvent, type BetaResponseOutputItemDoneEvent as BetaResponseOutputItemDoneEvent, type BetaResponseOutputMessage as BetaResponseOutputMessage, type BetaResponseOutputRefusal as BetaResponseOutputRefusal, type BetaResponseOutputText as BetaResponseOutputText, type BetaResponseOutputTextAnnotationAddedEvent as BetaResponseOutputTextAnnotationAddedEvent, type BetaResponsePrompt as BetaResponsePrompt, type BetaResponseQueuedEvent as BetaResponseQueuedEvent, type BetaResponseReasoningItem as BetaResponseReasoningItem, type BetaResponseReasoningSummaryPartAddedEvent as BetaResponseReasoningSummaryPartAddedEvent, type BetaResponseReasoningSummaryPartDoneEvent as BetaResponseReasoningSummaryPartDoneEvent, type BetaResponseReasoningSummaryTextDeltaEvent as BetaResponseReasoningSummaryTextDeltaEvent, type BetaResponseReasoningSummaryTextDoneEvent as BetaResponseReasoningSummaryTextDoneEvent, type BetaResponseReasoningTextDeltaEvent as BetaResponseReasoningTextDeltaEvent, type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent, type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent, type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent, type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent, type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent, type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent, type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent, type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent, type BetaResponseStatus as BetaResponseStatus, type BetaResponseStreamEvent as BetaResponseStreamEvent, type BetaResponseTextConfig as BetaResponseTextConfig, type BetaResponseTextDeltaEvent as BetaResponseTextDeltaEvent, type BetaResponseTextDoneEvent as BetaResponseTextDoneEvent, type BetaResponseToolSearchCall as BetaResponseToolSearchCall, type BetaResponseToolSearchOutputItem as BetaResponseToolSearchOutputItem, type BetaResponseToolSearchOutputItemParam as BetaResponseToolSearchOutputItemParam, type BetaResponseUsage as BetaResponseUsage, type BetaResponseWebSearchCallCompletedEvent as BetaResponseWebSearchCallCompletedEvent, type BetaResponseWebSearchCallInProgressEvent as BetaResponseWebSearchCallInProgressEvent, type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent, type BetaResponsesClientEvent as BetaResponsesClientEvent, type BetaResponsesServerEvent as BetaResponsesServerEvent, type BetaServiceTier as BetaServiceTier, type BetaSkillReference as BetaSkillReference, type BetaTool as BetaTool, type BetaToolChoiceAllowed as BetaToolChoiceAllowed, type BetaToolChoiceApplyPatch as BetaToolChoiceApplyPatch, type BetaToolChoiceCustom as BetaToolChoiceCustom, type BetaToolChoiceFunction as BetaToolChoiceFunction, type BetaToolChoiceMcp as BetaToolChoiceMcp, type BetaToolChoiceOptions as BetaToolChoiceOptions, type BetaToolChoiceShell as BetaToolChoiceShell, type BetaToolChoiceTypes as BetaToolChoiceTypes, type BetaToolSearchTool as BetaToolSearchTool, type BetaWebSearchPreviewTool as BetaWebSearchPreviewTool, type BetaWebSearchTool as BetaWebSearchTool, 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 ResponseDeleteParams as ResponseDeleteParams, type ResponseCancelParams as ResponseCancelParams, type ResponseCompactParams as ResponseCompactParams, };
|
|
11776
|
+
export { type BetaApplyPatchTool as BetaApplyPatchTool, type BetaCompactedResponse as BetaCompactedResponse, type BetaComputerAction as BetaComputerAction, type BetaComputerActionList as BetaComputerActionList, type BetaComputerTool as BetaComputerTool, type BetaComputerUsePreviewTool as BetaComputerUsePreviewTool, type BetaContainerAuto as BetaContainerAuto, type BetaContainerNetworkPolicyAllowlist as BetaContainerNetworkPolicyAllowlist, type BetaContainerNetworkPolicyDisabled as BetaContainerNetworkPolicyDisabled, type BetaContainerNetworkPolicyDomainSecret as BetaContainerNetworkPolicyDomainSecret, type BetaContainerReference as BetaContainerReference, type BetaCustomTool as BetaCustomTool, type BetaEasyInputMessage as BetaEasyInputMessage, type BetaFileSearchTool as BetaFileSearchTool, type BetaFunctionShellTool as BetaFunctionShellTool, type BetaFunctionTool as BetaFunctionTool, type BetaImageDetail as BetaImageDetail, type BetaInlineSkill as BetaInlineSkill, type BetaInlineSkillSource as BetaInlineSkillSource, type BetaLocalEnvironment as BetaLocalEnvironment, type BetaLocalSkill as BetaLocalSkill, type BetaMcpToolCallError as BetaMcpToolCallError, type BetaNamespaceTool as BetaNamespaceTool, type BetaResponse as BetaResponse, type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall, type BetaResponseApplyPatchToolCallOutput as BetaResponseApplyPatchToolCallOutput, type BetaResponseAudioDeltaEvent as BetaResponseAudioDeltaEvent, type BetaResponseAudioDoneEvent as BetaResponseAudioDoneEvent, type BetaResponseAudioTranscriptDeltaEvent as BetaResponseAudioTranscriptDeltaEvent, type BetaResponseAudioTranscriptDoneEvent as BetaResponseAudioTranscriptDoneEvent, type BetaResponseCodeInterpreterCallCodeDeltaEvent as BetaResponseCodeInterpreterCallCodeDeltaEvent, type BetaResponseCodeInterpreterCallCodeDoneEvent as BetaResponseCodeInterpreterCallCodeDoneEvent, type BetaResponseCodeInterpreterCallCompletedEvent as BetaResponseCodeInterpreterCallCompletedEvent, type BetaResponseCodeInterpreterCallInProgressEvent as BetaResponseCodeInterpreterCallInProgressEvent, type BetaResponseCodeInterpreterCallInterpretingEvent as BetaResponseCodeInterpreterCallInterpretingEvent, type BetaResponseCodeInterpreterToolCall as BetaResponseCodeInterpreterToolCall, type BetaResponseCompactionItem as BetaResponseCompactionItem, type BetaResponseCompactionItemParam as BetaResponseCompactionItemParam, type BetaResponseCompletedEvent as BetaResponseCompletedEvent, type BetaResponseComputerToolCall as BetaResponseComputerToolCall, type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem, type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot, type BetaResponseConfigurationUpdateItem as BetaResponseConfigurationUpdateItem, type BetaResponseConfigurationUpdateItemParam as BetaResponseConfigurationUpdateItemParam, type BetaResponseContainerReference as BetaResponseContainerReference, type BetaResponseContent as BetaResponseContent, type BetaResponseContentPartAddedEvent as BetaResponseContentPartAddedEvent, type BetaResponseContentPartDoneEvent as BetaResponseContentPartDoneEvent, type BetaResponseConversationParam as BetaResponseConversationParam, type BetaResponseCreatedEvent as BetaResponseCreatedEvent, type BetaResponseCustomToolCall as BetaResponseCustomToolCall, type BetaResponseCustomToolCallInputDeltaEvent as BetaResponseCustomToolCallInputDeltaEvent, type BetaResponseCustomToolCallInputDoneEvent as BetaResponseCustomToolCallInputDoneEvent, type BetaResponseCustomToolCallItem as BetaResponseCustomToolCallItem, type BetaResponseCustomToolCallOutput as BetaResponseCustomToolCallOutput, type BetaResponseCustomToolCallOutputItem as BetaResponseCustomToolCallOutputItem, type BetaResponseError as BetaResponseError, type BetaResponseErrorEvent as BetaResponseErrorEvent, type BetaResponseFailedEvent as BetaResponseFailedEvent, type BetaResponseFileSearchCallCompletedEvent as BetaResponseFileSearchCallCompletedEvent, type BetaResponseFileSearchCallInProgressEvent as BetaResponseFileSearchCallInProgressEvent, type BetaResponseFileSearchCallSearchingEvent as BetaResponseFileSearchCallSearchingEvent, type BetaResponseFileSearchToolCall as BetaResponseFileSearchToolCall, type BetaResponseFormatTextConfig as BetaResponseFormatTextConfig, type BetaResponseFormatTextJSONSchemaConfig as BetaResponseFormatTextJSONSchemaConfig, type BetaResponseFunctionCallArgumentsDeltaEvent as BetaResponseFunctionCallArgumentsDeltaEvent, type BetaResponseFunctionCallArgumentsDoneEvent as BetaResponseFunctionCallArgumentsDoneEvent, type BetaResponseFunctionCallOutputItem as BetaResponseFunctionCallOutputItem, type BetaResponseFunctionCallOutputItemList as BetaResponseFunctionCallOutputItemList, type BetaResponseFunctionShellCallOutputContent as BetaResponseFunctionShellCallOutputContent, type BetaResponseFunctionShellToolCall as BetaResponseFunctionShellToolCall, type BetaResponseFunctionShellToolCallOutput as BetaResponseFunctionShellToolCallOutput, type BetaResponseFunctionToolCall as BetaResponseFunctionToolCall, type BetaResponseFunctionToolCallItem as BetaResponseFunctionToolCallItem, type BetaResponseFunctionToolCallOutputItem as BetaResponseFunctionToolCallOutputItem, type BetaResponseFunctionWebSearch as BetaResponseFunctionWebSearch, type BetaResponseImageGenCallCompletedEvent as BetaResponseImageGenCallCompletedEvent, type BetaResponseImageGenCallGeneratingEvent as BetaResponseImageGenCallGeneratingEvent, type BetaResponseImageGenCallInProgressEvent as BetaResponseImageGenCallInProgressEvent, type BetaResponseImageGenCallPartialImageEvent as BetaResponseImageGenCallPartialImageEvent, type BetaResponseInProgressEvent as BetaResponseInProgressEvent, type BetaResponseIncludable as BetaResponseIncludable, type BetaResponseIncompleteEvent as BetaResponseIncompleteEvent, type BetaResponseInjectCreatedEvent as BetaResponseInjectCreatedEvent, type BetaResponseInjectEvent as BetaResponseInjectEvent, type BetaResponseInjectFailedEvent as BetaResponseInjectFailedEvent, type BetaResponseInput as BetaResponseInput, type BetaResponseInputAudio as BetaResponseInputAudio, type BetaResponseInputContent as BetaResponseInputContent, type BetaResponseInputFile as BetaResponseInputFile, type BetaResponseInputFileContent as BetaResponseInputFileContent, type BetaResponseInputImage as BetaResponseInputImage, type BetaResponseInputImageContent as BetaResponseInputImageContent, type BetaResponseInputItem as BetaResponseInputItem, type BetaResponseInputMessageContentList as BetaResponseInputMessageContentList, type BetaResponseInputMessageItem as BetaResponseInputMessageItem, type BetaResponseInputText as BetaResponseInputText, type BetaResponseInputTextContent as BetaResponseInputTextContent, type BetaResponseItem as BetaResponseItem, type BetaResponseLocalEnvironment as BetaResponseLocalEnvironment, type BetaResponseMcpCallArgumentsDeltaEvent as BetaResponseMcpCallArgumentsDeltaEvent, type BetaResponseMcpCallArgumentsDoneEvent as BetaResponseMcpCallArgumentsDoneEvent, type BetaResponseMcpCallCompletedEvent as BetaResponseMcpCallCompletedEvent, type BetaResponseMcpCallFailedEvent as BetaResponseMcpCallFailedEvent, type BetaResponseMcpCallInProgressEvent as BetaResponseMcpCallInProgressEvent, type BetaResponseMcpListToolsCompletedEvent as BetaResponseMcpListToolsCompletedEvent, type BetaResponseMcpListToolsFailedEvent as BetaResponseMcpListToolsFailedEvent, type BetaResponseMcpListToolsInProgressEvent as BetaResponseMcpListToolsInProgressEvent, type BetaResponseOutputAudio as BetaResponseOutputAudio, type BetaResponseOutputItem as BetaResponseOutputItem, type BetaResponseOutputItemAddedEvent as BetaResponseOutputItemAddedEvent, type BetaResponseOutputItemDoneEvent as BetaResponseOutputItemDoneEvent, type BetaResponseOutputMessage as BetaResponseOutputMessage, type BetaResponseOutputRefusal as BetaResponseOutputRefusal, type BetaResponseOutputText as BetaResponseOutputText, type BetaResponseOutputTextAnnotationAddedEvent as BetaResponseOutputTextAnnotationAddedEvent, type BetaResponsePrompt as BetaResponsePrompt, type BetaResponseQueuedEvent as BetaResponseQueuedEvent, type BetaResponseReasoningItem as BetaResponseReasoningItem, type BetaResponseReasoningSummaryPartAddedEvent as BetaResponseReasoningSummaryPartAddedEvent, type BetaResponseReasoningSummaryPartDoneEvent as BetaResponseReasoningSummaryPartDoneEvent, type BetaResponseReasoningSummaryTextDeltaEvent as BetaResponseReasoningSummaryTextDeltaEvent, type BetaResponseReasoningSummaryTextDoneEvent as BetaResponseReasoningSummaryTextDoneEvent, type BetaResponseReasoningTextDeltaEvent as BetaResponseReasoningTextDeltaEvent, type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent, type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent, type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent, type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent, type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent, type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent, type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent, type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent, type BetaResponseStatus as BetaResponseStatus, type BetaResponseSteerAcceptedEvent as BetaResponseSteerAcceptedEvent, type BetaResponseSteerErrorCode as BetaResponseSteerErrorCode, type BetaResponseSteerEvent as BetaResponseSteerEvent, type BetaResponseSteerFailedEvent as BetaResponseSteerFailedEvent, type BetaResponseSteerInput as BetaResponseSteerInput, type BetaResponseSteerInputContent as BetaResponseSteerInputContent, type BetaResponseSteerPendingEvent as BetaResponseSteerPendingEvent, type BetaResponseSteerPendingReason as BetaResponseSteerPendingReason, type BetaResponseSteerRequiredInput as BetaResponseSteerRequiredInput, type BetaResponseStreamEvent as BetaResponseStreamEvent, type BetaResponseTextConfig as BetaResponseTextConfig, type BetaResponseTextDeltaEvent as BetaResponseTextDeltaEvent, type BetaResponseTextDoneEvent as BetaResponseTextDoneEvent, type BetaResponseToolSearchCall as BetaResponseToolSearchCall, type BetaResponseToolSearchOutputItem as BetaResponseToolSearchOutputItem, type BetaResponseToolSearchOutputItemParam as BetaResponseToolSearchOutputItemParam, type BetaResponseUsage as BetaResponseUsage, type BetaResponseWebSearchCallCompletedEvent as BetaResponseWebSearchCallCompletedEvent, type BetaResponseWebSearchCallInProgressEvent as BetaResponseWebSearchCallInProgressEvent, type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent, type BetaResponsesClientEvent as BetaResponsesClientEvent, type BetaResponsesServerEvent as BetaResponsesServerEvent, type BetaServiceTier as BetaServiceTier, type BetaSkillReference as BetaSkillReference, type BetaTool as BetaTool, type BetaToolChoiceAllowed as BetaToolChoiceAllowed, type BetaToolChoiceApplyPatch as BetaToolChoiceApplyPatch, type BetaToolChoiceCustom as BetaToolChoiceCustom, type BetaToolChoiceFunction as BetaToolChoiceFunction, type BetaToolChoiceMcp as BetaToolChoiceMcp, type BetaToolChoiceOptions as BetaToolChoiceOptions, type BetaToolChoiceShell as BetaToolChoiceShell, type BetaToolChoiceTypes as BetaToolChoiceTypes, type BetaToolSearchTool as BetaToolSearchTool, type BetaWebSearchPreviewTool as BetaWebSearchPreviewTool, type BetaWebSearchTool as BetaWebSearchTool, 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 ResponseDeleteParams as ResponseDeleteParams, type ResponseCancelParams as ResponseCancelParams, type ResponseCompactParams as ResponseCompactParams, };
|
|
11134
11777
|
export { InputItems as InputItems, type BetaResponseItemList as BetaResponseItemList, type InputItemListParams as InputItemListParams, };
|
|
11135
11778
|
export { InputTokens as InputTokens, type InputTokenCountResponse as InputTokenCountResponse, type InputTokenCountParams as InputTokenCountParams, };
|
|
11136
11779
|
}
|