@ai-sdk/openai 4.0.80 → 4.0.82
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 +16 -0
- package/dist/index.d.ts +1716 -1693
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9734 -11963
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +2240 -2219
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +7712 -9502
- package/dist/internal/index.js.map +1 -1
- package/docs/03-openai.mdx +11 -9
- package/package.json +8 -8
- package/src/chat/openai-chat-language-model-options.ts +1 -0
- package/src/normalize-openai-json-schema.ts +76 -3
- package/src/responses/openai-responses-language-model-options.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,1913 +1,1936 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
systemMessageMode?: "remove" | "system" | "developer" | undefined;
|
|
29
|
-
forceReasoning?: boolean | undefined;
|
|
1
|
+
import { FetchFunction, InferSchema, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, WebSocketConstructor } from "@ai-sdk/provider-utils";
|
|
2
|
+
import { EmbeddingModelV4, Experimental_BatchV4, Experimental_EvaluationModelV4, Experimental_RealtimeFactoryV4, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4ClientSecretOptions, Experimental_RealtimeModelV4ClientSecretResult, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4StreamOptions, FilesV4, ImageModelV4, JSONObject, JSONValue, LanguageModelV4, ProviderV4, SkillsV4, SpeechModelV4, TranscriptionModelV4 } from "@ai-sdk/provider";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
//#region src/chat/openai-chat-language-model-options.d.ts
|
|
5
|
+
type OpenAIChatModelId = 'o1' | 'o1-2024-12-17' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o3' | 'o3-2025-04-16' | 'o4-mini' | 'o4-mini-2025-04-16' | 'gpt-4.1' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview' | 'gpt-4o-mini-search-preview-2025-03-11' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'gpt-5' | 'gpt-5-2025-08-07' | 'gpt-5-mini' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-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.3-chat-latest' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'gpt-6-sol' | (string & {});
|
|
6
|
+
declare const openaiLanguageModelChatOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
7
|
+
logitBias?: Record<number, number> | undefined;
|
|
8
|
+
logprobs?: number | boolean | undefined;
|
|
9
|
+
parallelToolCalls?: boolean | undefined;
|
|
10
|
+
user?: string | undefined;
|
|
11
|
+
reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | "minimal" | undefined;
|
|
12
|
+
maxCompletionTokens?: number | undefined;
|
|
13
|
+
store?: boolean | undefined;
|
|
14
|
+
metadata?: Record<string, string> | undefined;
|
|
15
|
+
prediction?: Record<string, any> | undefined;
|
|
16
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
|
|
17
|
+
strictJsonSchema?: boolean | undefined;
|
|
18
|
+
textVerbosity?: "low" | "medium" | "high" | undefined;
|
|
19
|
+
promptCacheKey?: string | undefined;
|
|
20
|
+
promptCacheOptions?: {
|
|
21
|
+
mode?: "implicit" | "explicit" | undefined;
|
|
22
|
+
ttl?: "30m" | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
promptCacheRetention?: "in_memory" | "24h" | undefined;
|
|
25
|
+
safetyIdentifier?: string | undefined;
|
|
26
|
+
systemMessageMode?: "developer" | "system" | "remove" | undefined;
|
|
27
|
+
forceReasoning?: boolean | undefined;
|
|
30
28
|
}>;
|
|
31
29
|
type OpenAILanguageModelChatOptions = InferSchema<typeof openaiLanguageModelChatOptions>;
|
|
32
|
-
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/completion/openai-completion-language-model-options.d.ts
|
|
33
32
|
type OpenAICompletionModelId = 'gpt-3.5-turbo-instruct' | 'gpt-3.5-turbo-instruct-0914' | (string & {});
|
|
34
|
-
declare const openaiLanguageModelCompletionOptions:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
declare const openaiLanguageModelCompletionOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
34
|
+
echo?: boolean | undefined;
|
|
35
|
+
logitBias?: Record<string, number> | undefined;
|
|
36
|
+
suffix?: string | undefined;
|
|
37
|
+
user?: string | undefined;
|
|
38
|
+
logprobs?: number | boolean | undefined;
|
|
40
39
|
}>;
|
|
41
40
|
type OpenAILanguageModelCompletionOptions = InferSchema<typeof openaiLanguageModelCompletionOptions>;
|
|
42
|
-
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/embedding/openai-embedding-model-options.d.ts
|
|
43
43
|
type OpenAIEmbeddingModelId = 'text-embedding-3-small' | 'text-embedding-3-large' | 'text-embedding-ada-002' | (string & {});
|
|
44
|
-
declare const openaiEmbeddingModelOptions:
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
declare const openaiEmbeddingModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
45
|
+
dimensions?: number | undefined;
|
|
46
|
+
user?: string | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
type OpenAIEmbeddingModelOptions = InferSchema<typeof openaiEmbeddingModelOptions>;
|
|
49
|
-
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/image/openai-image-model-options.d.ts
|
|
50
51
|
type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-1.5' | 'gpt-image-2' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'chatgpt-image-latest' | (string & {});
|
|
51
|
-
declare const openaiImageModelOptions:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
declare const openaiImageModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
53
|
+
quality?: "low" | "medium" | "high" | "xhigh" | "max" | "standard" | "auto" | "hd" | undefined;
|
|
54
|
+
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
55
|
+
outputFormat?: "png" | "jpeg" | "webp" | undefined;
|
|
56
|
+
outputCompression?: number | undefined;
|
|
57
|
+
user?: string | undefined;
|
|
57
58
|
}>;
|
|
58
59
|
type OpenAIImageModelOptions = InferSchema<typeof openaiImageModelOptions>;
|
|
59
|
-
declare const openaiImageModelGenerationOptions:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
declare const openaiImageModelGenerationOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
61
|
+
quality?: "low" | "medium" | "high" | "xhigh" | "max" | "standard" | "auto" | "hd" | undefined;
|
|
62
|
+
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
63
|
+
outputFormat?: "png" | "jpeg" | "webp" | undefined;
|
|
64
|
+
outputCompression?: number | undefined;
|
|
65
|
+
user?: string | undefined;
|
|
66
|
+
style?: "vivid" | "natural" | undefined;
|
|
67
|
+
moderation?: "low" | "auto" | undefined;
|
|
67
68
|
}>;
|
|
68
69
|
type OpenAIImageModelGenerationOptions = InferSchema<typeof openaiImageModelGenerationOptions>;
|
|
69
|
-
declare const openaiImageModelEditOptions:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
declare const openaiImageModelEditOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
71
|
+
quality?: "low" | "medium" | "high" | "xhigh" | "max" | "standard" | "auto" | "hd" | undefined;
|
|
72
|
+
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
73
|
+
outputFormat?: "png" | "jpeg" | "webp" | undefined;
|
|
74
|
+
outputCompression?: number | undefined;
|
|
75
|
+
user?: string | undefined;
|
|
76
|
+
inputFidelity?: "low" | "high" | undefined;
|
|
76
77
|
}>;
|
|
77
78
|
type OpenAIImageModelEditOptions = InferSchema<typeof openaiImageModelEditOptions>;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Whether to use external web access for fetching live content.
|
|
135
|
-
* - true: Fetch live web content (default)
|
|
136
|
-
* - false: Use cached/indexed results
|
|
137
|
-
*/
|
|
138
|
-
externalWebAccess?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Filters for the search.
|
|
141
|
-
*/
|
|
142
|
-
filters?: {
|
|
143
|
-
/**
|
|
144
|
-
* Allowed domains for the search.
|
|
145
|
-
* If not provided, all domains are allowed.
|
|
146
|
-
* Subdomains of the provided domains are allowed as well.
|
|
147
|
-
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
148
|
-
*/
|
|
149
|
-
allowedDomains?: string[];
|
|
150
|
-
/**
|
|
151
|
-
* Blocked domains for the search.
|
|
152
|
-
* Subdomains of the provided domains are blocked as well.
|
|
153
|
-
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
154
|
-
*/
|
|
155
|
-
blockedDomains?: string[];
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Search context size to use for the web search.
|
|
159
|
-
* - high: Most comprehensive context, highest cost, slower response
|
|
160
|
-
* - medium: Balanced context, cost, and latency (default)
|
|
161
|
-
* - low: Least context, lowest cost, fastest response
|
|
162
|
-
*/
|
|
163
|
-
searchContextSize?: "low" | "medium" | "high";
|
|
164
|
-
/**
|
|
165
|
-
* User location information to provide geographically relevant search results.
|
|
166
|
-
*/
|
|
167
|
-
userLocation?: {
|
|
168
|
-
/**
|
|
169
|
-
* Type of location (always 'approximate')
|
|
170
|
-
*/
|
|
171
|
-
type: "approximate";
|
|
172
|
-
/**
|
|
173
|
-
* Two-letter ISO country code (e.g., 'US', 'GB')
|
|
174
|
-
*/
|
|
175
|
-
country?: string;
|
|
176
|
-
/**
|
|
177
|
-
* City name (free text, e.g., 'Minneapolis')
|
|
178
|
-
*/
|
|
179
|
-
city?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Region name (free text, e.g., 'Minnesota')
|
|
182
|
-
*/
|
|
183
|
-
region?: string;
|
|
184
|
-
/**
|
|
185
|
-
* IANA timezone (e.g., 'America/Chicago')
|
|
186
|
-
*/
|
|
187
|
-
timezone?: string;
|
|
188
|
-
};
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/tool/apply-patch.d.ts
|
|
81
|
+
/**
|
|
82
|
+
* Type definitions for the apply_patch operations.
|
|
83
|
+
*/
|
|
84
|
+
type ApplyPatchOperation = {
|
|
85
|
+
type: 'create_file';
|
|
86
|
+
/**
|
|
87
|
+
* Path of the file to create relative to the workspace root.
|
|
88
|
+
*/
|
|
89
|
+
path: string;
|
|
90
|
+
/**
|
|
91
|
+
* Unified diff content to apply when creating the file.
|
|
92
|
+
*/
|
|
93
|
+
diff: string;
|
|
94
|
+
} | {
|
|
95
|
+
type: 'delete_file';
|
|
96
|
+
/**
|
|
97
|
+
* Path of the file to delete relative to the workspace root.
|
|
98
|
+
*/
|
|
99
|
+
path: string;
|
|
100
|
+
} | {
|
|
101
|
+
type: 'update_file';
|
|
102
|
+
/**
|
|
103
|
+
* Path of the file to update relative to the workspace root.
|
|
104
|
+
*/
|
|
105
|
+
path: string;
|
|
106
|
+
/**
|
|
107
|
+
* Unified diff content to apply to the existing file.
|
|
108
|
+
*/
|
|
109
|
+
diff: string;
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/tool/custom.d.ts
|
|
113
|
+
declare const customToolFactory: import("@ai-sdk/provider-utils").ProviderDefinedToolFactory<string, {
|
|
114
|
+
/**
|
|
115
|
+
* An optional description of what the tool does.
|
|
116
|
+
*/
|
|
117
|
+
description?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the model can continue generating after calling this tool
|
|
120
|
+
* without waiting for its result.
|
|
121
|
+
*/
|
|
122
|
+
async?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The output format specification for the tool.
|
|
125
|
+
* Omit for unconstrained text output.
|
|
126
|
+
*/
|
|
127
|
+
format?: {
|
|
128
|
+
type: "grammar";
|
|
129
|
+
syntax: "regex" | "lark";
|
|
130
|
+
definition: string;
|
|
131
|
+
} | {
|
|
132
|
+
type: "text";
|
|
133
|
+
};
|
|
189
134
|
}, {}>;
|
|
190
|
-
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/responses/openai-responses-api.d.ts
|
|
191
137
|
/**
|
|
192
138
|
* A filter used to compare a specified attribute key to a given value using a defined comparison operation.
|
|
193
139
|
*/
|
|
194
140
|
type OpenAIResponsesFileSearchToolComparisonFilter = {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
141
|
+
/**
|
|
142
|
+
* The key to compare against the value.
|
|
143
|
+
*/
|
|
144
|
+
key: string;
|
|
145
|
+
/**
|
|
146
|
+
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.
|
|
147
|
+
*/
|
|
148
|
+
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin';
|
|
149
|
+
/**
|
|
150
|
+
* The value to compare against the attribute key; supports string, number, boolean, or array of string types.
|
|
151
|
+
*/
|
|
152
|
+
value: string | number | boolean | string[];
|
|
207
153
|
};
|
|
208
154
|
/**
|
|
209
155
|
* Combine multiple filters using and or or.
|
|
210
156
|
*/
|
|
211
157
|
type OpenAIResponsesFileSearchToolCompoundFilter = {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Type of operation: and or or.
|
|
160
|
+
*/
|
|
161
|
+
type: 'and' | 'or';
|
|
162
|
+
/**
|
|
163
|
+
* Array of filters to combine. Items can be ComparisonFilter or CompoundFilter.
|
|
164
|
+
*/
|
|
165
|
+
filters: Array<OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter>;
|
|
220
166
|
};
|
|
221
|
-
declare const openaiResponsesChunkSchema:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
} | {
|
|
225
|
-
type: "error";
|
|
226
|
-
sequence_number: number;
|
|
227
|
-
error: {
|
|
228
|
-
type: string;
|
|
229
|
-
message: string;
|
|
230
|
-
code?: string | null | undefined;
|
|
231
|
-
param?: string | null | undefined;
|
|
232
|
-
};
|
|
167
|
+
declare const openaiResponsesChunkSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
168
|
+
type: "unknown_chunk";
|
|
169
|
+
message: string;
|
|
233
170
|
} | {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
logprob: number;
|
|
247
|
-
top_logprobs: {
|
|
248
|
-
token: string;
|
|
249
|
-
logprob: number;
|
|
250
|
-
}[];
|
|
251
|
-
}[] | null | undefined;
|
|
171
|
+
type: "response.output_text.delta";
|
|
172
|
+
item_id: string;
|
|
173
|
+
delta: string;
|
|
174
|
+
output_index?: number | null | undefined;
|
|
175
|
+
logprobs?: {
|
|
176
|
+
token: string;
|
|
177
|
+
logprob: number;
|
|
178
|
+
top_logprobs: {
|
|
179
|
+
token: string;
|
|
180
|
+
logprob: number;
|
|
181
|
+
}[];
|
|
182
|
+
}[] | null | undefined;
|
|
252
183
|
} | {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
184
|
+
type: "response.completed" | "response.incomplete";
|
|
185
|
+
response: {
|
|
186
|
+
incomplete_details?: {
|
|
187
|
+
reason: string;
|
|
188
|
+
} | null | undefined;
|
|
189
|
+
usage?: (Record<string, JSONValue | undefined> & {
|
|
190
|
+
input_tokens: number;
|
|
191
|
+
output_tokens: number;
|
|
192
|
+
input_tokens_details?: (Record<string, JSONValue | undefined> & {
|
|
193
|
+
cached_tokens?: number | null | undefined;
|
|
194
|
+
cache_write_tokens?: number | null | undefined;
|
|
195
|
+
orchestration_input_tokens?: number | null | undefined;
|
|
196
|
+
orchestration_input_cached_tokens?: number | null | undefined;
|
|
197
|
+
}) | null | undefined;
|
|
198
|
+
output_tokens_details?: (Record<string, JSONValue | undefined> & {
|
|
199
|
+
reasoning_tokens?: number | null | undefined;
|
|
200
|
+
orchestration_output_tokens?: number | null | undefined;
|
|
201
|
+
}) | null | undefined;
|
|
202
|
+
total_tokens?: number | undefined;
|
|
203
|
+
}) | null | undefined;
|
|
204
|
+
reasoning?: {
|
|
205
|
+
context?: string | null | undefined;
|
|
206
|
+
} | null | undefined;
|
|
207
|
+
service_tier?: string | null | undefined;
|
|
208
|
+
};
|
|
278
209
|
} | {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
210
|
+
type: "response.failed";
|
|
211
|
+
sequence_number: number;
|
|
212
|
+
response: {
|
|
213
|
+
error?: {
|
|
214
|
+
message: string;
|
|
215
|
+
code?: string | null | undefined;
|
|
216
|
+
} | null | undefined;
|
|
217
|
+
incomplete_details?: {
|
|
218
|
+
reason: string;
|
|
219
|
+
} | null | undefined;
|
|
220
|
+
usage?: (Record<string, JSONValue | undefined> & {
|
|
221
|
+
input_tokens: number;
|
|
222
|
+
output_tokens: number;
|
|
223
|
+
input_tokens_details?: (Record<string, JSONValue | undefined> & {
|
|
224
|
+
cached_tokens?: number | null | undefined;
|
|
225
|
+
cache_write_tokens?: number | null | undefined;
|
|
226
|
+
orchestration_input_tokens?: number | null | undefined;
|
|
227
|
+
orchestration_input_cached_tokens?: number | null | undefined;
|
|
228
|
+
}) | null | undefined;
|
|
229
|
+
output_tokens_details?: (Record<string, JSONValue | undefined> & {
|
|
230
|
+
reasoning_tokens?: number | null | undefined;
|
|
231
|
+
orchestration_output_tokens?: number | null | undefined;
|
|
232
|
+
}) | null | undefined;
|
|
233
|
+
total_tokens?: number | undefined;
|
|
234
|
+
}) | null | undefined;
|
|
235
|
+
reasoning?: {
|
|
236
|
+
context?: string | null | undefined;
|
|
237
|
+
} | null | undefined;
|
|
238
|
+
service_tier?: string | null | undefined;
|
|
239
|
+
};
|
|
309
240
|
} | {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
241
|
+
type: "response.created";
|
|
242
|
+
response: {
|
|
243
|
+
id: string;
|
|
244
|
+
created_at: number;
|
|
245
|
+
model: string;
|
|
246
|
+
service_tier?: string | null | undefined;
|
|
247
|
+
};
|
|
317
248
|
} | {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
249
|
+
type: "response.in_progress";
|
|
250
|
+
response: {
|
|
251
|
+
id: string;
|
|
252
|
+
created_at: number;
|
|
253
|
+
model: string;
|
|
254
|
+
service_tier?: string | null | undefined;
|
|
255
|
+
};
|
|
325
256
|
} | {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
path: {
|
|
347
|
-
x: number;
|
|
348
|
-
y: number;
|
|
349
|
-
}[];
|
|
350
|
-
keys?: string[] | null | undefined;
|
|
351
|
-
} | {
|
|
352
|
-
type: "keypress";
|
|
353
|
-
keys: string[];
|
|
354
|
-
} | {
|
|
355
|
-
type: "move";
|
|
356
|
-
x: number;
|
|
357
|
-
y: number;
|
|
358
|
-
keys?: string[] | null | undefined;
|
|
359
|
-
} | {
|
|
360
|
-
type: "screenshot";
|
|
361
|
-
} | {
|
|
362
|
-
type: "scroll";
|
|
363
|
-
x: number;
|
|
364
|
-
y: number;
|
|
365
|
-
scroll_x: number;
|
|
366
|
-
scroll_y: number;
|
|
367
|
-
keys?: string[] | null | undefined;
|
|
368
|
-
} | {
|
|
369
|
-
type: "type";
|
|
370
|
-
text: string;
|
|
371
|
-
} | {
|
|
372
|
-
type: "wait";
|
|
373
|
-
} | null | undefined;
|
|
374
|
-
actions?: ({
|
|
375
|
-
type: "click";
|
|
376
|
-
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
377
|
-
x: number;
|
|
378
|
-
y: number;
|
|
379
|
-
keys?: string[] | null | undefined;
|
|
380
|
-
} | {
|
|
381
|
-
type: "double_click";
|
|
382
|
-
x: number;
|
|
383
|
-
y: number;
|
|
384
|
-
keys?: string[] | null | undefined;
|
|
385
|
-
} | {
|
|
386
|
-
type: "drag";
|
|
387
|
-
path: {
|
|
388
|
-
x: number;
|
|
389
|
-
y: number;
|
|
390
|
-
}[];
|
|
391
|
-
keys?: string[] | null | undefined;
|
|
392
|
-
} | {
|
|
393
|
-
type: "keypress";
|
|
394
|
-
keys: string[];
|
|
395
|
-
} | {
|
|
396
|
-
type: "move";
|
|
397
|
-
x: number;
|
|
398
|
-
y: number;
|
|
399
|
-
keys?: string[] | null | undefined;
|
|
400
|
-
} | {
|
|
401
|
-
type: "screenshot";
|
|
402
|
-
} | {
|
|
403
|
-
type: "scroll";
|
|
404
|
-
x: number;
|
|
405
|
-
y: number;
|
|
406
|
-
scroll_x: number;
|
|
407
|
-
scroll_y: number;
|
|
408
|
-
keys?: string[] | null | undefined;
|
|
409
|
-
} | {
|
|
410
|
-
type: "type";
|
|
411
|
-
text: string;
|
|
412
|
-
} | {
|
|
413
|
-
type: "wait";
|
|
414
|
-
})[] | null | undefined;
|
|
415
|
-
pending_safety_checks?: {
|
|
416
|
-
id: string;
|
|
417
|
-
code?: string | null | undefined;
|
|
418
|
-
message?: string | null | undefined;
|
|
419
|
-
}[] | null | undefined;
|
|
257
|
+
type: "response.output_item.added";
|
|
258
|
+
output_index: number;
|
|
259
|
+
item: {
|
|
260
|
+
type: "message";
|
|
261
|
+
id: string;
|
|
262
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
type: "reasoning";
|
|
265
|
+
id: string;
|
|
266
|
+
encrypted_content?: string | null | undefined;
|
|
267
|
+
} | {
|
|
268
|
+
type: "function_call";
|
|
269
|
+
id: string;
|
|
270
|
+
call_id: string;
|
|
271
|
+
name: string;
|
|
272
|
+
arguments: string;
|
|
273
|
+
async?: boolean | null | undefined;
|
|
274
|
+
namespace?: string | null | undefined;
|
|
275
|
+
caller?: {
|
|
276
|
+
type: "direct";
|
|
420
277
|
} | {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
278
|
+
type: "program";
|
|
279
|
+
caller_id: string;
|
|
280
|
+
} | null | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
type: "program";
|
|
283
|
+
id: string;
|
|
284
|
+
call_id: string;
|
|
285
|
+
code: string;
|
|
286
|
+
fingerprint: string;
|
|
287
|
+
} | {
|
|
288
|
+
type: "program_output";
|
|
289
|
+
id: string;
|
|
290
|
+
call_id: string;
|
|
291
|
+
result: string;
|
|
292
|
+
status: "completed" | "incomplete";
|
|
293
|
+
} | {
|
|
294
|
+
type: "web_search_call";
|
|
295
|
+
id: string;
|
|
296
|
+
status: string;
|
|
297
|
+
} | {
|
|
298
|
+
type: "computer_call";
|
|
299
|
+
id: string;
|
|
300
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
301
|
+
call_id?: string | null | undefined;
|
|
302
|
+
action?: {
|
|
303
|
+
type: "click";
|
|
304
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
305
|
+
x: number;
|
|
306
|
+
y: number;
|
|
307
|
+
keys?: string[] | null | undefined;
|
|
432
308
|
} | {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
309
|
+
type: "double_click";
|
|
310
|
+
x: number;
|
|
311
|
+
y: number;
|
|
312
|
+
keys?: string[] | null | undefined;
|
|
436
313
|
} | {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
314
|
+
type: "drag";
|
|
315
|
+
path: {
|
|
316
|
+
x: number;
|
|
317
|
+
y: number;
|
|
318
|
+
}[];
|
|
319
|
+
keys?: string[] | null | undefined;
|
|
440
320
|
} | {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
call_id: string;
|
|
444
|
-
name: string;
|
|
445
|
-
arguments: string;
|
|
446
|
-
async?: boolean | null | undefined;
|
|
447
|
-
namespace?: string | null | undefined;
|
|
448
|
-
caller?: {
|
|
449
|
-
type: "direct";
|
|
450
|
-
} | {
|
|
451
|
-
type: "program";
|
|
452
|
-
caller_id: string;
|
|
453
|
-
} | null | undefined;
|
|
321
|
+
type: "keypress";
|
|
322
|
+
keys: string[];
|
|
454
323
|
} | {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
fingerprint: string;
|
|
324
|
+
type: "move";
|
|
325
|
+
x: number;
|
|
326
|
+
y: number;
|
|
327
|
+
keys?: string[] | null | undefined;
|
|
460
328
|
} | {
|
|
461
|
-
|
|
462
|
-
id: string;
|
|
463
|
-
call_id: string;
|
|
464
|
-
result: string;
|
|
465
|
-
status: "completed" | "incomplete";
|
|
329
|
+
type: "screenshot";
|
|
466
330
|
} | {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
331
|
+
type: "scroll";
|
|
332
|
+
x: number;
|
|
333
|
+
y: number;
|
|
334
|
+
scroll_x: number;
|
|
335
|
+
scroll_y: number;
|
|
336
|
+
keys?: string[] | null | undefined;
|
|
470
337
|
} | {
|
|
471
|
-
|
|
472
|
-
|
|
338
|
+
type: "type";
|
|
339
|
+
text: string;
|
|
473
340
|
} | {
|
|
474
|
-
|
|
475
|
-
|
|
341
|
+
type: "wait";
|
|
342
|
+
} | null | undefined;
|
|
343
|
+
actions?: ({
|
|
344
|
+
type: "click";
|
|
345
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
346
|
+
x: number;
|
|
347
|
+
y: number;
|
|
348
|
+
keys?: string[] | null | undefined;
|
|
476
349
|
} | {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
outputs: ({
|
|
482
|
-
type: "logs";
|
|
483
|
-
logs: string;
|
|
484
|
-
} | {
|
|
485
|
-
type: "image";
|
|
486
|
-
url: string;
|
|
487
|
-
})[] | null;
|
|
488
|
-
status: string;
|
|
350
|
+
type: "double_click";
|
|
351
|
+
x: number;
|
|
352
|
+
y: number;
|
|
353
|
+
keys?: string[] | null | undefined;
|
|
489
354
|
} | {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
355
|
+
type: "drag";
|
|
356
|
+
path: {
|
|
357
|
+
x: number;
|
|
358
|
+
y: number;
|
|
359
|
+
}[];
|
|
360
|
+
keys?: string[] | null | undefined;
|
|
494
361
|
} | {
|
|
495
|
-
|
|
496
|
-
|
|
362
|
+
type: "keypress";
|
|
363
|
+
keys: string[];
|
|
497
364
|
} | {
|
|
498
|
-
|
|
499
|
-
|
|
365
|
+
type: "move";
|
|
366
|
+
x: number;
|
|
367
|
+
y: number;
|
|
368
|
+
keys?: string[] | null | undefined;
|
|
500
369
|
} | {
|
|
501
|
-
|
|
502
|
-
id: string;
|
|
503
|
-
call_id: string;
|
|
504
|
-
status: "completed" | "in_progress";
|
|
505
|
-
operation: {
|
|
506
|
-
type: "create_file";
|
|
507
|
-
path: string;
|
|
508
|
-
diff: string;
|
|
509
|
-
} | {
|
|
510
|
-
type: "delete_file";
|
|
511
|
-
path: string;
|
|
512
|
-
} | {
|
|
513
|
-
type: "update_file";
|
|
514
|
-
path: string;
|
|
515
|
-
diff: string;
|
|
516
|
-
};
|
|
370
|
+
type: "screenshot";
|
|
517
371
|
} | {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
372
|
+
type: "scroll";
|
|
373
|
+
x: number;
|
|
374
|
+
y: number;
|
|
375
|
+
scroll_x: number;
|
|
376
|
+
scroll_y: number;
|
|
377
|
+
keys?: string[] | null | undefined;
|
|
524
378
|
} | {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
call_id: string;
|
|
528
|
-
status: "completed" | "in_progress" | "incomplete";
|
|
529
|
-
action: {
|
|
530
|
-
commands: string[];
|
|
531
|
-
};
|
|
379
|
+
type: "type";
|
|
380
|
+
text: string;
|
|
532
381
|
} | {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
382
|
+
type: "wait";
|
|
383
|
+
})[] | null | undefined;
|
|
384
|
+
pending_safety_checks?: {
|
|
385
|
+
id: string;
|
|
386
|
+
code?: string | null | undefined;
|
|
387
|
+
message?: string | null | undefined;
|
|
388
|
+
}[] | null | undefined;
|
|
389
|
+
} | {
|
|
390
|
+
type: "file_search_call";
|
|
391
|
+
id: string;
|
|
392
|
+
} | {
|
|
393
|
+
type: "local_shell_call";
|
|
394
|
+
id: string;
|
|
395
|
+
call_id: string;
|
|
396
|
+
action: {
|
|
397
|
+
type: "exec";
|
|
398
|
+
command: string[];
|
|
399
|
+
timeout_ms?: number | undefined;
|
|
400
|
+
user?: string | undefined;
|
|
401
|
+
working_directory?: string | undefined;
|
|
402
|
+
env?: Record<string, string> | undefined;
|
|
403
|
+
};
|
|
404
|
+
} | {
|
|
405
|
+
type: "image_generation_call";
|
|
406
|
+
id: string;
|
|
407
|
+
} | {
|
|
408
|
+
type: "code_interpreter_call";
|
|
409
|
+
id: string;
|
|
410
|
+
container_id: string;
|
|
411
|
+
code: string | null;
|
|
412
|
+
outputs: ({
|
|
413
|
+
type: "logs";
|
|
414
|
+
logs: string;
|
|
536
415
|
} | {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
416
|
+
type: "image";
|
|
417
|
+
url: string;
|
|
418
|
+
})[] | null;
|
|
419
|
+
status: string;
|
|
420
|
+
} | {
|
|
421
|
+
type: "mcp_call";
|
|
422
|
+
id: string;
|
|
423
|
+
status: string;
|
|
424
|
+
approval_request_id?: string | null | undefined;
|
|
425
|
+
} | {
|
|
426
|
+
type: "mcp_list_tools";
|
|
427
|
+
id: string;
|
|
428
|
+
} | {
|
|
429
|
+
type: "mcp_approval_request";
|
|
430
|
+
id: string;
|
|
431
|
+
} | {
|
|
432
|
+
type: "apply_patch_call";
|
|
433
|
+
id: string;
|
|
434
|
+
call_id: string;
|
|
435
|
+
status: "in_progress" | "completed";
|
|
436
|
+
operation: {
|
|
437
|
+
type: "create_file";
|
|
438
|
+
path: string;
|
|
439
|
+
diff: string;
|
|
551
440
|
} | {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
execution: "server" | "client";
|
|
555
|
-
call_id: string | null;
|
|
556
|
-
status: "completed" | "in_progress" | "incomplete";
|
|
557
|
-
arguments: unknown;
|
|
441
|
+
type: "delete_file";
|
|
442
|
+
path: string;
|
|
558
443
|
} | {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
call_id: string | null;
|
|
563
|
-
status: "completed" | "in_progress" | "incomplete";
|
|
564
|
-
tools: Record<string, JSONValue | undefined>[];
|
|
444
|
+
type: "update_file";
|
|
445
|
+
path: string;
|
|
446
|
+
diff: string;
|
|
565
447
|
};
|
|
448
|
+
} | {
|
|
449
|
+
type: "custom_tool_call";
|
|
450
|
+
id: string;
|
|
451
|
+
call_id: string;
|
|
452
|
+
name: string;
|
|
453
|
+
input: string;
|
|
454
|
+
async?: boolean | null | undefined;
|
|
455
|
+
} | {
|
|
456
|
+
type: "shell_call";
|
|
457
|
+
id: string;
|
|
458
|
+
call_id: string;
|
|
459
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
460
|
+
action: {
|
|
461
|
+
commands: string[];
|
|
462
|
+
};
|
|
463
|
+
} | {
|
|
464
|
+
type: "compaction";
|
|
465
|
+
id: string;
|
|
466
|
+
encrypted_content?: string | null | undefined;
|
|
467
|
+
} | {
|
|
468
|
+
type: "shell_call_output";
|
|
469
|
+
id: string;
|
|
470
|
+
call_id: string;
|
|
471
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
472
|
+
output: {
|
|
473
|
+
stdout: string;
|
|
474
|
+
stderr: string;
|
|
475
|
+
outcome: {
|
|
476
|
+
type: "timeout";
|
|
477
|
+
} | {
|
|
478
|
+
type: "exit";
|
|
479
|
+
exit_code: number;
|
|
480
|
+
};
|
|
481
|
+
}[];
|
|
482
|
+
} | {
|
|
483
|
+
type: "tool_search_call";
|
|
484
|
+
id: string;
|
|
485
|
+
execution: "client" | "server";
|
|
486
|
+
call_id: string | null;
|
|
487
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
488
|
+
arguments: unknown;
|
|
489
|
+
} | {
|
|
490
|
+
type: "tool_search_output";
|
|
491
|
+
id: string;
|
|
492
|
+
execution: "client" | "server";
|
|
493
|
+
call_id: string | null;
|
|
494
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
495
|
+
tools: Record<string, JSONValue | undefined>[];
|
|
496
|
+
};
|
|
566
497
|
} | {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
} | {
|
|
593
|
-
type: "keypress";
|
|
594
|
-
keys: string[];
|
|
595
|
-
} | {
|
|
596
|
-
type: "move";
|
|
597
|
-
x: number;
|
|
598
|
-
y: number;
|
|
599
|
-
keys?: string[] | null | undefined;
|
|
600
|
-
} | {
|
|
601
|
-
type: "screenshot";
|
|
602
|
-
} | {
|
|
603
|
-
type: "scroll";
|
|
604
|
-
x: number;
|
|
605
|
-
y: number;
|
|
606
|
-
scroll_x: number;
|
|
607
|
-
scroll_y: number;
|
|
608
|
-
keys?: string[] | null | undefined;
|
|
609
|
-
} | {
|
|
610
|
-
type: "type";
|
|
611
|
-
text: string;
|
|
612
|
-
} | {
|
|
613
|
-
type: "wait";
|
|
614
|
-
} | null | undefined;
|
|
615
|
-
actions?: ({
|
|
616
|
-
type: "click";
|
|
617
|
-
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
618
|
-
x: number;
|
|
619
|
-
y: number;
|
|
620
|
-
keys?: string[] | null | undefined;
|
|
621
|
-
} | {
|
|
622
|
-
type: "double_click";
|
|
623
|
-
x: number;
|
|
624
|
-
y: number;
|
|
625
|
-
keys?: string[] | null | undefined;
|
|
626
|
-
} | {
|
|
627
|
-
type: "drag";
|
|
628
|
-
path: {
|
|
629
|
-
x: number;
|
|
630
|
-
y: number;
|
|
631
|
-
}[];
|
|
632
|
-
keys?: string[] | null | undefined;
|
|
633
|
-
} | {
|
|
634
|
-
type: "keypress";
|
|
635
|
-
keys: string[];
|
|
636
|
-
} | {
|
|
637
|
-
type: "move";
|
|
638
|
-
x: number;
|
|
639
|
-
y: number;
|
|
640
|
-
keys?: string[] | null | undefined;
|
|
641
|
-
} | {
|
|
642
|
-
type: "screenshot";
|
|
643
|
-
} | {
|
|
644
|
-
type: "scroll";
|
|
645
|
-
x: number;
|
|
646
|
-
y: number;
|
|
647
|
-
scroll_x: number;
|
|
648
|
-
scroll_y: number;
|
|
649
|
-
keys?: string[] | null | undefined;
|
|
650
|
-
} | {
|
|
651
|
-
type: "type";
|
|
652
|
-
text: string;
|
|
653
|
-
} | {
|
|
654
|
-
type: "wait";
|
|
655
|
-
})[] | null | undefined;
|
|
656
|
-
pending_safety_checks?: {
|
|
657
|
-
id: string;
|
|
658
|
-
code?: string | null | undefined;
|
|
659
|
-
message?: string | null | undefined;
|
|
660
|
-
}[] | null | undefined;
|
|
498
|
+
type: "response.output_item.done";
|
|
499
|
+
output_index: number;
|
|
500
|
+
item: {
|
|
501
|
+
type: "program";
|
|
502
|
+
id: string;
|
|
503
|
+
call_id: string;
|
|
504
|
+
code: string;
|
|
505
|
+
fingerprint: string;
|
|
506
|
+
} | {
|
|
507
|
+
type: "program_output";
|
|
508
|
+
id: string;
|
|
509
|
+
call_id: string;
|
|
510
|
+
result: string;
|
|
511
|
+
status: "completed" | "incomplete";
|
|
512
|
+
} | {
|
|
513
|
+
type: "computer_call";
|
|
514
|
+
id: string;
|
|
515
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
516
|
+
call_id?: string | null | undefined;
|
|
517
|
+
action?: {
|
|
518
|
+
type: "click";
|
|
519
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
520
|
+
x: number;
|
|
521
|
+
y: number;
|
|
522
|
+
keys?: string[] | null | undefined;
|
|
661
523
|
} | {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
type: "exec";
|
|
667
|
-
command: string[];
|
|
668
|
-
timeout_ms?: number | undefined;
|
|
669
|
-
user?: string | undefined;
|
|
670
|
-
working_directory?: string | undefined;
|
|
671
|
-
env?: Record<string, string> | undefined;
|
|
672
|
-
};
|
|
524
|
+
type: "double_click";
|
|
525
|
+
x: number;
|
|
526
|
+
y: number;
|
|
527
|
+
keys?: string[] | null | undefined;
|
|
673
528
|
} | {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
529
|
+
type: "drag";
|
|
530
|
+
path: {
|
|
531
|
+
x: number;
|
|
532
|
+
y: number;
|
|
533
|
+
}[];
|
|
534
|
+
keys?: string[] | null | undefined;
|
|
679
535
|
} | {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
call_id: string;
|
|
683
|
-
result: string;
|
|
684
|
-
status: "completed" | "incomplete";
|
|
536
|
+
type: "keypress";
|
|
537
|
+
keys: string[];
|
|
685
538
|
} | {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
539
|
+
type: "move";
|
|
540
|
+
x: number;
|
|
541
|
+
y: number;
|
|
542
|
+
keys?: string[] | null | undefined;
|
|
689
543
|
} | {
|
|
690
|
-
|
|
691
|
-
id: string;
|
|
692
|
-
encrypted_content?: string | null | undefined;
|
|
544
|
+
type: "screenshot";
|
|
693
545
|
} | {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
async?: boolean | null | undefined;
|
|
701
|
-
namespace?: string | null | undefined;
|
|
702
|
-
caller?: {
|
|
703
|
-
type: "direct";
|
|
704
|
-
} | {
|
|
705
|
-
type: "program";
|
|
706
|
-
caller_id: string;
|
|
707
|
-
} | null | undefined;
|
|
546
|
+
type: "scroll";
|
|
547
|
+
x: number;
|
|
548
|
+
y: number;
|
|
549
|
+
scroll_x: number;
|
|
550
|
+
scroll_y: number;
|
|
551
|
+
keys?: string[] | null | undefined;
|
|
708
552
|
} | {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
call_id: string;
|
|
712
|
-
name: string;
|
|
713
|
-
input: string;
|
|
714
|
-
status: "completed";
|
|
715
|
-
async?: boolean | null | undefined;
|
|
553
|
+
type: "type";
|
|
554
|
+
text: string;
|
|
716
555
|
} | {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
type: "image";
|
|
726
|
-
url: string;
|
|
727
|
-
})[] | null;
|
|
556
|
+
type: "wait";
|
|
557
|
+
} | null | undefined;
|
|
558
|
+
actions?: ({
|
|
559
|
+
type: "click";
|
|
560
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
561
|
+
x: number;
|
|
562
|
+
y: number;
|
|
563
|
+
keys?: string[] | null | undefined;
|
|
728
564
|
} | {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
565
|
+
type: "double_click";
|
|
566
|
+
x: number;
|
|
567
|
+
y: number;
|
|
568
|
+
keys?: string[] | null | undefined;
|
|
732
569
|
} | {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
queries?: string[] | null | undefined;
|
|
740
|
-
sources?: ({
|
|
741
|
-
type: "url";
|
|
742
|
-
url: string;
|
|
743
|
-
} | {
|
|
744
|
-
type: "api";
|
|
745
|
-
name: string;
|
|
746
|
-
})[] | null | undefined;
|
|
747
|
-
} | {
|
|
748
|
-
type: "open_page";
|
|
749
|
-
url?: string | null | undefined;
|
|
750
|
-
} | {
|
|
751
|
-
type: "find_in_page";
|
|
752
|
-
url?: string | null | undefined;
|
|
753
|
-
pattern?: string | null | undefined;
|
|
754
|
-
} | null | undefined;
|
|
570
|
+
type: "drag";
|
|
571
|
+
path: {
|
|
572
|
+
x: number;
|
|
573
|
+
y: number;
|
|
574
|
+
}[];
|
|
575
|
+
keys?: string[] | null | undefined;
|
|
755
576
|
} | {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
queries: string[];
|
|
759
|
-
results?: {
|
|
760
|
-
attributes: Record<string, string | number | boolean>;
|
|
761
|
-
file_id: string;
|
|
762
|
-
filename: string;
|
|
763
|
-
score: number;
|
|
764
|
-
text: string;
|
|
765
|
-
}[] | null | undefined;
|
|
577
|
+
type: "keypress";
|
|
578
|
+
keys: string[];
|
|
766
579
|
} | {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
name: string;
|
|
772
|
-
server_label: string;
|
|
773
|
-
output?: string | null | undefined;
|
|
774
|
-
error?: string | {
|
|
775
|
-
[x: string]: unknown;
|
|
776
|
-
type?: string | undefined;
|
|
777
|
-
code?: string | number | undefined;
|
|
778
|
-
message?: string | undefined;
|
|
779
|
-
} | null | undefined;
|
|
780
|
-
approval_request_id?: string | null | undefined;
|
|
580
|
+
type: "move";
|
|
581
|
+
x: number;
|
|
582
|
+
y: number;
|
|
583
|
+
keys?: string[] | null | undefined;
|
|
781
584
|
} | {
|
|
782
|
-
|
|
783
|
-
id: string;
|
|
784
|
-
server_label: string;
|
|
785
|
-
tools: {
|
|
786
|
-
name: string;
|
|
787
|
-
input_schema: any;
|
|
788
|
-
description?: string | undefined;
|
|
789
|
-
annotations?: Record<string, unknown> | undefined;
|
|
790
|
-
}[];
|
|
791
|
-
error?: string | {
|
|
792
|
-
[x: string]: unknown;
|
|
793
|
-
type?: string | undefined;
|
|
794
|
-
code?: string | number | undefined;
|
|
795
|
-
message?: string | undefined;
|
|
796
|
-
} | undefined;
|
|
585
|
+
type: "screenshot";
|
|
797
586
|
} | {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
587
|
+
type: "scroll";
|
|
588
|
+
x: number;
|
|
589
|
+
y: number;
|
|
590
|
+
scroll_x: number;
|
|
591
|
+
scroll_y: number;
|
|
592
|
+
keys?: string[] | null | undefined;
|
|
804
593
|
} | {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
call_id: string;
|
|
808
|
-
status: "completed" | "in_progress";
|
|
809
|
-
operation: {
|
|
810
|
-
type: "create_file";
|
|
811
|
-
path: string;
|
|
812
|
-
diff: string;
|
|
813
|
-
} | {
|
|
814
|
-
type: "delete_file";
|
|
815
|
-
path: string;
|
|
816
|
-
} | {
|
|
817
|
-
type: "update_file";
|
|
818
|
-
path: string;
|
|
819
|
-
diff: string;
|
|
820
|
-
};
|
|
594
|
+
type: "type";
|
|
595
|
+
text: string;
|
|
821
596
|
} | {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
597
|
+
type: "wait";
|
|
598
|
+
})[] | null | undefined;
|
|
599
|
+
pending_safety_checks?: {
|
|
600
|
+
id: string;
|
|
601
|
+
code?: string | null | undefined;
|
|
602
|
+
message?: string | null | undefined;
|
|
603
|
+
}[] | null | undefined;
|
|
604
|
+
} | {
|
|
605
|
+
type: "local_shell_call";
|
|
606
|
+
id: string;
|
|
607
|
+
call_id: string;
|
|
608
|
+
action: {
|
|
609
|
+
type: "exec";
|
|
610
|
+
command: string[];
|
|
611
|
+
timeout_ms?: number | undefined;
|
|
612
|
+
user?: string | undefined;
|
|
613
|
+
working_directory?: string | undefined;
|
|
614
|
+
env?: Record<string, string> | undefined;
|
|
615
|
+
};
|
|
616
|
+
} | {
|
|
617
|
+
type: "message";
|
|
618
|
+
id: string;
|
|
619
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
620
|
+
} | {
|
|
621
|
+
type: "reasoning";
|
|
622
|
+
id: string;
|
|
623
|
+
encrypted_content?: string | null | undefined;
|
|
624
|
+
} | {
|
|
625
|
+
type: "function_call";
|
|
626
|
+
id: string;
|
|
627
|
+
call_id: string;
|
|
628
|
+
name: string;
|
|
629
|
+
arguments: string;
|
|
630
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
631
|
+
async?: boolean | null | undefined;
|
|
632
|
+
namespace?: string | null | undefined;
|
|
633
|
+
caller?: {
|
|
634
|
+
type: "direct";
|
|
635
|
+
} | {
|
|
636
|
+
type: "program";
|
|
637
|
+
caller_id: string;
|
|
638
|
+
} | null | undefined;
|
|
639
|
+
} | {
|
|
640
|
+
type: "custom_tool_call";
|
|
641
|
+
id: string;
|
|
642
|
+
call_id: string;
|
|
643
|
+
name: string;
|
|
644
|
+
input: string;
|
|
645
|
+
status: "completed";
|
|
646
|
+
async?: boolean | null | undefined;
|
|
647
|
+
} | {
|
|
648
|
+
type: "code_interpreter_call";
|
|
649
|
+
id: string;
|
|
650
|
+
code: string | null;
|
|
651
|
+
container_id: string;
|
|
652
|
+
outputs: ({
|
|
653
|
+
type: "logs";
|
|
654
|
+
logs: string;
|
|
655
|
+
} | {
|
|
656
|
+
type: "image";
|
|
657
|
+
url: string;
|
|
658
|
+
})[] | null;
|
|
659
|
+
} | {
|
|
660
|
+
type: "image_generation_call";
|
|
661
|
+
id: string;
|
|
662
|
+
result: string;
|
|
663
|
+
} | {
|
|
664
|
+
type: "web_search_call";
|
|
665
|
+
id: string;
|
|
666
|
+
status: string;
|
|
667
|
+
action?: {
|
|
668
|
+
type: "search";
|
|
669
|
+
query?: string | null | undefined;
|
|
670
|
+
queries?: string[] | null | undefined;
|
|
671
|
+
sources?: ({
|
|
672
|
+
type: "url";
|
|
673
|
+
url: string;
|
|
674
|
+
} | {
|
|
675
|
+
type: "api";
|
|
676
|
+
name: string;
|
|
677
|
+
})[] | null | undefined;
|
|
829
678
|
} | {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
encrypted_content: string;
|
|
679
|
+
type: "open_page";
|
|
680
|
+
url?: string | null | undefined;
|
|
833
681
|
} | {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
682
|
+
type: "find_in_page";
|
|
683
|
+
url?: string | null | undefined;
|
|
684
|
+
pattern?: string | null | undefined;
|
|
685
|
+
} | null | undefined;
|
|
686
|
+
} | {
|
|
687
|
+
type: "file_search_call";
|
|
688
|
+
id: string;
|
|
689
|
+
queries: string[];
|
|
690
|
+
results?: {
|
|
691
|
+
attributes: Record<string, string | number | boolean>;
|
|
692
|
+
file_id: string;
|
|
693
|
+
filename: string;
|
|
694
|
+
score: number;
|
|
695
|
+
text: string;
|
|
696
|
+
}[] | null | undefined;
|
|
697
|
+
} | {
|
|
698
|
+
type: "mcp_call";
|
|
699
|
+
id: string;
|
|
700
|
+
status: string;
|
|
701
|
+
arguments: string;
|
|
702
|
+
name: string;
|
|
703
|
+
server_label: string;
|
|
704
|
+
output?: string | null | undefined;
|
|
705
|
+
error?: string | {
|
|
706
|
+
[x: string]: unknown;
|
|
707
|
+
type?: string | undefined;
|
|
708
|
+
code?: string | number | undefined;
|
|
709
|
+
message?: string | undefined;
|
|
710
|
+
} | null | undefined;
|
|
711
|
+
approval_request_id?: string | null | undefined;
|
|
712
|
+
} | {
|
|
713
|
+
type: "mcp_list_tools";
|
|
714
|
+
id: string;
|
|
715
|
+
server_label: string;
|
|
716
|
+
tools: {
|
|
717
|
+
name: string;
|
|
718
|
+
input_schema: any;
|
|
719
|
+
description?: string | undefined;
|
|
720
|
+
annotations?: Record<string, unknown> | undefined;
|
|
721
|
+
}[];
|
|
722
|
+
error?: string | {
|
|
723
|
+
[x: string]: unknown;
|
|
724
|
+
type?: string | undefined;
|
|
725
|
+
code?: string | number | undefined;
|
|
726
|
+
message?: string | undefined;
|
|
727
|
+
} | undefined;
|
|
728
|
+
} | {
|
|
729
|
+
type: "mcp_approval_request";
|
|
730
|
+
id: string;
|
|
731
|
+
server_label: string;
|
|
732
|
+
name: string;
|
|
733
|
+
arguments: string;
|
|
734
|
+
approval_request_id?: string | undefined;
|
|
735
|
+
} | {
|
|
736
|
+
type: "apply_patch_call";
|
|
737
|
+
id: string;
|
|
738
|
+
call_id: string;
|
|
739
|
+
status: "in_progress" | "completed";
|
|
740
|
+
operation: {
|
|
741
|
+
type: "create_file";
|
|
742
|
+
path: string;
|
|
743
|
+
diff: string;
|
|
848
744
|
} | {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
execution: "server" | "client";
|
|
852
|
-
call_id: string | null;
|
|
853
|
-
status: "completed" | "in_progress" | "incomplete";
|
|
854
|
-
arguments: unknown;
|
|
745
|
+
type: "delete_file";
|
|
746
|
+
path: string;
|
|
855
747
|
} | {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
748
|
+
type: "update_file";
|
|
749
|
+
path: string;
|
|
750
|
+
diff: string;
|
|
751
|
+
};
|
|
752
|
+
} | {
|
|
753
|
+
type: "shell_call";
|
|
754
|
+
id: string;
|
|
755
|
+
call_id: string;
|
|
756
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
757
|
+
action: {
|
|
758
|
+
commands: string[];
|
|
862
759
|
};
|
|
760
|
+
} | {
|
|
761
|
+
type: "compaction";
|
|
762
|
+
id: string;
|
|
763
|
+
encrypted_content: string;
|
|
764
|
+
} | {
|
|
765
|
+
type: "shell_call_output";
|
|
766
|
+
id: string;
|
|
767
|
+
call_id: string;
|
|
768
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
769
|
+
output: {
|
|
770
|
+
stdout: string;
|
|
771
|
+
stderr: string;
|
|
772
|
+
outcome: {
|
|
773
|
+
type: "timeout";
|
|
774
|
+
} | {
|
|
775
|
+
type: "exit";
|
|
776
|
+
exit_code: number;
|
|
777
|
+
};
|
|
778
|
+
}[];
|
|
779
|
+
} | {
|
|
780
|
+
type: "tool_search_call";
|
|
781
|
+
id: string;
|
|
782
|
+
execution: "client" | "server";
|
|
783
|
+
call_id: string | null;
|
|
784
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
785
|
+
arguments: unknown;
|
|
786
|
+
} | {
|
|
787
|
+
type: "tool_search_output";
|
|
788
|
+
id: string;
|
|
789
|
+
execution: "client" | "server";
|
|
790
|
+
call_id: string | null;
|
|
791
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
792
|
+
tools: Record<string, JSONValue | undefined>[];
|
|
793
|
+
};
|
|
863
794
|
} | {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
795
|
+
type: "response.function_call_arguments.delta";
|
|
796
|
+
item_id: string;
|
|
797
|
+
output_index: number;
|
|
798
|
+
delta: string;
|
|
868
799
|
} | {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
800
|
+
type: "response.function_call_arguments.done";
|
|
801
|
+
item_id: string;
|
|
802
|
+
output_index: number;
|
|
803
|
+
arguments: string;
|
|
873
804
|
} | {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
805
|
+
type: "response.custom_tool_call_input.delta";
|
|
806
|
+
item_id: string;
|
|
807
|
+
output_index: number;
|
|
808
|
+
delta: string;
|
|
878
809
|
} | {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
810
|
+
type: "response.image_generation_call.partial_image";
|
|
811
|
+
item_id: string;
|
|
812
|
+
output_index: number;
|
|
813
|
+
partial_image_b64: string;
|
|
883
814
|
} | {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
815
|
+
type: "response.code_interpreter_call_code.delta";
|
|
816
|
+
item_id: string;
|
|
817
|
+
output_index: number;
|
|
818
|
+
delta: string;
|
|
888
819
|
} | {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
820
|
+
type: "response.code_interpreter_call_code.done";
|
|
821
|
+
item_id: string;
|
|
822
|
+
output_index: number;
|
|
823
|
+
code: string;
|
|
893
824
|
} | {
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
825
|
+
type: "response.output_text.annotation.added";
|
|
826
|
+
annotation: {
|
|
827
|
+
type: "url_citation";
|
|
828
|
+
start_index: number;
|
|
829
|
+
end_index: number;
|
|
830
|
+
url: string;
|
|
831
|
+
title: string;
|
|
832
|
+
} | {
|
|
833
|
+
type: "file_citation";
|
|
834
|
+
file_id: string;
|
|
835
|
+
filename: string;
|
|
836
|
+
index: number;
|
|
837
|
+
} | {
|
|
838
|
+
type: "container_file_citation";
|
|
839
|
+
container_id: string;
|
|
840
|
+
file_id: string;
|
|
841
|
+
filename: string;
|
|
842
|
+
start_index: number;
|
|
843
|
+
end_index: number;
|
|
844
|
+
} | {
|
|
845
|
+
type: "file_path";
|
|
846
|
+
file_id: string;
|
|
847
|
+
index: number;
|
|
848
|
+
};
|
|
849
|
+
} | {
|
|
850
|
+
type: "response.reasoning_summary_part.added";
|
|
851
|
+
item_id: string;
|
|
852
|
+
summary_index: number;
|
|
853
|
+
output_index?: number | null | undefined;
|
|
918
854
|
} | {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
855
|
+
type: "response.reasoning_summary_text.delta";
|
|
856
|
+
item_id: string;
|
|
857
|
+
summary_index: number;
|
|
858
|
+
delta: string;
|
|
859
|
+
output_index?: number | null | undefined;
|
|
923
860
|
} | {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
output_index?: number | null | undefined;
|
|
861
|
+
type: "response.reasoning_summary_part.done";
|
|
862
|
+
item_id: string;
|
|
863
|
+
summary_index: number;
|
|
864
|
+
output_index?: number | null | undefined;
|
|
929
865
|
} | {
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
866
|
+
type: "response.apply_patch_call_operation_diff.delta";
|
|
867
|
+
item_id: string;
|
|
868
|
+
output_index: number;
|
|
869
|
+
delta: string;
|
|
870
|
+
obfuscation?: string | null | undefined;
|
|
934
871
|
} | {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
obfuscation?: string | null | undefined;
|
|
872
|
+
type: "response.apply_patch_call_operation_diff.done";
|
|
873
|
+
item_id: string;
|
|
874
|
+
output_index: number;
|
|
875
|
+
diff: string;
|
|
940
876
|
} | {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
877
|
+
type: "error";
|
|
878
|
+
sequence_number: number;
|
|
879
|
+
error: {
|
|
880
|
+
type: string;
|
|
881
|
+
message: string;
|
|
882
|
+
code?: string | null | undefined;
|
|
883
|
+
param?: string | null | undefined;
|
|
884
|
+
};
|
|
885
|
+
} | {
|
|
886
|
+
type: "error";
|
|
887
|
+
sequence_number: number;
|
|
888
|
+
message: string;
|
|
889
|
+
code?: string | null | undefined;
|
|
890
|
+
param?: string | null | undefined;
|
|
945
891
|
}>;
|
|
946
892
|
type OpenAIResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
|
|
947
893
|
type OpenAIResponsesLogprobs = NonNullable<(OpenAIResponsesChunk & {
|
|
948
|
-
|
|
894
|
+
type: 'response.output_text.delta';
|
|
949
895
|
})['logprobs']> | null;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
* without waiting for its result.
|
|
959
|
-
*/
|
|
960
|
-
async?: boolean;
|
|
961
|
-
/**
|
|
962
|
-
* The output format specification for the tool.
|
|
963
|
-
* Omit for unconstrained text output.
|
|
964
|
-
*/
|
|
965
|
-
format?: {
|
|
966
|
-
type: "grammar";
|
|
967
|
-
syntax: "regex" | "lark";
|
|
968
|
-
definition: string;
|
|
969
|
-
} | {
|
|
970
|
-
type: "text";
|
|
971
|
-
};
|
|
972
|
-
}, {}>;
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* Type definitions for the apply_patch operations.
|
|
976
|
-
*/
|
|
977
|
-
type ApplyPatchOperation = {
|
|
978
|
-
type: 'create_file';
|
|
896
|
+
//#endregion
|
|
897
|
+
//#region src/tool/web-search.d.ts
|
|
898
|
+
declare const webSearchToolFactory: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {
|
|
899
|
+
/**
|
|
900
|
+
* An object describing the specific action taken in this web search call.
|
|
901
|
+
* Includes details on how the model used the web (search, open_page, find_in_page).
|
|
902
|
+
*/
|
|
903
|
+
action?: {
|
|
979
904
|
/**
|
|
980
|
-
*
|
|
905
|
+
* Action type "search" - Performs a web search query.
|
|
981
906
|
*/
|
|
982
|
-
|
|
907
|
+
type: "search";
|
|
983
908
|
/**
|
|
984
|
-
*
|
|
909
|
+
* The search query.
|
|
910
|
+
*
|
|
911
|
+
* @deprecated Use `queries` instead.
|
|
985
912
|
*/
|
|
986
|
-
|
|
987
|
-
} | {
|
|
988
|
-
type: 'delete_file';
|
|
913
|
+
query?: string;
|
|
989
914
|
/**
|
|
990
|
-
*
|
|
915
|
+
* The search queries the model used.
|
|
991
916
|
*/
|
|
992
|
-
|
|
993
|
-
} | {
|
|
994
|
-
type: 'update_file';
|
|
917
|
+
queries?: string[];
|
|
918
|
+
} | {
|
|
995
919
|
/**
|
|
996
|
-
*
|
|
920
|
+
* Action type "openPage" - Opens a specific URL from search results.
|
|
997
921
|
*/
|
|
998
|
-
|
|
922
|
+
type: "openPage";
|
|
999
923
|
/**
|
|
1000
|
-
*
|
|
924
|
+
* The URL opened by the model.
|
|
1001
925
|
*/
|
|
1002
|
-
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
declare const openaiTools: {
|
|
926
|
+
url?: string | null;
|
|
927
|
+
} | {
|
|
1006
928
|
/**
|
|
1007
|
-
*
|
|
1008
|
-
* codebase using structured diffs. Instead of just suggesting edits, the model
|
|
1009
|
-
* emits patch operations that your application applies and then reports back on,
|
|
1010
|
-
* enabling iterative, multi-step code editing workflows.
|
|
1011
|
-
*
|
|
929
|
+
* Action type "findInPage": Searches for a pattern within a loaded page.
|
|
1012
930
|
*/
|
|
1013
|
-
|
|
1014
|
-
callId: string;
|
|
1015
|
-
operation: ApplyPatchOperation;
|
|
1016
|
-
}, {
|
|
1017
|
-
status: "completed" | "failed";
|
|
1018
|
-
output?: string;
|
|
1019
|
-
}, {}, {}>;
|
|
931
|
+
type: "findInPage";
|
|
1020
932
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
* Lark syntax). The model returns a `custom_tool_call` output item whose
|
|
1023
|
-
* `input` field is a string matching the specified grammar.
|
|
1024
|
-
*
|
|
1025
|
-
* @param description - An optional description of the tool.
|
|
1026
|
-
* @param async - Whether the model can continue without waiting for the tool result.
|
|
1027
|
-
* @param format - The output format constraint (grammar type, syntax, and definition).
|
|
933
|
+
* The URL of the page searched for the pattern.
|
|
1028
934
|
*/
|
|
1029
|
-
|
|
935
|
+
url?: string | null;
|
|
1030
936
|
/**
|
|
1031
|
-
* The
|
|
1032
|
-
* sandboxed environment to solve complex problems in domains like data analysis,
|
|
1033
|
-
* coding, and math.
|
|
1034
|
-
*
|
|
1035
|
-
* @param container - The container to use for the code interpreter.
|
|
937
|
+
* The pattern or text to search for within the page.
|
|
1036
938
|
*/
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
939
|
+
pattern?: string | null;
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* Optional sources cited by the model for the web search call.
|
|
943
|
+
*/
|
|
944
|
+
sources?: Array<{
|
|
945
|
+
type: "url";
|
|
946
|
+
url: string;
|
|
947
|
+
} | {
|
|
948
|
+
type: "api";
|
|
949
|
+
name: string;
|
|
950
|
+
}>;
|
|
951
|
+
}, {
|
|
952
|
+
/**
|
|
953
|
+
* Whether to use external web access for fetching live content.
|
|
954
|
+
* - true: Fetch live web content (default)
|
|
955
|
+
* - false: Use cached/indexed results
|
|
956
|
+
*/
|
|
957
|
+
externalWebAccess?: boolean;
|
|
958
|
+
/**
|
|
959
|
+
* Filters for the search.
|
|
960
|
+
*/
|
|
961
|
+
filters?: {
|
|
1053
962
|
/**
|
|
1054
|
-
*
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
* WARNING: Run computer use in an isolated environment, treat on-screen
|
|
1059
|
-
* content as untrusted, and require confirmation for consequential actions.
|
|
963
|
+
* Allowed domains for the search.
|
|
964
|
+
* If not provided, all domains are allowed.
|
|
965
|
+
* Subdomains of the provided domains are allowed as well.
|
|
966
|
+
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
1060
967
|
*/
|
|
1061
|
-
|
|
1062
|
-
actions: OpenAIComputerAction[];
|
|
1063
|
-
pendingSafetyChecks: OpenAIComputerSafetyCheck[];
|
|
1064
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1065
|
-
}, {
|
|
1066
|
-
output: {
|
|
1067
|
-
type: "computer_screenshot";
|
|
1068
|
-
imageUrl: string;
|
|
1069
|
-
fileId?: string;
|
|
1070
|
-
detail?: "auto" | "low" | "high" | "original";
|
|
1071
|
-
} | {
|
|
1072
|
-
type: "computer_screenshot";
|
|
1073
|
-
fileId: string;
|
|
1074
|
-
imageUrl?: string;
|
|
1075
|
-
detail?: "auto" | "low" | "high" | "original";
|
|
1076
|
-
};
|
|
1077
|
-
acknowledgedSafetyChecks?: OpenAIComputerSafetyCheck[];
|
|
1078
|
-
}, {}, {}>>[0]) => _ai_sdk_provider_utils.ProviderDefinedTool<{
|
|
1079
|
-
actions: OpenAIComputerAction[];
|
|
1080
|
-
pendingSafetyChecks: OpenAIComputerSafetyCheck[];
|
|
1081
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1082
|
-
}, {
|
|
1083
|
-
output: {
|
|
1084
|
-
type: "computer_screenshot";
|
|
1085
|
-
imageUrl: string;
|
|
1086
|
-
fileId?: string;
|
|
1087
|
-
detail?: "auto" | "low" | "high" | "original";
|
|
1088
|
-
} | {
|
|
1089
|
-
type: "computer_screenshot";
|
|
1090
|
-
fileId: string;
|
|
1091
|
-
imageUrl?: string;
|
|
1092
|
-
detail?: "auto" | "low" | "high" | "original";
|
|
1093
|
-
};
|
|
1094
|
-
acknowledgedSafetyChecks?: OpenAIComputerSafetyCheck[];
|
|
1095
|
-
}, {}>;
|
|
968
|
+
allowedDomains?: string[];
|
|
1096
969
|
/**
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1100
|
-
*
|
|
1101
|
-
* @param vectorStoreIds - The vector store IDs to use for the file search.
|
|
1102
|
-
* @param maxNumResults - The maximum number of results to return.
|
|
1103
|
-
* @param ranking - The ranking options to use for the file search.
|
|
1104
|
-
* @param filters - The filters to use for the file search.
|
|
970
|
+
* Blocked domains for the search.
|
|
971
|
+
* Subdomains of the provided domains are blocked as well.
|
|
972
|
+
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
1105
973
|
*/
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
ranker?: string;
|
|
1120
|
-
scoreThreshold?: number;
|
|
1121
|
-
};
|
|
1122
|
-
filters?: OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter;
|
|
1123
|
-
}, {}>;
|
|
974
|
+
blockedDomains?: string[];
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* Search context size to use for the web search.
|
|
978
|
+
* - high: Most comprehensive context, highest cost, slower response
|
|
979
|
+
* - medium: Balanced context, cost, and latency (default)
|
|
980
|
+
* - low: Least context, lowest cost, fastest response
|
|
981
|
+
*/
|
|
982
|
+
searchContextSize?: "low" | "medium" | "high";
|
|
983
|
+
/**
|
|
984
|
+
* User location information to provide geographically relevant search results.
|
|
985
|
+
*/
|
|
986
|
+
userLocation?: {
|
|
1124
987
|
/**
|
|
1125
|
-
*
|
|
1126
|
-
* and optionally image inputs. It leverages the GPT Image model,
|
|
1127
|
-
* and automatically optimizes text inputs for improved performance.
|
|
1128
|
-
*
|
|
1129
|
-
* @param background - Background type for the generated image. One of 'auto', 'opaque', or 'transparent'.
|
|
1130
|
-
* @param inputFidelity - Input fidelity for the generated image. One of 'low' or 'high'.
|
|
1131
|
-
* @param inputImageMask - Optional mask for inpainting. Contains fileId and/or imageUrl.
|
|
1132
|
-
* @param model - The image generation model to use. Default: gpt-image-1.
|
|
1133
|
-
* @param moderation - Moderation level for the generated image. Default: 'auto'.
|
|
1134
|
-
* @param outputCompression - Compression level for the output image (0-100).
|
|
1135
|
-
* @param outputFormat - The output format of the generated image. One of 'png', 'jpeg', or 'webp'.
|
|
1136
|
-
* @param partialImages - Number of partial images to generate in streaming mode (0-3).
|
|
1137
|
-
* @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', 'high', 'xhigh', or 'max'. 'xhigh' and 'max' require a GPT Image 2.5 model.
|
|
1138
|
-
* @param size - The size of the generated image. One of 'auto', '1024x1024', '1024x1536', or '1536x1024'.
|
|
988
|
+
* Type of location (always 'approximate')
|
|
1139
989
|
*/
|
|
1140
|
-
|
|
1141
|
-
action?: "generate" | "edit" | "auto";
|
|
1142
|
-
background?: "auto" | "opaque" | "transparent";
|
|
1143
|
-
inputFidelity?: "low" | "high";
|
|
1144
|
-
inputImageMask?: {
|
|
1145
|
-
fileId?: string;
|
|
1146
|
-
imageUrl?: string;
|
|
1147
|
-
};
|
|
1148
|
-
model?: string;
|
|
1149
|
-
moderation?: "auto" | "low";
|
|
1150
|
-
outputCompression?: number;
|
|
1151
|
-
outputFormat?: "png" | "jpeg" | "webp";
|
|
1152
|
-
partialImages?: number;
|
|
1153
|
-
quality?: "auto" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
1154
|
-
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024" | (string & {});
|
|
1155
|
-
}) => _ai_sdk_provider_utils.ProviderExecutedTool<{}, {
|
|
1156
|
-
result: string;
|
|
1157
|
-
}, {}>;
|
|
990
|
+
type: "approximate";
|
|
1158
991
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* on a machine you or the user provides.
|
|
1161
|
-
*
|
|
1162
|
-
* Supported models: `gpt-5-codex`
|
|
992
|
+
* Two-letter ISO country code (e.g., 'US', 'GB')
|
|
1163
993
|
*/
|
|
1164
|
-
|
|
1165
|
-
action: {
|
|
1166
|
-
type: "exec";
|
|
1167
|
-
command: string[];
|
|
1168
|
-
timeoutMs?: number;
|
|
1169
|
-
user?: string;
|
|
1170
|
-
workingDirectory?: string;
|
|
1171
|
-
env?: Record<string, string>;
|
|
1172
|
-
};
|
|
1173
|
-
}, {
|
|
1174
|
-
output: string;
|
|
1175
|
-
}, {}, {}>;
|
|
994
|
+
country?: string;
|
|
1176
995
|
/**
|
|
1177
|
-
*
|
|
1178
|
-
* a controlled command-line interface. The model proposes shell commands; your
|
|
1179
|
-
* integration executes them and returns the outputs.
|
|
1180
|
-
*
|
|
1181
|
-
* Available through the Responses API for use with GPT-5.1.
|
|
1182
|
-
*
|
|
1183
|
-
* WARNING: Running arbitrary shell commands can be dangerous. Always sandbox
|
|
1184
|
-
* execution or add strict allow-/deny-lists before forwarding a command to
|
|
1185
|
-
* the system shell.
|
|
996
|
+
* City name (free text, e.g., 'Minneapolis')
|
|
1186
997
|
*/
|
|
1187
|
-
|
|
1188
|
-
action: {
|
|
1189
|
-
commands: string[];
|
|
1190
|
-
timeoutMs?: number;
|
|
1191
|
-
maxOutputLength?: number;
|
|
1192
|
-
};
|
|
1193
|
-
}, {
|
|
1194
|
-
output: Array<{
|
|
1195
|
-
stdout: string;
|
|
1196
|
-
stderr: string;
|
|
1197
|
-
outcome: {
|
|
1198
|
-
type: "timeout";
|
|
1199
|
-
} | {
|
|
1200
|
-
type: "exit";
|
|
1201
|
-
exitCode: number;
|
|
1202
|
-
};
|
|
1203
|
-
}>;
|
|
1204
|
-
}, {
|
|
1205
|
-
environment?: {
|
|
1206
|
-
type: "containerAuto";
|
|
1207
|
-
fileIds?: string[];
|
|
1208
|
-
memoryLimit?: "1g" | "4g" | "16g" | "64g";
|
|
1209
|
-
networkPolicy?: {
|
|
1210
|
-
type: "disabled";
|
|
1211
|
-
} | {
|
|
1212
|
-
type: "allowlist";
|
|
1213
|
-
allowedDomains: string[];
|
|
1214
|
-
domainSecrets?: Array<{
|
|
1215
|
-
domain: string;
|
|
1216
|
-
name: string;
|
|
1217
|
-
value: string;
|
|
1218
|
-
}>;
|
|
1219
|
-
};
|
|
1220
|
-
skills?: Array<{
|
|
1221
|
-
type: "skillReference";
|
|
1222
|
-
providerReference: _ai_sdk_provider.SharedV4ProviderReference;
|
|
1223
|
-
version?: string;
|
|
1224
|
-
} | {
|
|
1225
|
-
type: "inline";
|
|
1226
|
-
name: string;
|
|
1227
|
-
description: string;
|
|
1228
|
-
source: {
|
|
1229
|
-
type: "base64";
|
|
1230
|
-
mediaType: "application/zip";
|
|
1231
|
-
data: string;
|
|
1232
|
-
};
|
|
1233
|
-
}>;
|
|
1234
|
-
} | {
|
|
1235
|
-
type: "containerReference";
|
|
1236
|
-
containerId: string;
|
|
1237
|
-
} | {
|
|
1238
|
-
type?: "local";
|
|
1239
|
-
skills?: Array<{
|
|
1240
|
-
name: string;
|
|
1241
|
-
description: string;
|
|
1242
|
-
path: string;
|
|
1243
|
-
}>;
|
|
1244
|
-
};
|
|
1245
|
-
}, {}>;
|
|
998
|
+
city?: string;
|
|
1246
999
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
* and provide answers with sourced citations.
|
|
1249
|
-
*
|
|
1250
|
-
* @param searchContextSize - The search context size to use for the web search.
|
|
1251
|
-
* @param userLocation - The user location to use for the web search.
|
|
1000
|
+
* Region name (free text, e.g., 'Minnesota')
|
|
1252
1001
|
*/
|
|
1253
|
-
|
|
1254
|
-
action?: {
|
|
1255
|
-
type: "search";
|
|
1256
|
-
query?: string;
|
|
1257
|
-
} | {
|
|
1258
|
-
type: "openPage";
|
|
1259
|
-
url?: string | null;
|
|
1260
|
-
} | {
|
|
1261
|
-
type: "findInPage";
|
|
1262
|
-
url?: string | null;
|
|
1263
|
-
pattern?: string | null;
|
|
1264
|
-
};
|
|
1265
|
-
}, {
|
|
1266
|
-
searchContextSize?: "low" | "medium" | "high";
|
|
1267
|
-
userLocation?: {
|
|
1268
|
-
type: "approximate";
|
|
1269
|
-
country?: string;
|
|
1270
|
-
city?: string;
|
|
1271
|
-
region?: string;
|
|
1272
|
-
timezone?: string;
|
|
1273
|
-
};
|
|
1274
|
-
}, {}>;
|
|
1002
|
+
region?: string;
|
|
1275
1003
|
/**
|
|
1276
|
-
*
|
|
1277
|
-
* and provide answers with sourced citations.
|
|
1278
|
-
*
|
|
1279
|
-
* @param filters - The filters to use for the web search.
|
|
1280
|
-
* @param searchContextSize - The search context size to use for the web search.
|
|
1281
|
-
* @param userLocation - The user location to use for the web search.
|
|
1004
|
+
* IANA timezone (e.g., 'America/Chicago')
|
|
1282
1005
|
*/
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1006
|
+
timezone?: string;
|
|
1007
|
+
};
|
|
1008
|
+
}, {}>;
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region src/openai-tools.d.ts
|
|
1011
|
+
declare const openaiTools: {
|
|
1012
|
+
/**
|
|
1013
|
+
* The apply_patch tool lets GPT-5.1 create, update, and delete files in your
|
|
1014
|
+
* codebase using structured diffs. Instead of just suggesting edits, the model
|
|
1015
|
+
* emits patch operations that your application applies and then reports back on,
|
|
1016
|
+
* enabling iterative, multi-step code editing workflows.
|
|
1017
|
+
*
|
|
1018
|
+
*/
|
|
1019
|
+
applyPatch: import("@ai-sdk/provider-utils").ProviderDefinedToolFactoryWithOutputSchema<{
|
|
1020
|
+
callId: string;
|
|
1021
|
+
operation: ApplyPatchOperation;
|
|
1022
|
+
}, {
|
|
1023
|
+
status: "completed" | "failed";
|
|
1024
|
+
output?: string;
|
|
1025
|
+
}, {}, {}>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Custom tools let callers constrain model output to a grammar (regex or
|
|
1028
|
+
* Lark syntax). The model returns a `custom_tool_call` output item whose
|
|
1029
|
+
* `input` field is a string matching the specified grammar.
|
|
1030
|
+
*
|
|
1031
|
+
* @param description - An optional description of the tool.
|
|
1032
|
+
* @param async - Whether the model can continue without waiting for the tool result.
|
|
1033
|
+
* @param format - The output format constraint (grammar type, syntax, and definition).
|
|
1034
|
+
*/
|
|
1035
|
+
customTool: (args: Parameters<typeof customToolFactory>[0]) => import("@ai-sdk/provider-utils").ProviderDefinedTool<string, unknown, {}>;
|
|
1036
|
+
/**
|
|
1037
|
+
* The Code Interpreter tool allows models to write and run Python code in a
|
|
1038
|
+
* sandboxed environment to solve complex problems in domains like data analysis,
|
|
1039
|
+
* coding, and math.
|
|
1040
|
+
*
|
|
1041
|
+
* @param container - The container to use for the code interpreter.
|
|
1042
|
+
*/
|
|
1043
|
+
codeInterpreter: (args?: {
|
|
1044
|
+
container?: string | {
|
|
1045
|
+
fileIds?: string[];
|
|
1046
|
+
};
|
|
1047
|
+
}) => import("@ai-sdk/provider-utils").ProviderExecutedTool<{
|
|
1048
|
+
code?: string | null;
|
|
1049
|
+
containerId: string;
|
|
1050
|
+
}, {
|
|
1051
|
+
outputs?: Array<{
|
|
1052
|
+
type: "logs";
|
|
1053
|
+
logs: string;
|
|
1054
|
+
} | {
|
|
1055
|
+
type: "image";
|
|
1056
|
+
url: string;
|
|
1057
|
+
}> | null;
|
|
1058
|
+
}, {}>;
|
|
1059
|
+
/**
|
|
1060
|
+
* The computer tool allows models to operate a browser or desktop through
|
|
1061
|
+
* batched UI actions. Your application executes the actions and returns an
|
|
1062
|
+
* updated screenshot.
|
|
1063
|
+
*
|
|
1064
|
+
* WARNING: Run computer use in an isolated environment, treat on-screen
|
|
1065
|
+
* content as untrusted, and require confirmation for consequential actions.
|
|
1066
|
+
*/
|
|
1067
|
+
computer: (options?: Parameters<import("@ai-sdk/provider-utils").ProviderDefinedToolFactoryWithOutputSchema<{
|
|
1068
|
+
actions: OpenAIComputerAction[];
|
|
1069
|
+
pendingSafetyChecks: OpenAIComputerSafetyCheck[];
|
|
1070
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1071
|
+
}, {
|
|
1072
|
+
output: {
|
|
1073
|
+
type: "computer_screenshot";
|
|
1074
|
+
imageUrl: string;
|
|
1075
|
+
fileId?: string;
|
|
1076
|
+
detail?: "auto" | "low" | "high" | "original";
|
|
1077
|
+
} | {
|
|
1078
|
+
type: "computer_screenshot";
|
|
1079
|
+
fileId: string;
|
|
1080
|
+
imageUrl?: string;
|
|
1081
|
+
detail?: "auto" | "low" | "high" | "original";
|
|
1082
|
+
};
|
|
1083
|
+
acknowledgedSafetyChecks?: OpenAIComputerSafetyCheck[];
|
|
1084
|
+
}, {}, {}>>[0]) => import("@ai-sdk/provider-utils").ProviderDefinedTool<{
|
|
1085
|
+
actions: OpenAIComputerAction[];
|
|
1086
|
+
pendingSafetyChecks: OpenAIComputerSafetyCheck[];
|
|
1087
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1088
|
+
}, {
|
|
1089
|
+
output: {
|
|
1090
|
+
type: "computer_screenshot";
|
|
1091
|
+
imageUrl: string;
|
|
1092
|
+
fileId?: string;
|
|
1093
|
+
detail?: "auto" | "low" | "high" | "original";
|
|
1094
|
+
} | {
|
|
1095
|
+
type: "computer_screenshot";
|
|
1096
|
+
fileId: string;
|
|
1097
|
+
imageUrl?: string;
|
|
1098
|
+
detail?: "auto" | "low" | "high" | "original";
|
|
1099
|
+
};
|
|
1100
|
+
acknowledgedSafetyChecks?: OpenAIComputerSafetyCheck[];
|
|
1101
|
+
}, {}>;
|
|
1102
|
+
/**
|
|
1103
|
+
* File search is a tool available in the Responses API. It enables models to
|
|
1104
|
+
* retrieve information in a knowledge base of previously uploaded files through
|
|
1105
|
+
* semantic and keyword search.
|
|
1106
|
+
*
|
|
1107
|
+
* @param vectorStoreIds - The vector store IDs to use for the file search.
|
|
1108
|
+
* @param maxNumResults - The maximum number of results to return.
|
|
1109
|
+
* @param ranking - The ranking options to use for the file search.
|
|
1110
|
+
* @param filters - The filters to use for the file search.
|
|
1111
|
+
*/
|
|
1112
|
+
fileSearch: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {
|
|
1113
|
+
queries: string[];
|
|
1114
|
+
results: null | {
|
|
1115
|
+
attributes: Record<string, unknown>;
|
|
1116
|
+
fileId: string;
|
|
1117
|
+
filename: string;
|
|
1118
|
+
score: number;
|
|
1119
|
+
text: string;
|
|
1120
|
+
}[];
|
|
1121
|
+
}, {
|
|
1122
|
+
vectorStoreIds: string[];
|
|
1123
|
+
maxNumResults?: number;
|
|
1124
|
+
ranking?: {
|
|
1125
|
+
ranker?: string;
|
|
1126
|
+
scoreThreshold?: number;
|
|
1127
|
+
};
|
|
1128
|
+
filters?: OpenAIResponsesFileSearchToolComparisonFilter | OpenAIResponsesFileSearchToolCompoundFilter;
|
|
1129
|
+
}, {}>;
|
|
1130
|
+
/**
|
|
1131
|
+
* The image generation tool allows you to generate images using a text prompt,
|
|
1132
|
+
* and optionally image inputs. It leverages the GPT Image model,
|
|
1133
|
+
* and automatically optimizes text inputs for improved performance.
|
|
1134
|
+
*
|
|
1135
|
+
* @param background - Background type for the generated image. One of 'auto', 'opaque', or 'transparent'.
|
|
1136
|
+
* @param inputFidelity - Input fidelity for the generated image. One of 'low' or 'high'.
|
|
1137
|
+
* @param inputImageMask - Optional mask for inpainting. Contains fileId and/or imageUrl.
|
|
1138
|
+
* @param model - The image generation model to use. Default: gpt-image-1.
|
|
1139
|
+
* @param moderation - Moderation level for the generated image. Default: 'auto'.
|
|
1140
|
+
* @param outputCompression - Compression level for the output image (0-100).
|
|
1141
|
+
* @param outputFormat - The output format of the generated image. One of 'png', 'jpeg', or 'webp'.
|
|
1142
|
+
* @param partialImages - Number of partial images to generate in streaming mode (0-3).
|
|
1143
|
+
* @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', 'high', 'xhigh', or 'max'. 'xhigh' and 'max' require a GPT Image 2.5 model.
|
|
1144
|
+
* @param size - The size of the generated image. One of 'auto', '1024x1024', '1024x1536', or '1536x1024'.
|
|
1145
|
+
*/
|
|
1146
|
+
imageGeneration: (args?: {
|
|
1147
|
+
action?: "generate" | "edit" | "auto";
|
|
1148
|
+
background?: "auto" | "opaque" | "transparent";
|
|
1149
|
+
inputFidelity?: "low" | "high";
|
|
1150
|
+
inputImageMask?: {
|
|
1151
|
+
fileId?: string;
|
|
1152
|
+
imageUrl?: string;
|
|
1153
|
+
};
|
|
1154
|
+
model?: string;
|
|
1155
|
+
moderation?: "auto" | "low";
|
|
1156
|
+
outputCompression?: number;
|
|
1157
|
+
outputFormat?: "png" | "jpeg" | "webp";
|
|
1158
|
+
partialImages?: number;
|
|
1159
|
+
quality?: "auto" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
1160
|
+
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024" | (string & {});
|
|
1161
|
+
}) => import("@ai-sdk/provider-utils").ProviderExecutedTool<{}, {
|
|
1162
|
+
result: string;
|
|
1163
|
+
}, {}>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Local shell is a tool that allows agents to run shell commands locally
|
|
1166
|
+
* on a machine you or the user provides.
|
|
1167
|
+
*
|
|
1168
|
+
* Supported models: `gpt-5-codex`
|
|
1169
|
+
*/
|
|
1170
|
+
localShell: import("@ai-sdk/provider-utils").ProviderDefinedToolFactoryWithOutputSchema<{
|
|
1171
|
+
action: {
|
|
1172
|
+
type: "exec";
|
|
1173
|
+
command: string[];
|
|
1174
|
+
timeoutMs?: number;
|
|
1175
|
+
user?: string;
|
|
1176
|
+
workingDirectory?: string;
|
|
1177
|
+
env?: Record<string, string>;
|
|
1178
|
+
};
|
|
1179
|
+
}, {
|
|
1180
|
+
output: string;
|
|
1181
|
+
}, {}, {}>;
|
|
1182
|
+
/**
|
|
1183
|
+
* The shell tool allows the model to interact with your local computer through
|
|
1184
|
+
* a controlled command-line interface. The model proposes shell commands; your
|
|
1185
|
+
* integration executes them and returns the outputs.
|
|
1186
|
+
*
|
|
1187
|
+
* Available through the Responses API for use with GPT-5.1.
|
|
1188
|
+
*
|
|
1189
|
+
* WARNING: Running arbitrary shell commands can be dangerous. Always sandbox
|
|
1190
|
+
* execution or add strict allow-/deny-lists before forwarding a command to
|
|
1191
|
+
* the system shell.
|
|
1192
|
+
*/
|
|
1193
|
+
shell: import("@ai-sdk/provider-utils").ProviderDefinedToolFactoryWithOutputSchema<{
|
|
1194
|
+
action: {
|
|
1195
|
+
commands: string[];
|
|
1196
|
+
timeoutMs?: number;
|
|
1197
|
+
maxOutputLength?: number;
|
|
1198
|
+
};
|
|
1199
|
+
}, {
|
|
1200
|
+
output: Array<{
|
|
1201
|
+
stdout: string;
|
|
1202
|
+
stderr: string;
|
|
1203
|
+
outcome: {
|
|
1204
|
+
type: "timeout";
|
|
1205
|
+
} | {
|
|
1206
|
+
type: "exit";
|
|
1207
|
+
exitCode: number;
|
|
1208
|
+
};
|
|
1209
|
+
}>;
|
|
1210
|
+
}, {
|
|
1211
|
+
environment?: {
|
|
1212
|
+
type: "containerAuto";
|
|
1213
|
+
fileIds?: string[];
|
|
1214
|
+
memoryLimit?: "1g" | "4g" | "16g" | "64g";
|
|
1215
|
+
networkPolicy?: {
|
|
1216
|
+
type: "disabled";
|
|
1217
|
+
} | {
|
|
1218
|
+
type: "allowlist";
|
|
1219
|
+
allowedDomains: string[];
|
|
1220
|
+
domainSecrets?: Array<{
|
|
1221
|
+
domain: string;
|
|
1222
|
+
name: string;
|
|
1223
|
+
value: string;
|
|
1302
1224
|
}>;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
*/
|
|
1317
|
-
mcp: (args: {
|
|
1318
|
-
serverLabel: string;
|
|
1319
|
-
allowedTools?: string[] | {
|
|
1320
|
-
readOnly?: boolean;
|
|
1321
|
-
toolNames?: string[];
|
|
1322
|
-
};
|
|
1323
|
-
authorization?: string;
|
|
1324
|
-
connectorId?: string;
|
|
1325
|
-
headers?: Record<string, string>;
|
|
1326
|
-
requireApproval?: "always" | "never" | {
|
|
1327
|
-
never?: {
|
|
1328
|
-
toolNames?: string[];
|
|
1329
|
-
};
|
|
1225
|
+
};
|
|
1226
|
+
skills?: Array<{
|
|
1227
|
+
type: "skillReference";
|
|
1228
|
+
providerReference: import("@ai-sdk/provider").SharedV4ProviderReference;
|
|
1229
|
+
version?: string;
|
|
1230
|
+
} | {
|
|
1231
|
+
type: "inline";
|
|
1232
|
+
name: string;
|
|
1233
|
+
description: string;
|
|
1234
|
+
source: {
|
|
1235
|
+
type: "base64";
|
|
1236
|
+
mediaType: "application/zip";
|
|
1237
|
+
data: string;
|
|
1330
1238
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1239
|
+
}>;
|
|
1240
|
+
} | {
|
|
1241
|
+
type: "containerReference";
|
|
1242
|
+
containerId: string;
|
|
1243
|
+
} | {
|
|
1244
|
+
type?: "local";
|
|
1245
|
+
skills?: Array<{
|
|
1336
1246
|
name: string;
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1247
|
+
description: string;
|
|
1248
|
+
path: string;
|
|
1249
|
+
}>;
|
|
1250
|
+
};
|
|
1251
|
+
}, {}>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Web search allows models to access up-to-date information from the internet
|
|
1254
|
+
* and provide answers with sourced citations.
|
|
1255
|
+
*
|
|
1256
|
+
* @param searchContextSize - The search context size to use for the web search.
|
|
1257
|
+
* @param userLocation - The user location to use for the web search.
|
|
1258
|
+
*/
|
|
1259
|
+
webSearchPreview: import("@ai-sdk/provider-utils").ProviderExecutedToolFactory<{}, {
|
|
1260
|
+
action?: {
|
|
1261
|
+
type: "search";
|
|
1262
|
+
query?: string;
|
|
1263
|
+
} | {
|
|
1264
|
+
type: "openPage";
|
|
1265
|
+
url?: string | null;
|
|
1266
|
+
} | {
|
|
1267
|
+
type: "findInPage";
|
|
1268
|
+
url?: string | null;
|
|
1269
|
+
pattern?: string | null;
|
|
1270
|
+
};
|
|
1271
|
+
}, {
|
|
1272
|
+
searchContextSize?: "low" | "medium" | "high";
|
|
1273
|
+
userLocation?: {
|
|
1274
|
+
type: "approximate";
|
|
1275
|
+
country?: string;
|
|
1276
|
+
city?: string;
|
|
1277
|
+
region?: string;
|
|
1278
|
+
timezone?: string;
|
|
1279
|
+
};
|
|
1280
|
+
}, {}>;
|
|
1281
|
+
/**
|
|
1282
|
+
* Web search allows models to access up-to-date information from the internet
|
|
1283
|
+
* and provide answers with sourced citations.
|
|
1284
|
+
*
|
|
1285
|
+
* @param filters - The filters to use for the web search.
|
|
1286
|
+
* @param searchContextSize - The search context size to use for the web search.
|
|
1287
|
+
* @param userLocation - The user location to use for the web search.
|
|
1288
|
+
*/
|
|
1289
|
+
webSearch: (args?: Parameters<typeof webSearchToolFactory>[0]) => import("@ai-sdk/provider-utils").ProviderExecutedTool<{}, {
|
|
1290
|
+
action?: {
|
|
1291
|
+
type: "search";
|
|
1292
|
+
query?: string;
|
|
1293
|
+
queries?: string[];
|
|
1294
|
+
} | {
|
|
1295
|
+
type: "openPage";
|
|
1296
|
+
url?: string | null;
|
|
1297
|
+
} | {
|
|
1298
|
+
type: "findInPage";
|
|
1299
|
+
url?: string | null;
|
|
1300
|
+
pattern?: string | null;
|
|
1301
|
+
};
|
|
1302
|
+
sources?: Array<{
|
|
1303
|
+
type: "url";
|
|
1304
|
+
url: string;
|
|
1305
|
+
} | {
|
|
1306
|
+
type: "api";
|
|
1307
|
+
name: string;
|
|
1308
|
+
}>;
|
|
1309
|
+
}, {}>;
|
|
1310
|
+
/**
|
|
1311
|
+
* MCP (Model Context Protocol) allows models to call tools exposed by
|
|
1312
|
+
* remote MCP servers or service connectors.
|
|
1313
|
+
*
|
|
1314
|
+
* @param serverLabel - Label to identify the MCP server.
|
|
1315
|
+
* @param allowedTools - Allowed tool names or filter object.
|
|
1316
|
+
* @param authorization - OAuth access token for the MCP server/connector.
|
|
1317
|
+
* @param connectorId - Identifier for a service connector.
|
|
1318
|
+
* @param headers - Optional headers to include in MCP requests.
|
|
1319
|
+
* // param requireApproval - Approval policy ('always'|'never'|filter object). (Removed - always 'never')
|
|
1320
|
+
* @param serverDescription - Optional description of the server.
|
|
1321
|
+
* @param serverUrl - URL for the MCP server.
|
|
1322
|
+
*/
|
|
1323
|
+
mcp: (args: {
|
|
1324
|
+
serverLabel: string;
|
|
1325
|
+
allowedTools?: string[] | {
|
|
1326
|
+
readOnly?: boolean;
|
|
1327
|
+
toolNames?: string[];
|
|
1328
|
+
};
|
|
1329
|
+
authorization?: string;
|
|
1330
|
+
connectorId?: string;
|
|
1331
|
+
headers?: Record<string, string>;
|
|
1332
|
+
requireApproval?: "always" | "never" | {
|
|
1333
|
+
never?: {
|
|
1334
|
+
toolNames?: string[];
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
serverDescription?: string;
|
|
1338
|
+
serverUrl?: string;
|
|
1339
|
+
}) => import("@ai-sdk/provider-utils").ProviderExecutedTool<{}, {
|
|
1340
|
+
type: "call";
|
|
1341
|
+
serverLabel: string;
|
|
1342
|
+
name: string;
|
|
1343
|
+
arguments: string;
|
|
1344
|
+
output?: string | null;
|
|
1345
|
+
error?: import("@ai-sdk/provider").JSONValue;
|
|
1346
|
+
}, {}>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Programmatic Tool Calling lets OpenAI Responses models write and execute
|
|
1349
|
+
* JavaScript that orchestrates eligible tools.
|
|
1350
|
+
*/
|
|
1351
|
+
programmaticToolCalling: () => import("@ai-sdk/provider-utils").Experimental_ToolCallerTool<import("@ai-sdk/provider-utils").ProviderExecutedTool<{
|
|
1352
|
+
code: string;
|
|
1353
|
+
fingerprint: string;
|
|
1354
|
+
}, {
|
|
1355
|
+
result: string;
|
|
1356
|
+
status: "completed" | "incomplete";
|
|
1357
|
+
}, {}>>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Tool search allows the model to dynamically search for and load deferred
|
|
1360
|
+
* tools into the model's context as needed. This helps reduce overall token
|
|
1361
|
+
* usage, cost, and latency by only loading tools when the model needs them.
|
|
1362
|
+
*
|
|
1363
|
+
* To use tool search, mark functions or namespaces with `defer_loading: true`
|
|
1364
|
+
* in the tools array. The model will use tool search to load these tools
|
|
1365
|
+
* when it determines they are needed.
|
|
1366
|
+
*/
|
|
1367
|
+
toolSearch: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderDefinedToolFactoryWithOutputSchema<{
|
|
1368
|
+
arguments?: unknown;
|
|
1369
|
+
call_id?: string | null;
|
|
1370
|
+
}, {
|
|
1371
|
+
tools: Array<import("@ai-sdk/provider").JSONObject>;
|
|
1372
|
+
}, {
|
|
1373
|
+
execution?: "server" | "client";
|
|
1374
|
+
description?: string;
|
|
1375
|
+
parameters?: Record<string, unknown>;
|
|
1376
|
+
}, {}>>[0]) => import("@ai-sdk/provider-utils").ProviderDefinedTool<{
|
|
1377
|
+
arguments?: unknown;
|
|
1378
|
+
call_id?: string | null;
|
|
1379
|
+
}, {
|
|
1380
|
+
tools: Array<import("@ai-sdk/provider").JSONObject>;
|
|
1381
|
+
}, {}>;
|
|
1376
1382
|
};
|
|
1377
|
-
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region src/live/openai-realtime-model-live-options.d.ts
|
|
1378
1385
|
type OpenAIRealtimeModelLiveId = 'gpt-live-1' | (string & {});
|
|
1379
1386
|
declare const openaiRealtimeModelLiveOptionsSchema: z.ZodObject<{
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1387
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
1388
|
+
dataChannel: z.ZodObject<{
|
|
1389
|
+
allowedClientEvents: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
1390
|
+
allowedServerEvents: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodObject<{
|
|
1391
|
+
type: z.ZodString;
|
|
1392
|
+
responseEvent: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
}, z.core.$strict>>]>>;
|
|
1394
|
+
}, z.core.$strict>;
|
|
1395
|
+
}, z.core.$strict>>;
|
|
1396
|
+
delegation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1397
|
+
type: z.ZodLiteral<"client">;
|
|
1398
|
+
}, z.core.$strict>>>;
|
|
1399
|
+
input: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1400
|
+
type: z.ZodLiteral<"message">;
|
|
1401
|
+
role: z.ZodEnum<{
|
|
1402
|
+
developer: "developer";
|
|
1403
|
+
user: "user";
|
|
1404
|
+
}>;
|
|
1405
|
+
content: z.ZodTuple<[z.ZodObject<{
|
|
1406
|
+
type: z.ZodLiteral<"input_text">;
|
|
1407
|
+
text: z.ZodString;
|
|
1408
|
+
}, z.core.$strict>], null>;
|
|
1409
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1410
|
+
type: z.ZodLiteral<"message">;
|
|
1411
|
+
role: z.ZodLiteral<"assistant">;
|
|
1412
|
+
content: z.ZodTuple<[z.ZodObject<{
|
|
1413
|
+
type: z.ZodEnum<{
|
|
1414
|
+
text: "text";
|
|
1415
|
+
output_text: "output_text";
|
|
1416
|
+
}>;
|
|
1417
|
+
text: z.ZodString;
|
|
1418
|
+
}, z.core.$strict>], null>;
|
|
1419
|
+
}, z.core.$strict>]>>>;
|
|
1420
|
+
store: z.ZodOptional<z.ZodBoolean>;
|
|
1421
|
+
voice: z.ZodOptional<z.ZodObject<{
|
|
1422
|
+
id: z.ZodString;
|
|
1423
|
+
}, z.core.$strict>>;
|
|
1417
1424
|
}, z.core.$strict>;
|
|
1418
1425
|
/** Experimental Live options under sessionConfig.providerOptions.openai. */
|
|
1419
1426
|
type OpenAIRealtimeModelLiveOptions = z.infer<typeof openaiRealtimeModelLiveOptionsSchema>;
|
|
1420
|
-
|
|
1427
|
+
//#endregion
|
|
1428
|
+
//#region src/realtime/openai-realtime-model.d.ts
|
|
1421
1429
|
type OpenAIRealtimeModelConfig = {
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1430
|
+
provider: string;
|
|
1431
|
+
baseURL: string;
|
|
1432
|
+
headers: () => Record<string, string | undefined>;
|
|
1433
|
+
fetch?: FetchFunction;
|
|
1426
1434
|
};
|
|
1427
1435
|
declare class OpenAIRealtimeModel implements Experimental_RealtimeModelV4 {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1436
|
+
readonly specificationVersion: "v4";
|
|
1437
|
+
readonly provider: string;
|
|
1438
|
+
readonly modelId: string;
|
|
1439
|
+
private readonly config;
|
|
1440
|
+
constructor(modelId: string, config: OpenAIRealtimeModelConfig);
|
|
1441
|
+
doCreateClientSecret(options: Experimental_RealtimeModelV4ClientSecretOptions): Promise<Experimental_RealtimeModelV4ClientSecretResult>;
|
|
1442
|
+
getWebSocketConfig(options: {
|
|
1443
|
+
token: string;
|
|
1444
|
+
url: string;
|
|
1445
|
+
}): {
|
|
1446
|
+
url: string;
|
|
1447
|
+
protocols?: string[];
|
|
1448
|
+
};
|
|
1449
|
+
parseServerEvent(raw: unknown): Experimental_RealtimeModelV4ServerEvent;
|
|
1450
|
+
serializeClientEvent(event: Experimental_RealtimeModelV4ClientEvent): unknown;
|
|
1451
|
+
buildSessionConfig(config: Experimental_RealtimeModelV4SessionConfig): Record<string, unknown>;
|
|
1444
1452
|
}
|
|
1445
|
-
|
|
1453
|
+
//#endregion
|
|
1454
|
+
//#region src/live/openai-realtime-model-live.d.ts
|
|
1446
1455
|
type OpenAIRealtimeModelLiveConfig = OpenAIRealtimeModelConfig;
|
|
1447
1456
|
declare class OpenAIRealtimeModelLive implements Experimental_RealtimeModelV4 {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1457
|
+
readonly modelId: OpenAIRealtimeModelLiveId;
|
|
1458
|
+
private readonly config;
|
|
1459
|
+
readonly specificationVersion: "v4";
|
|
1460
|
+
readonly capabilities: {
|
|
1461
|
+
readonly conversation: "continuous";
|
|
1462
|
+
readonly transports: readonly ["websocket", "webrtc"];
|
|
1463
|
+
readonly connections: readonly ["server-websocket", "webrtc"];
|
|
1464
|
+
readonly startup: "session-start";
|
|
1465
|
+
readonly finalization: "session-close";
|
|
1466
|
+
};
|
|
1467
|
+
constructor(modelId: OpenAIRealtimeModelLiveId, config: OpenAIRealtimeModelLiveConfig);
|
|
1468
|
+
get provider(): string;
|
|
1469
|
+
getWebRTCConfig(): {
|
|
1470
|
+
dataChannelLabel: string;
|
|
1471
|
+
};
|
|
1472
|
+
getServerWebSocketConfig(): {
|
|
1473
|
+
url: string;
|
|
1474
|
+
headers: Record<string, string>;
|
|
1475
|
+
};
|
|
1476
|
+
doCreateWebRTCSession({ sdp, sessionConfig, abortSignal }: {
|
|
1477
|
+
sdp: string;
|
|
1478
|
+
sessionConfig?: Experimental_RealtimeModelV4SessionConfig;
|
|
1479
|
+
abortSignal?: AbortSignal;
|
|
1480
|
+
}): Promise<{
|
|
1481
|
+
sessionId: string;
|
|
1482
|
+
sdp: string;
|
|
1483
|
+
}>;
|
|
1484
|
+
parseServerEvent(raw: unknown): import("@ai-sdk/provider").Experimental_RealtimeModelV4ServerEvent[];
|
|
1485
|
+
createServerEventParser(): (raw: unknown) => import("@ai-sdk/provider").Experimental_RealtimeModelV4ServerEvent[];
|
|
1486
|
+
serializeClientEvent(event: Experimental_RealtimeModelV4ClientEvent): unknown;
|
|
1487
|
+
buildSessionConfig(config: Experimental_RealtimeModelV4SessionConfig): Record<string, unknown>;
|
|
1479
1488
|
}
|
|
1480
|
-
|
|
1489
|
+
//#endregion
|
|
1490
|
+
//#region src/realtime/openai-realtime-factory.d.ts
|
|
1481
1491
|
declare const knownLiveModelIds: readonly ["gpt-live-1"];
|
|
1482
1492
|
type OpenAIRealtimeOptions = {
|
|
1483
|
-
|
|
1484
|
-
|
|
1493
|
+
/** Overrides model ID routing, including for early-access models. */
|
|
1494
|
+
api?: 'live' | 'realtime';
|
|
1485
1495
|
};
|
|
1486
1496
|
interface OpenAIRealtimeFactory extends Experimental_RealtimeFactoryV4 {
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1497
|
+
(modelId: string, options: {
|
|
1498
|
+
api: 'live';
|
|
1499
|
+
}): OpenAIRealtimeModelLive;
|
|
1500
|
+
(modelId: string, options: {
|
|
1501
|
+
api: 'realtime';
|
|
1502
|
+
}): OpenAIRealtimeModel;
|
|
1503
|
+
(modelId: (typeof knownLiveModelIds)[number], options?: {
|
|
1504
|
+
api?: undefined;
|
|
1505
|
+
}): OpenAIRealtimeModelLive;
|
|
1506
|
+
(modelId: string, options?: OpenAIRealtimeOptions): Experimental_RealtimeModelV4;
|
|
1507
|
+
getToken(options: Parameters<Experimental_RealtimeFactoryV4['getToken']>[0] & OpenAIRealtimeOptions): ReturnType<Experimental_RealtimeFactoryV4['getToken']>;
|
|
1498
1508
|
}
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1509
|
+
//#endregion
|
|
1510
|
+
//#region src/responses/openai-responses-language-model-options.d.ts
|
|
1511
|
+
type OpenAIResponsesModelId = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | '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.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'gpt-6-sol' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
|
|
1512
|
+
declare const openaiLanguageModelResponsesOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
1513
|
+
conversation?: string | null | undefined;
|
|
1514
|
+
include?: ("reasoning.encrypted_content" | "file_search_call.results" | "web_search_call.results" | "message.output_text.logprobs")[] | null | undefined;
|
|
1515
|
+
includeWebSearchSources?: boolean | undefined;
|
|
1516
|
+
instructions?: string | null | undefined;
|
|
1517
|
+
logprobs?: number | boolean | undefined;
|
|
1518
|
+
maxToolCalls?: number | null | undefined;
|
|
1519
|
+
metadata?: any;
|
|
1520
|
+
parallelToolCalls?: boolean | null | undefined;
|
|
1521
|
+
previousResponseId?: string | null | undefined;
|
|
1522
|
+
promptCacheKey?: string | null | undefined;
|
|
1523
|
+
promptCacheOptions?: {
|
|
1524
|
+
mode?: "implicit" | "explicit" | undefined;
|
|
1525
|
+
ttl?: "30m" | undefined;
|
|
1526
|
+
} | undefined;
|
|
1527
|
+
promptCacheRetention?: "in_memory" | "24h" | null | undefined;
|
|
1528
|
+
reasoningEffort?: string | null | undefined;
|
|
1529
|
+
reasoningEffortUpdate?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1530
|
+
reasoningMode?: "standard" | "pro" | undefined;
|
|
1531
|
+
reasoningContext?: "auto" | "current_turn" | "all_turns" | undefined;
|
|
1532
|
+
reasoningSummary?: string | null | undefined;
|
|
1533
|
+
safetyIdentifier?: string | null | undefined;
|
|
1534
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | null | undefined;
|
|
1535
|
+
store?: boolean | null | undefined;
|
|
1536
|
+
passThroughUnsupportedFiles?: boolean | undefined;
|
|
1537
|
+
strictJsonSchema?: boolean | null | undefined;
|
|
1538
|
+
textVerbosity?: "low" | "medium" | "high" | null | undefined;
|
|
1539
|
+
truncation?: "auto" | "disabled" | null | undefined;
|
|
1540
|
+
user?: string | null | undefined;
|
|
1541
|
+
systemMessageMode?: "developer" | "system" | "remove" | undefined;
|
|
1542
|
+
forceReasoning?: boolean | undefined;
|
|
1543
|
+
contextManagement?: {
|
|
1544
|
+
type: "compaction";
|
|
1545
|
+
compactThreshold: number;
|
|
1546
|
+
}[] | null | undefined;
|
|
1547
|
+
compactionTrigger?: boolean | undefined;
|
|
1548
|
+
allowedTools?: {
|
|
1549
|
+
toolNames: string[];
|
|
1550
|
+
mode?: "auto" | "required" | undefined;
|
|
1551
|
+
} | undefined;
|
|
1541
1552
|
}>;
|
|
1542
1553
|
type OpenAILanguageModelResponsesOptions = InferSchema<typeof openaiLanguageModelResponsesOptionsSchema>;
|
|
1543
|
-
declare const openaiResponsesSystemMessageOptionsSchema:
|
|
1544
|
-
|
|
1554
|
+
declare const openaiResponsesSystemMessageOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
1555
|
+
reasoningEffortUpdate?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1545
1556
|
}>;
|
|
1546
1557
|
type OpenAIResponsesSystemMessageOptions = InferSchema<typeof openaiResponsesSystemMessageOptionsSchema>;
|
|
1547
|
-
|
|
1558
|
+
//#endregion
|
|
1559
|
+
//#region src/speech/openai-speech-model-options.d.ts
|
|
1548
1560
|
type OpenAISpeechModelId = 'tts-1' | 'tts-1-1106' | 'tts-1-hd' | 'tts-1-hd-1106' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-03-20' | 'gpt-4o-mini-tts-2025-12-15' | (string & {});
|
|
1549
|
-
declare const openaiSpeechModelOptionsSchema:
|
|
1550
|
-
|
|
1551
|
-
|
|
1561
|
+
declare const openaiSpeechModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
1562
|
+
instructions?: string | null | undefined;
|
|
1563
|
+
speed?: number | null | undefined;
|
|
1552
1564
|
}>;
|
|
1553
1565
|
type OpenAISpeechModelOptions = InferSchema<typeof openaiSpeechModelOptionsSchema>;
|
|
1554
|
-
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region src/transcription/openai-transcription-model-options.d.ts
|
|
1555
1568
|
type OpenAITranscriptionModelId = 'whisper-1' | 'gpt-4o-mini-transcribe' | 'gpt-4o-mini-transcribe-2025-03-20' | 'gpt-4o-mini-transcribe-2025-12-15' | 'gpt-4o-transcribe' | 'gpt-4o-transcribe-diarize' | 'gpt-realtime-whisper' | (string & {});
|
|
1556
|
-
declare const openAITranscriptionModelOptions:
|
|
1569
|
+
declare const openAITranscriptionModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
1570
|
+
include?: string[] | undefined;
|
|
1571
|
+
language?: string | undefined;
|
|
1572
|
+
prompt?: string | undefined;
|
|
1573
|
+
temperature?: number | undefined;
|
|
1574
|
+
timestampGranularities?: ("word" | "segment")[] | undefined;
|
|
1575
|
+
responseFormat?: "json" | "verbose_json" | "diarized_json" | undefined;
|
|
1576
|
+
chunkingStrategy?: "auto" | {
|
|
1577
|
+
type: "server_vad";
|
|
1578
|
+
threshold?: number | undefined;
|
|
1579
|
+
prefixPaddingMs?: number | undefined;
|
|
1580
|
+
silenceDurationMs?: number | undefined;
|
|
1581
|
+
} | undefined;
|
|
1582
|
+
streaming?: {
|
|
1583
|
+
delay?: "low" | "medium" | "high" | "xhigh" | "minimal" | undefined;
|
|
1557
1584
|
include?: string[] | undefined;
|
|
1558
|
-
|
|
1559
|
-
prompt?: string | undefined;
|
|
1560
|
-
temperature?: number | undefined;
|
|
1561
|
-
timestampGranularities?: ("word" | "segment")[] | undefined;
|
|
1562
|
-
responseFormat?: "json" | "verbose_json" | "diarized_json" | undefined;
|
|
1563
|
-
chunkingStrategy?: "auto" | {
|
|
1564
|
-
type: "server_vad";
|
|
1565
|
-
threshold?: number | undefined;
|
|
1566
|
-
prefixPaddingMs?: number | undefined;
|
|
1567
|
-
silenceDurationMs?: number | undefined;
|
|
1568
|
-
} | undefined;
|
|
1569
|
-
streaming?: {
|
|
1570
|
-
delay?: "low" | "medium" | "high" | "xhigh" | "minimal" | undefined;
|
|
1571
|
-
include?: string[] | undefined;
|
|
1572
|
-
} | undefined;
|
|
1585
|
+
} | undefined;
|
|
1573
1586
|
}>;
|
|
1574
1587
|
type OpenAITranscriptionModelOptions = InferSchema<typeof openAITranscriptionModelOptions>;
|
|
1575
|
-
|
|
1588
|
+
//#endregion
|
|
1589
|
+
//#region src/speech-translation/openai-speech-translation-model-options.d.ts
|
|
1576
1590
|
type OpenAISpeechTranslationModelId = 'gpt-realtime-translate' | (string & {});
|
|
1577
|
-
declare const openAISpeechTranslationModelOptions:
|
|
1591
|
+
declare const openAISpeechTranslationModelOptions: import("@ai-sdk/provider-utils").LazySchema<Record<string, never>>;
|
|
1578
1592
|
type OpenAISpeechTranslationModelOptions = InferSchema<typeof openAISpeechTranslationModelOptions>;
|
|
1579
|
-
|
|
1593
|
+
//#endregion
|
|
1594
|
+
//#region src/openai-provider.d.ts
|
|
1580
1595
|
interface OpenAIProvider extends ProviderV4 {
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1596
|
+
(modelId: OpenAIResponsesModelId): LanguageModelV4;
|
|
1597
|
+
/** Creates an experimental Choice/Score/Boolean evaluation model using the Responses API. */
|
|
1598
|
+
evaluationModel(modelId: OpenAIResponsesModelId): Experimental_EvaluationModelV4;
|
|
1599
|
+
/**
|
|
1600
|
+
* Creates an OpenAI model for text generation.
|
|
1601
|
+
*/
|
|
1602
|
+
languageModel(modelId: OpenAIResponsesModelId): LanguageModelV4;
|
|
1603
|
+
/**
|
|
1604
|
+
* Creates an OpenAI chat model for text generation.
|
|
1605
|
+
*/
|
|
1606
|
+
chat(modelId: OpenAIChatModelId): LanguageModelV4;
|
|
1607
|
+
/**
|
|
1608
|
+
* Creates an OpenAI responses API model for text generation.
|
|
1609
|
+
*/
|
|
1610
|
+
responses(modelId: OpenAIResponsesModelId): LanguageModelV4;
|
|
1611
|
+
/**
|
|
1612
|
+
* Creates an OpenAI completion model for text generation.
|
|
1613
|
+
*/
|
|
1614
|
+
completion(modelId: OpenAICompletionModelId): LanguageModelV4;
|
|
1615
|
+
/**
|
|
1616
|
+
* Creates a model for text embeddings.
|
|
1617
|
+
*/
|
|
1618
|
+
embedding(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
|
|
1619
|
+
/**
|
|
1620
|
+
* Creates a model for text embeddings.
|
|
1621
|
+
*/
|
|
1622
|
+
embeddingModel(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
|
|
1623
|
+
/**
|
|
1624
|
+
* @deprecated Use `embedding` instead.
|
|
1625
|
+
*/
|
|
1626
|
+
textEmbedding(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
|
|
1627
|
+
/**
|
|
1628
|
+
* @deprecated Use `embeddingModel` instead.
|
|
1629
|
+
*/
|
|
1630
|
+
textEmbeddingModel(modelId: OpenAIEmbeddingModelId): EmbeddingModelV4;
|
|
1631
|
+
/**
|
|
1632
|
+
* Creates a model for image generation.
|
|
1633
|
+
*/
|
|
1634
|
+
image(modelId: OpenAIImageModelId): ImageModelV4;
|
|
1635
|
+
/**
|
|
1636
|
+
* Creates a model for image generation.
|
|
1637
|
+
*/
|
|
1638
|
+
imageModel(modelId: OpenAIImageModelId): ImageModelV4;
|
|
1639
|
+
/**
|
|
1640
|
+
* Creates a model for transcription.
|
|
1641
|
+
*/
|
|
1642
|
+
transcription(modelId: OpenAITranscriptionModelId): TranscriptionModelV4;
|
|
1643
|
+
/**
|
|
1644
|
+
* Creates an experimental model for streaming speech translation.
|
|
1645
|
+
*/
|
|
1646
|
+
translation(modelId: OpenAISpeechTranslationModelId): Experimental_SpeechTranslationModelV4;
|
|
1647
|
+
/**
|
|
1648
|
+
* Creates an experimental model for streaming speech translation.
|
|
1649
|
+
*/
|
|
1650
|
+
speechTranslationModel(modelId: OpenAISpeechTranslationModelId): Experimental_SpeechTranslationModelV4;
|
|
1651
|
+
/**
|
|
1652
|
+
* Creates a model for speech generation.
|
|
1653
|
+
*/
|
|
1654
|
+
speech(modelId: OpenAISpeechModelId): SpeechModelV4;
|
|
1655
|
+
/**
|
|
1656
|
+
* Creates an experimental realtime model for bidirectional audio/text
|
|
1657
|
+
* communication over WebSocket.
|
|
1658
|
+
*/
|
|
1659
|
+
experimental_realtime: OpenAIRealtimeFactory;
|
|
1660
|
+
/**
|
|
1661
|
+
* Returns a FilesV4 interface for uploading files to OpenAI.
|
|
1662
|
+
*/
|
|
1663
|
+
files(): FilesV4;
|
|
1664
|
+
/**
|
|
1665
|
+
* Returns a SkillsV4 interface for uploading skills to OpenAI.
|
|
1666
|
+
*/
|
|
1667
|
+
skills(): SkillsV4;
|
|
1668
|
+
/**
|
|
1669
|
+
* Returns a BatchV4 interface for processing batches with OpenAI.
|
|
1670
|
+
*/
|
|
1671
|
+
experimental_batch(): Experimental_BatchV4<{
|
|
1672
|
+
text: OpenAIResponsesModelId;
|
|
1673
|
+
}>;
|
|
1674
|
+
/**
|
|
1675
|
+
* OpenAI-specific tools.
|
|
1676
|
+
*/
|
|
1677
|
+
tools: typeof openaiTools;
|
|
1663
1678
|
}
|
|
1664
1679
|
interface OpenAIProviderSettings {
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1680
|
+
/**
|
|
1681
|
+
* Base URL for the OpenAI API calls.
|
|
1682
|
+
*/
|
|
1683
|
+
baseURL?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* API key for authenticating requests.
|
|
1686
|
+
*/
|
|
1687
|
+
apiKey?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* OpenAI Organization.
|
|
1690
|
+
*/
|
|
1691
|
+
organization?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* OpenAI project.
|
|
1694
|
+
*/
|
|
1695
|
+
project?: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* Custom headers to include in the requests.
|
|
1698
|
+
*/
|
|
1699
|
+
headers?: Record<string, string>;
|
|
1700
|
+
/**
|
|
1701
|
+
* Provider name. Overrides the `openai` default name for 3rd party providers.
|
|
1702
|
+
*/
|
|
1703
|
+
name?: string;
|
|
1704
|
+
/**
|
|
1705
|
+
* Custom fetch implementation. You can use it as a middleware to intercept requests,
|
|
1706
|
+
* or to provide a custom fetch implementation for e.g. testing.
|
|
1707
|
+
*/
|
|
1708
|
+
fetch?: FetchFunction;
|
|
1709
|
+
/**
|
|
1710
|
+
* Custom WebSocket implementation. This is useful for testing or for
|
|
1711
|
+
* runtimes that need a WebSocket constructor with header support.
|
|
1712
|
+
*/
|
|
1713
|
+
webSocket?: WebSocketConstructor;
|
|
1699
1714
|
}
|
|
1700
1715
|
/**
|
|
1701
1716
|
* Create an OpenAI provider instance.
|
|
1702
1717
|
*/
|
|
1703
|
-
declare function createOpenAI(options?: OpenAIProviderSettings): OpenAIProvider;
|
|
1718
|
+
export declare function createOpenAI(options?: OpenAIProviderSettings): OpenAIProvider;
|
|
1704
1719
|
/**
|
|
1705
1720
|
* Default OpenAI provider instance.
|
|
1706
1721
|
*/
|
|
1707
|
-
declare const openai: OpenAIProvider;
|
|
1708
|
-
|
|
1722
|
+
export declare const openai: OpenAIProvider;
|
|
1723
|
+
//#endregion
|
|
1724
|
+
//#region src/responses/openai-responses-prepare-tools.d.ts
|
|
1709
1725
|
type OpenAIToolOptions = {
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1726
|
+
allowedCallers?: Array<'direct' | 'programmatic'>;
|
|
1727
|
+
/**
|
|
1728
|
+
* Whether the model can continue generating after calling this tool without
|
|
1729
|
+
* waiting for its result.
|
|
1730
|
+
*/
|
|
1731
|
+
async?: boolean;
|
|
1732
|
+
deferLoading?: boolean;
|
|
1733
|
+
outputSchema?: JSONObject;
|
|
1734
|
+
namespace?: {
|
|
1735
|
+
name: string;
|
|
1736
|
+
description: string;
|
|
1737
|
+
};
|
|
1722
1738
|
};
|
|
1723
|
-
|
|
1739
|
+
//#endregion
|
|
1740
|
+
//#region src/openai-config.d.ts
|
|
1724
1741
|
type OpenAIHeaders = Record<string, string | undefined>;
|
|
1725
1742
|
type OpenAIConfig = {
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1743
|
+
provider: string;
|
|
1744
|
+
baseURL?: string;
|
|
1745
|
+
url: (options: {
|
|
1746
|
+
modelId: string;
|
|
1747
|
+
path: string;
|
|
1748
|
+
}) => string;
|
|
1749
|
+
headers?: () => OpenAIHeaders;
|
|
1750
|
+
fetch?: FetchFunction;
|
|
1751
|
+
webSocket?: WebSocketConstructor;
|
|
1752
|
+
generateId?: () => string;
|
|
1753
|
+
/**
|
|
1754
|
+
* Whether Responses API message input items must include an explicit
|
|
1755
|
+
* `type: 'message'` discriminator.
|
|
1756
|
+
*
|
|
1757
|
+
* @see https://github.com/vercel/ai/issues/20180
|
|
1758
|
+
*/
|
|
1759
|
+
explicitMessageItemType?: boolean;
|
|
1760
|
+
/**
|
|
1761
|
+
* Whether the provider supports the
|
|
1762
|
+
* `web_search_call.action.sources` Responses API include value.
|
|
1763
|
+
*
|
|
1764
|
+
* Defaults to `true`.
|
|
1765
|
+
*/
|
|
1766
|
+
supportsWebSearchSourcesInclude?: boolean;
|
|
1767
|
+
/**
|
|
1768
|
+
* This is soft-deprecated. Use provider references (e.g. `{ openai: 'file-abc123' }`)
|
|
1769
|
+
* in file part data instead. File ID prefixes used to identify file IDs
|
|
1770
|
+
* in Responses API. When undefined, all string file data is treated as
|
|
1771
|
+
* base64 content.
|
|
1772
|
+
*
|
|
1773
|
+
* TODO: remove in v8
|
|
1774
|
+
*/
|
|
1775
|
+
fileIdPrefixes?: readonly string[];
|
|
1759
1776
|
};
|
|
1760
|
-
|
|
1777
|
+
//#endregion
|
|
1778
|
+
//#region src/speech-translation/openai-speech-translation-model.d.ts
|
|
1761
1779
|
interface OpenAISpeechTranslationModelConfig extends OpenAIConfig {
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1780
|
+
_internal?: {
|
|
1781
|
+
currentDate?: () => Date;
|
|
1782
|
+
};
|
|
1765
1783
|
}
|
|
1766
1784
|
declare class OpenAISpeechTranslationModel implements Experimental_SpeechTranslationModelV4 {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1785
|
+
readonly modelId: OpenAISpeechTranslationModelId;
|
|
1786
|
+
private readonly config;
|
|
1787
|
+
readonly specificationVersion = "v4";
|
|
1788
|
+
static [WORKFLOW_SERIALIZE](model: OpenAISpeechTranslationModel): {
|
|
1789
|
+
modelId: string;
|
|
1790
|
+
config: import("@ai-sdk/provider").JSONObject;
|
|
1791
|
+
};
|
|
1792
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
1793
|
+
modelId: OpenAISpeechTranslationModelId;
|
|
1794
|
+
config: OpenAISpeechTranslationModelConfig;
|
|
1795
|
+
}): OpenAISpeechTranslationModel;
|
|
1796
|
+
get provider(): string;
|
|
1797
|
+
constructor(modelId: OpenAISpeechTranslationModelId, config: OpenAISpeechTranslationModelConfig);
|
|
1798
|
+
doStream(options: Experimental_SpeechTranslationModelV4StreamOptions): Promise<Awaited<ReturnType<Experimental_SpeechTranslationModelV4['doStream']>>>;
|
|
1781
1799
|
}
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1800
|
+
//#endregion
|
|
1801
|
+
//#region src/files/openai-files-options.d.ts
|
|
1802
|
+
declare const openaiFilesOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
1803
|
+
purpose?: string | undefined;
|
|
1804
|
+
expiresAfter?: number | undefined;
|
|
1786
1805
|
}>;
|
|
1787
1806
|
type OpenAIFilesOptions = InferSchema<typeof openaiFilesOptionsSchema>;
|
|
1788
|
-
|
|
1807
|
+
//#endregion
|
|
1808
|
+
//#region src/tool/computer.d.ts
|
|
1789
1809
|
declare const safetyCheckSchema: z.ZodObject<{
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1810
|
+
id: z.ZodString;
|
|
1811
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1793
1813
|
}, z.core.$strip>;
|
|
1794
1814
|
declare const computerActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1815
|
+
type: z.ZodLiteral<"click">;
|
|
1816
|
+
button: z.ZodEnum<{
|
|
1817
|
+
left: "left";
|
|
1818
|
+
right: "right";
|
|
1819
|
+
wheel: "wheel";
|
|
1820
|
+
back: "back";
|
|
1821
|
+
forward: "forward";
|
|
1822
|
+
}>;
|
|
1823
|
+
x: z.ZodNumber;
|
|
1824
|
+
y: z.ZodNumber;
|
|
1825
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1826
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1827
|
+
type: z.ZodLiteral<"double_click">;
|
|
1828
|
+
x: z.ZodNumber;
|
|
1829
|
+
y: z.ZodNumber;
|
|
1830
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1806
1831
|
}, z.core.$strip>, z.ZodObject<{
|
|
1807
|
-
|
|
1832
|
+
type: z.ZodLiteral<"drag">;
|
|
1833
|
+
path: z.ZodArray<z.ZodObject<{
|
|
1808
1834
|
x: z.ZodNumber;
|
|
1809
1835
|
y: z.ZodNumber;
|
|
1810
|
-
|
|
1836
|
+
}, z.core.$strip>>;
|
|
1837
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1811
1838
|
}, z.core.$strip>, z.ZodObject<{
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
x: z.ZodNumber;
|
|
1815
|
-
y: z.ZodNumber;
|
|
1816
|
-
}, z.core.$strip>>;
|
|
1817
|
-
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1839
|
+
type: z.ZodLiteral<"keypress">;
|
|
1840
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1818
1841
|
}, z.core.$strip>, z.ZodObject<{
|
|
1819
|
-
|
|
1820
|
-
|
|
1842
|
+
type: z.ZodLiteral<"move">;
|
|
1843
|
+
x: z.ZodNumber;
|
|
1844
|
+
y: z.ZodNumber;
|
|
1845
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1821
1846
|
}, z.core.$strip>, z.ZodObject<{
|
|
1822
|
-
|
|
1823
|
-
x: z.ZodNumber;
|
|
1824
|
-
y: z.ZodNumber;
|
|
1825
|
-
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1847
|
+
type: z.ZodLiteral<"screenshot">;
|
|
1826
1848
|
}, z.core.$strip>, z.ZodObject<{
|
|
1827
|
-
|
|
1849
|
+
type: z.ZodLiteral<"scroll">;
|
|
1850
|
+
x: z.ZodNumber;
|
|
1851
|
+
y: z.ZodNumber;
|
|
1852
|
+
scrollX: z.ZodNumber;
|
|
1853
|
+
scrollY: z.ZodNumber;
|
|
1854
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1828
1855
|
}, z.core.$strip>, z.ZodObject<{
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
y: z.ZodNumber;
|
|
1832
|
-
scrollX: z.ZodNumber;
|
|
1833
|
-
scrollY: z.ZodNumber;
|
|
1834
|
-
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1835
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1836
|
-
type: z.ZodLiteral<"type">;
|
|
1837
|
-
text: z.ZodString;
|
|
1856
|
+
type: z.ZodLiteral<"type">;
|
|
1857
|
+
text: z.ZodString;
|
|
1838
1858
|
}, z.core.$strip>, z.ZodObject<{
|
|
1839
|
-
|
|
1859
|
+
type: z.ZodLiteral<"wait">;
|
|
1840
1860
|
}, z.core.$strip>]>;
|
|
1841
1861
|
type OpenAIComputerAction = z.infer<typeof computerActionSchema>;
|
|
1842
1862
|
type OpenAIComputerSafetyCheck = z.infer<typeof safetyCheckSchema>;
|
|
1843
|
-
|
|
1863
|
+
//#endregion
|
|
1864
|
+
//#region src/responses/openai-responses-provider-metadata.d.ts
|
|
1844
1865
|
type OpenaiResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
|
|
1845
1866
|
type ResponsesOutputTextAnnotationProviderMetadata = Extract<OpenaiResponsesChunk, {
|
|
1846
|
-
|
|
1867
|
+
type: 'response.output_text.annotation.added';
|
|
1847
1868
|
}>['annotation'];
|
|
1848
1869
|
type ResponsesProviderMetadata = {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1870
|
+
responseId: string | null | undefined;
|
|
1871
|
+
logprobs?: Array<OpenAIResponsesLogprobs>;
|
|
1872
|
+
serviceTier?: string;
|
|
1873
|
+
reasoningContext?: string;
|
|
1853
1874
|
};
|
|
1854
1875
|
type ResponsesReasoningProviderMetadata = {
|
|
1855
|
-
|
|
1856
|
-
|
|
1876
|
+
itemId: string;
|
|
1877
|
+
reasoningEncryptedContent?: string | null;
|
|
1857
1878
|
};
|
|
1858
1879
|
type OpenaiResponsesReasoningProviderMetadata = {
|
|
1859
|
-
|
|
1880
|
+
openai: ResponsesReasoningProviderMetadata;
|
|
1860
1881
|
};
|
|
1861
1882
|
type OpenaiResponsesProviderMetadata = {
|
|
1862
|
-
|
|
1883
|
+
openai: ResponsesProviderMetadata;
|
|
1863
1884
|
};
|
|
1864
1885
|
type ResponsesToolCallProviderMetadata = {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1886
|
+
itemId: string;
|
|
1887
|
+
async?: boolean;
|
|
1888
|
+
namespace?: string;
|
|
1889
|
+
caller?: {
|
|
1890
|
+
type: 'direct';
|
|
1891
|
+
} | {
|
|
1892
|
+
type: 'program';
|
|
1893
|
+
callerId: string;
|
|
1894
|
+
};
|
|
1874
1895
|
};
|
|
1875
1896
|
type OpenaiResponsesToolCallProviderMetadata = {
|
|
1876
|
-
|
|
1897
|
+
openai: ResponsesToolCallProviderMetadata;
|
|
1877
1898
|
};
|
|
1878
1899
|
type ResponsesCompactionProviderMetadata = {
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1900
|
+
type: 'compaction';
|
|
1901
|
+
itemId: string;
|
|
1902
|
+
encryptedContent?: string;
|
|
1882
1903
|
};
|
|
1883
1904
|
type OpenaiResponsesCompactionProviderMetadata = {
|
|
1884
|
-
|
|
1905
|
+
openai: ResponsesCompactionProviderMetadata;
|
|
1885
1906
|
};
|
|
1886
1907
|
type ResponsesTextProviderMetadata = {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1908
|
+
itemId: string;
|
|
1909
|
+
phase?: 'commentary' | 'final_answer' | null;
|
|
1910
|
+
annotations?: Array<ResponsesOutputTextAnnotationProviderMetadata>;
|
|
1890
1911
|
};
|
|
1891
1912
|
type OpenaiResponsesTextProviderMetadata = {
|
|
1892
|
-
|
|
1913
|
+
openai: ResponsesTextProviderMetadata;
|
|
1893
1914
|
};
|
|
1894
1915
|
type ResponsesSourceDocumentProviderMetadata = {
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1916
|
+
type: 'file_citation';
|
|
1917
|
+
fileId: string;
|
|
1918
|
+
index: number;
|
|
1898
1919
|
} | {
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1920
|
+
type: 'container_file_citation';
|
|
1921
|
+
fileId: string;
|
|
1922
|
+
containerId: string;
|
|
1902
1923
|
} | {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1924
|
+
type: 'file_path';
|
|
1925
|
+
fileId: string;
|
|
1926
|
+
index: number;
|
|
1906
1927
|
};
|
|
1907
1928
|
type OpenaiResponsesSourceDocumentProviderMetadata = {
|
|
1908
|
-
|
|
1929
|
+
openai: ResponsesSourceDocumentProviderMetadata;
|
|
1909
1930
|
};
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1931
|
+
//#endregion
|
|
1932
|
+
//#region src/version.d.ts
|
|
1933
|
+
export declare const VERSION: string;
|
|
1934
|
+
//#endregion
|
|
1935
|
+
export { type OpenAIRealtimeFactory as Experimental_OpenAIRealtimeFactory, OpenAIRealtimeModel as Experimental_OpenAIRealtimeModel, type OpenAIRealtimeModelConfig as Experimental_OpenAIRealtimeModelConfig, OpenAIRealtimeModelLive as Experimental_OpenAIRealtimeModelLive, type OpenAIRealtimeModelLiveConfig as Experimental_OpenAIRealtimeModelLiveConfig, type OpenAIRealtimeModelLiveId as Experimental_OpenAIRealtimeModelLiveId, type OpenAIRealtimeModelLiveOptions as Experimental_OpenAIRealtimeModelLiveOptions, type OpenAIRealtimeOptions as Experimental_OpenAIRealtimeOptions, OpenAISpeechTranslationModel as Experimental_OpenAISpeechTranslationModel, OpenAISpeechTranslationModel as Experimental_OpenAITranslationModel, type OpenAISpeechTranslationModelId as Experimental_OpenAISpeechTranslationModelId, type OpenAISpeechTranslationModelId as Experimental_OpenAITranslationModelId, type OpenAISpeechTranslationModelOptions as Experimental_OpenAISpeechTranslationModelOptions, type OpenAISpeechTranslationModelOptions as Experimental_OpenAITranslationModelOptions, type OpenAILanguageModelChatOptions as OpenAIChatLanguageModelOptions, type OpenAILanguageModelChatOptions, type OpenAIComputerAction, type OpenAIComputerSafetyCheck, type OpenAIEmbeddingModelOptions, type OpenAIFilesOptions, type OpenAIImageModelEditOptions, type OpenAIImageModelGenerationOptions, type OpenAIImageModelOptions, type OpenAILanguageModelCompletionOptions, type OpenAILanguageModelResponsesOptions, type OpenAILanguageModelResponsesOptions as OpenAIResponsesProviderOptions, type OpenAIProvider, type OpenAIProviderSettings, type OpenAIResponsesSystemMessageOptions, type OpenAISpeechModelOptions, type OpenAIToolOptions, type OpenAITranscriptionModelOptions, type OpenaiResponsesCompactionProviderMetadata, type OpenaiResponsesProviderMetadata, type OpenaiResponsesReasoningProviderMetadata, type OpenaiResponsesSourceDocumentProviderMetadata, type OpenaiResponsesTextProviderMetadata, type OpenaiResponsesToolCallProviderMetadata };
|
|
1936
|
+
//# sourceMappingURL=index.d.ts.map
|