@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16273
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/dist/llm.d.ts +60 -60
- package/dist/protocols/anthropic-messages.d.ts +303 -303
- package/dist/protocols/anthropic-messages.js +1 -0
- package/dist/protocols/bedrock-converse.d.ts +246 -242
- package/dist/protocols/gemini.d.ts +136 -132
- package/dist/protocols/gemini.js +1 -0
- package/dist/protocols/open-responses.d.ts +232 -232
- package/dist/protocols/openai-chat.d.ts +147 -141
- package/dist/protocols/openai-chat.js +1 -0
- package/dist/protocols/openai-compatible-chat.d.ts +48 -46
- package/dist/protocols/openai-compatible-responses.d.ts +56 -56
- package/dist/protocols/openai-responses.d.ts +388 -388
- package/dist/protocols/shared.d.ts +5 -4
- package/dist/protocols/shared.js +1 -0
- package/dist/protocols/utils/bedrock-media.d.ts +10 -10
- package/dist/protocols/utils/tool-stream.d.ts +180 -180
- package/dist/providers/amazon-bedrock.d.ts +109 -107
- package/dist/providers/anthropic-compatible.d.ts +145 -145
- package/dist/providers/anthropic.d.ts +145 -145
- package/dist/providers/azure.d.ts +112 -110
- package/dist/providers/cloudflare.d.ts +144 -138
- package/dist/providers/github-copilot.d.ts +112 -110
- package/dist/providers/google-vertex-chat.d.ts +48 -46
- package/dist/providers/google-vertex-messages.d.ts +145 -146
- package/dist/providers/google-vertex-responses.d.ts +56 -56
- package/dist/providers/google-vertex.d.ts +52 -50
- package/dist/providers/google.d.ts +52 -50
- package/dist/providers/openai-compatible-responses.d.ts +56 -56
- package/dist/providers/openai-compatible.d.ts +48 -46
- package/dist/providers/openai.d.ts +176 -174
- package/dist/providers/openrouter.d.ts +147 -141
- package/dist/providers/xai.d.ts +112 -110
- package/dist/route/client.d.ts +60 -60
- package/dist/schema/errors.d.ts +2 -6
- package/dist/schema/errors.js +2 -5
- package/dist/schema/events.d.ts +1117 -1115
- package/dist/schema/messages.d.ts +9 -9
- package/dist/schema/messages.js +3 -4
- package/dist/tool-runtime.js +1 -1
- package/dist/tool.d.ts +5 -4
- package/dist/tool.js +1 -0
- package/package.json +5 -5
|
@@ -114,64 +114,64 @@ export type OpenAIResponsesBody = Schema.Schema.Type<typeof OpenAIResponsesBody>
|
|
|
114
114
|
export declare const protocol: Protocol<{
|
|
115
115
|
readonly input: readonly ({
|
|
116
116
|
readonly type: "reasoning";
|
|
117
|
-
readonly summary: readonly
|
|
118
|
-
readonly type:
|
|
119
|
-
readonly text:
|
|
120
|
-
}
|
|
117
|
+
readonly summary: readonly {
|
|
118
|
+
readonly type: "summary_text";
|
|
119
|
+
readonly text: string;
|
|
120
|
+
}[];
|
|
121
121
|
readonly id?: string | undefined;
|
|
122
122
|
readonly encrypted_content?: string | null | undefined;
|
|
123
|
-
} |
|
|
124
|
-
readonly type:
|
|
125
|
-
readonly id:
|
|
126
|
-
}
|
|
127
|
-
readonly role:
|
|
128
|
-
readonly content:
|
|
129
|
-
}
|
|
130
|
-
readonly role:
|
|
131
|
-
readonly content:
|
|
132
|
-
readonly type:
|
|
133
|
-
readonly
|
|
134
|
-
}
|
|
135
|
-
readonly type:
|
|
136
|
-
readonly
|
|
137
|
-
|
|
138
|
-
readonly
|
|
139
|
-
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
readonly content: readonly
|
|
145
|
-
readonly type:
|
|
146
|
-
readonly text:
|
|
147
|
-
}
|
|
123
|
+
} | {
|
|
124
|
+
readonly type: "item_reference";
|
|
125
|
+
readonly id: string;
|
|
126
|
+
} | {
|
|
127
|
+
readonly role: "system";
|
|
128
|
+
readonly content: string;
|
|
129
|
+
} | {
|
|
130
|
+
readonly role: "user";
|
|
131
|
+
readonly content: readonly ({
|
|
132
|
+
readonly type: "input_image";
|
|
133
|
+
readonly image_url: string;
|
|
134
|
+
} | {
|
|
135
|
+
readonly type: "input_file";
|
|
136
|
+
readonly filename: string;
|
|
137
|
+
readonly file_data: string;
|
|
138
|
+
readonly mime_type?: string | undefined;
|
|
139
|
+
} | {
|
|
140
|
+
readonly type: "input_text";
|
|
141
|
+
readonly text: string;
|
|
142
|
+
})[];
|
|
143
|
+
} | {
|
|
144
|
+
readonly content: readonly {
|
|
145
|
+
readonly type: "output_text";
|
|
146
|
+
readonly text: string;
|
|
147
|
+
}[];
|
|
148
148
|
readonly role: "assistant";
|
|
149
149
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
150
|
-
} |
|
|
151
|
-
readonly type:
|
|
152
|
-
readonly call_id:
|
|
153
|
-
readonly name:
|
|
154
|
-
readonly arguments:
|
|
155
|
-
}
|
|
156
|
-
readonly type:
|
|
157
|
-
readonly call_id:
|
|
158
|
-
readonly output:
|
|
159
|
-
readonly type:
|
|
160
|
-
readonly
|
|
161
|
-
}
|
|
162
|
-
readonly type:
|
|
163
|
-
readonly
|
|
164
|
-
|
|
165
|
-
readonly
|
|
166
|
-
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
readonly content: readonly
|
|
172
|
-
readonly type:
|
|
173
|
-
readonly text:
|
|
174
|
-
}
|
|
150
|
+
} | {
|
|
151
|
+
readonly type: "function_call";
|
|
152
|
+
readonly call_id: string;
|
|
153
|
+
readonly name: string;
|
|
154
|
+
readonly arguments: string;
|
|
155
|
+
} | {
|
|
156
|
+
readonly type: "function_call_output";
|
|
157
|
+
readonly call_id: string;
|
|
158
|
+
readonly output: string | readonly ({
|
|
159
|
+
readonly type: "input_image";
|
|
160
|
+
readonly image_url: string;
|
|
161
|
+
} | {
|
|
162
|
+
readonly type: "input_file";
|
|
163
|
+
readonly filename: string;
|
|
164
|
+
readonly file_data: string;
|
|
165
|
+
readonly mime_type?: string | undefined;
|
|
166
|
+
} | {
|
|
167
|
+
readonly type: "input_text";
|
|
168
|
+
readonly text: string;
|
|
169
|
+
})[];
|
|
170
|
+
} | {
|
|
171
|
+
readonly content: readonly {
|
|
172
|
+
readonly type: "output_text";
|
|
173
|
+
readonly text: string;
|
|
174
|
+
}[];
|
|
175
175
|
readonly role: "assistant";
|
|
176
176
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
177
177
|
})[];
|
|
@@ -180,9 +180,10 @@ export declare const protocol: Protocol<{
|
|
|
180
180
|
readonly text?: {
|
|
181
181
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
182
182
|
} | undefined;
|
|
183
|
+
readonly instructions?: string | undefined;
|
|
183
184
|
readonly reasoning?: {
|
|
184
|
-
readonly effort?: string | undefined;
|
|
185
185
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
186
|
+
readonly effort?: string | undefined;
|
|
186
187
|
} | undefined;
|
|
187
188
|
readonly tools?: readonly ({
|
|
188
189
|
readonly type: "function";
|
|
@@ -194,25 +195,24 @@ export declare const protocol: Protocol<{
|
|
|
194
195
|
readonly strict?: boolean | undefined;
|
|
195
196
|
} | {
|
|
196
197
|
readonly type: "image_generation";
|
|
197
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
198
198
|
readonly size?: string | undefined;
|
|
199
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
200
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
199
201
|
readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
|
|
200
202
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
201
203
|
readonly output_compression?: number | undefined;
|
|
202
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
203
204
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
204
205
|
readonly partial_images?: number | undefined;
|
|
205
206
|
})[] | undefined;
|
|
206
207
|
readonly temperature?: number | undefined;
|
|
207
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
208
|
-
readonly type:
|
|
209
|
-
readonly name:
|
|
210
|
-
}
|
|
211
|
-
readonly type:
|
|
212
|
-
}
|
|
208
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
209
|
+
readonly type: "function";
|
|
210
|
+
readonly name: string;
|
|
211
|
+
} | {
|
|
212
|
+
readonly type: "image_generation";
|
|
213
|
+
} | undefined;
|
|
213
214
|
readonly top_p?: number | undefined;
|
|
214
215
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
215
|
-
readonly instructions?: string | undefined;
|
|
216
216
|
readonly store?: boolean | undefined;
|
|
217
217
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
218
218
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -226,6 +226,9 @@ export declare const protocol: Protocol<{
|
|
|
226
226
|
readonly param?: string | null | undefined;
|
|
227
227
|
} | null | undefined;
|
|
228
228
|
readonly text?: string | undefined;
|
|
229
|
+
readonly message?: string | undefined;
|
|
230
|
+
readonly code?: string | null | undefined;
|
|
231
|
+
readonly delta?: string | undefined;
|
|
229
232
|
readonly response?: {
|
|
230
233
|
readonly [x: string]: unknown;
|
|
231
234
|
readonly error?: {
|
|
@@ -251,18 +254,15 @@ export declare const protocol: Protocol<{
|
|
|
251
254
|
readonly reason?: string | undefined;
|
|
252
255
|
} | null | undefined;
|
|
253
256
|
} | undefined;
|
|
254
|
-
readonly message?: string | undefined;
|
|
255
|
-
readonly code?: string | null | undefined;
|
|
256
257
|
readonly item?: {
|
|
257
258
|
readonly [x: string]: unknown;
|
|
258
259
|
readonly type: string;
|
|
259
|
-
readonly name?: string | undefined;
|
|
260
260
|
readonly id?: string | undefined;
|
|
261
|
+
readonly name?: string | undefined;
|
|
261
262
|
readonly arguments?: string | undefined;
|
|
262
263
|
readonly encrypted_content?: string | null | undefined;
|
|
263
264
|
readonly call_id?: string | undefined;
|
|
264
265
|
} | undefined;
|
|
265
|
-
readonly delta?: string | undefined;
|
|
266
266
|
readonly param?: string | null | undefined;
|
|
267
267
|
readonly item_id?: string | undefined;
|
|
268
268
|
readonly summary_index?: number | undefined;
|
|
@@ -270,64 +270,64 @@ export declare const protocol: Protocol<{
|
|
|
270
270
|
export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
271
271
|
readonly input: readonly ({
|
|
272
272
|
readonly type: "reasoning";
|
|
273
|
-
readonly summary: readonly
|
|
274
|
-
readonly type:
|
|
275
|
-
readonly text:
|
|
276
|
-
}
|
|
273
|
+
readonly summary: readonly {
|
|
274
|
+
readonly type: "summary_text";
|
|
275
|
+
readonly text: string;
|
|
276
|
+
}[];
|
|
277
277
|
readonly id?: string | undefined;
|
|
278
278
|
readonly encrypted_content?: string | null | undefined;
|
|
279
|
-
} |
|
|
280
|
-
readonly type:
|
|
281
|
-
readonly id:
|
|
282
|
-
}
|
|
283
|
-
readonly role:
|
|
284
|
-
readonly content:
|
|
285
|
-
}
|
|
286
|
-
readonly role:
|
|
287
|
-
readonly content:
|
|
288
|
-
readonly type:
|
|
289
|
-
readonly
|
|
290
|
-
}
|
|
291
|
-
readonly type:
|
|
292
|
-
readonly
|
|
293
|
-
|
|
294
|
-
readonly
|
|
295
|
-
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
readonly content: readonly
|
|
301
|
-
readonly type:
|
|
302
|
-
readonly text:
|
|
303
|
-
}
|
|
279
|
+
} | {
|
|
280
|
+
readonly type: "item_reference";
|
|
281
|
+
readonly id: string;
|
|
282
|
+
} | {
|
|
283
|
+
readonly role: "system";
|
|
284
|
+
readonly content: string;
|
|
285
|
+
} | {
|
|
286
|
+
readonly role: "user";
|
|
287
|
+
readonly content: readonly ({
|
|
288
|
+
readonly type: "input_image";
|
|
289
|
+
readonly image_url: string;
|
|
290
|
+
} | {
|
|
291
|
+
readonly type: "input_file";
|
|
292
|
+
readonly filename: string;
|
|
293
|
+
readonly file_data: string;
|
|
294
|
+
readonly mime_type?: string | undefined;
|
|
295
|
+
} | {
|
|
296
|
+
readonly type: "input_text";
|
|
297
|
+
readonly text: string;
|
|
298
|
+
})[];
|
|
299
|
+
} | {
|
|
300
|
+
readonly content: readonly {
|
|
301
|
+
readonly type: "output_text";
|
|
302
|
+
readonly text: string;
|
|
303
|
+
}[];
|
|
304
304
|
readonly role: "assistant";
|
|
305
305
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
306
|
-
} |
|
|
307
|
-
readonly type:
|
|
308
|
-
readonly call_id:
|
|
309
|
-
readonly name:
|
|
310
|
-
readonly arguments:
|
|
311
|
-
}
|
|
312
|
-
readonly type:
|
|
313
|
-
readonly call_id:
|
|
314
|
-
readonly output:
|
|
315
|
-
readonly type:
|
|
316
|
-
readonly
|
|
317
|
-
}
|
|
318
|
-
readonly type:
|
|
319
|
-
readonly
|
|
320
|
-
|
|
321
|
-
readonly
|
|
322
|
-
|
|
323
|
-
readonly
|
|
324
|
-
readonly
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
readonly content: readonly
|
|
328
|
-
readonly type:
|
|
329
|
-
readonly text:
|
|
330
|
-
}
|
|
306
|
+
} | {
|
|
307
|
+
readonly type: "function_call";
|
|
308
|
+
readonly call_id: string;
|
|
309
|
+
readonly name: string;
|
|
310
|
+
readonly arguments: string;
|
|
311
|
+
} | {
|
|
312
|
+
readonly type: "function_call_output";
|
|
313
|
+
readonly call_id: string;
|
|
314
|
+
readonly output: string | readonly ({
|
|
315
|
+
readonly type: "input_image";
|
|
316
|
+
readonly image_url: string;
|
|
317
|
+
} | {
|
|
318
|
+
readonly type: "input_file";
|
|
319
|
+
readonly filename: string;
|
|
320
|
+
readonly file_data: string;
|
|
321
|
+
readonly mime_type?: string | undefined;
|
|
322
|
+
} | {
|
|
323
|
+
readonly type: "input_text";
|
|
324
|
+
readonly text: string;
|
|
325
|
+
})[];
|
|
326
|
+
} | {
|
|
327
|
+
readonly content: readonly {
|
|
328
|
+
readonly type: "output_text";
|
|
329
|
+
readonly text: string;
|
|
330
|
+
}[];
|
|
331
331
|
readonly role: "assistant";
|
|
332
332
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
333
333
|
})[];
|
|
@@ -336,9 +336,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
336
336
|
readonly text?: {
|
|
337
337
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
338
338
|
} | undefined;
|
|
339
|
+
readonly instructions?: string | undefined;
|
|
339
340
|
readonly reasoning?: {
|
|
340
|
-
readonly effort?: string | undefined;
|
|
341
341
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
342
|
+
readonly effort?: string | undefined;
|
|
342
343
|
} | undefined;
|
|
343
344
|
readonly tools?: readonly ({
|
|
344
345
|
readonly type: "function";
|
|
@@ -350,25 +351,24 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
350
351
|
readonly strict?: boolean | undefined;
|
|
351
352
|
} | {
|
|
352
353
|
readonly type: "image_generation";
|
|
353
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
354
354
|
readonly size?: string | undefined;
|
|
355
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
356
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
355
357
|
readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
|
|
356
358
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
357
359
|
readonly output_compression?: number | undefined;
|
|
358
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
359
360
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
360
361
|
readonly partial_images?: number | undefined;
|
|
361
362
|
})[] | undefined;
|
|
362
363
|
readonly temperature?: number | undefined;
|
|
363
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
364
|
-
readonly type:
|
|
365
|
-
readonly name:
|
|
366
|
-
}
|
|
367
|
-
readonly type:
|
|
368
|
-
}
|
|
364
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
365
|
+
readonly type: "function";
|
|
366
|
+
readonly name: string;
|
|
367
|
+
} | {
|
|
368
|
+
readonly type: "image_generation";
|
|
369
|
+
} | undefined;
|
|
369
370
|
readonly top_p?: number | undefined;
|
|
370
371
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
371
|
-
readonly instructions?: string | undefined;
|
|
372
372
|
readonly store?: boolean | undefined;
|
|
373
373
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
374
374
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -377,64 +377,64 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
377
377
|
export declare const route: Route<{
|
|
378
378
|
readonly input: readonly ({
|
|
379
379
|
readonly type: "reasoning";
|
|
380
|
-
readonly summary: readonly
|
|
381
|
-
readonly type:
|
|
382
|
-
readonly text:
|
|
383
|
-
}
|
|
380
|
+
readonly summary: readonly {
|
|
381
|
+
readonly type: "summary_text";
|
|
382
|
+
readonly text: string;
|
|
383
|
+
}[];
|
|
384
384
|
readonly id?: string | undefined;
|
|
385
385
|
readonly encrypted_content?: string | null | undefined;
|
|
386
|
-
} |
|
|
387
|
-
readonly type:
|
|
388
|
-
readonly id:
|
|
389
|
-
}
|
|
390
|
-
readonly role:
|
|
391
|
-
readonly content:
|
|
392
|
-
}
|
|
393
|
-
readonly role:
|
|
394
|
-
readonly content:
|
|
395
|
-
readonly type:
|
|
396
|
-
readonly
|
|
397
|
-
}
|
|
398
|
-
readonly type:
|
|
399
|
-
readonly
|
|
400
|
-
|
|
401
|
-
readonly
|
|
402
|
-
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
readonly content: readonly
|
|
408
|
-
readonly type:
|
|
409
|
-
readonly text:
|
|
410
|
-
}
|
|
386
|
+
} | {
|
|
387
|
+
readonly type: "item_reference";
|
|
388
|
+
readonly id: string;
|
|
389
|
+
} | {
|
|
390
|
+
readonly role: "system";
|
|
391
|
+
readonly content: string;
|
|
392
|
+
} | {
|
|
393
|
+
readonly role: "user";
|
|
394
|
+
readonly content: readonly ({
|
|
395
|
+
readonly type: "input_image";
|
|
396
|
+
readonly image_url: string;
|
|
397
|
+
} | {
|
|
398
|
+
readonly type: "input_file";
|
|
399
|
+
readonly filename: string;
|
|
400
|
+
readonly file_data: string;
|
|
401
|
+
readonly mime_type?: string | undefined;
|
|
402
|
+
} | {
|
|
403
|
+
readonly type: "input_text";
|
|
404
|
+
readonly text: string;
|
|
405
|
+
})[];
|
|
406
|
+
} | {
|
|
407
|
+
readonly content: readonly {
|
|
408
|
+
readonly type: "output_text";
|
|
409
|
+
readonly text: string;
|
|
410
|
+
}[];
|
|
411
411
|
readonly role: "assistant";
|
|
412
412
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
413
|
-
} |
|
|
414
|
-
readonly type:
|
|
415
|
-
readonly call_id:
|
|
416
|
-
readonly name:
|
|
417
|
-
readonly arguments:
|
|
418
|
-
}
|
|
419
|
-
readonly type:
|
|
420
|
-
readonly call_id:
|
|
421
|
-
readonly output:
|
|
422
|
-
readonly type:
|
|
423
|
-
readonly
|
|
424
|
-
}
|
|
425
|
-
readonly type:
|
|
426
|
-
readonly
|
|
427
|
-
|
|
428
|
-
readonly
|
|
429
|
-
|
|
430
|
-
readonly
|
|
431
|
-
readonly
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
readonly content: readonly
|
|
435
|
-
readonly type:
|
|
436
|
-
readonly text:
|
|
437
|
-
}
|
|
413
|
+
} | {
|
|
414
|
+
readonly type: "function_call";
|
|
415
|
+
readonly call_id: string;
|
|
416
|
+
readonly name: string;
|
|
417
|
+
readonly arguments: string;
|
|
418
|
+
} | {
|
|
419
|
+
readonly type: "function_call_output";
|
|
420
|
+
readonly call_id: string;
|
|
421
|
+
readonly output: string | readonly ({
|
|
422
|
+
readonly type: "input_image";
|
|
423
|
+
readonly image_url: string;
|
|
424
|
+
} | {
|
|
425
|
+
readonly type: "input_file";
|
|
426
|
+
readonly filename: string;
|
|
427
|
+
readonly file_data: string;
|
|
428
|
+
readonly mime_type?: string | undefined;
|
|
429
|
+
} | {
|
|
430
|
+
readonly type: "input_text";
|
|
431
|
+
readonly text: string;
|
|
432
|
+
})[];
|
|
433
|
+
} | {
|
|
434
|
+
readonly content: readonly {
|
|
435
|
+
readonly type: "output_text";
|
|
436
|
+
readonly text: string;
|
|
437
|
+
}[];
|
|
438
438
|
readonly role: "assistant";
|
|
439
439
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
440
440
|
})[];
|
|
@@ -443,9 +443,10 @@ export declare const route: Route<{
|
|
|
443
443
|
readonly text?: {
|
|
444
444
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
445
445
|
} | undefined;
|
|
446
|
+
readonly instructions?: string | undefined;
|
|
446
447
|
readonly reasoning?: {
|
|
447
|
-
readonly effort?: string | undefined;
|
|
448
448
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
449
|
+
readonly effort?: string | undefined;
|
|
449
450
|
} | undefined;
|
|
450
451
|
readonly tools?: readonly ({
|
|
451
452
|
readonly type: "function";
|
|
@@ -457,25 +458,24 @@ export declare const route: Route<{
|
|
|
457
458
|
readonly strict?: boolean | undefined;
|
|
458
459
|
} | {
|
|
459
460
|
readonly type: "image_generation";
|
|
460
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
461
461
|
readonly size?: string | undefined;
|
|
462
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
463
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
462
464
|
readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
|
|
463
465
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
464
466
|
readonly output_compression?: number | undefined;
|
|
465
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
466
467
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
467
468
|
readonly partial_images?: number | undefined;
|
|
468
469
|
})[] | undefined;
|
|
469
470
|
readonly temperature?: number | undefined;
|
|
470
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
471
|
-
readonly type:
|
|
472
|
-
readonly name:
|
|
473
|
-
}
|
|
474
|
-
readonly type:
|
|
475
|
-
}
|
|
471
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
472
|
+
readonly type: "function";
|
|
473
|
+
readonly name: string;
|
|
474
|
+
} | {
|
|
475
|
+
readonly type: "image_generation";
|
|
476
|
+
} | undefined;
|
|
476
477
|
readonly top_p?: number | undefined;
|
|
477
478
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
478
|
-
readonly instructions?: string | undefined;
|
|
479
479
|
readonly store?: boolean | undefined;
|
|
480
480
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
481
481
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -484,64 +484,64 @@ export declare const route: Route<{
|
|
|
484
484
|
export declare const webSocketTransport: import("../route/transport/websocket").JsonTransport<{
|
|
485
485
|
readonly input: readonly ({
|
|
486
486
|
readonly type: "reasoning";
|
|
487
|
-
readonly summary: readonly
|
|
488
|
-
readonly type:
|
|
489
|
-
readonly text:
|
|
490
|
-
}
|
|
487
|
+
readonly summary: readonly {
|
|
488
|
+
readonly type: "summary_text";
|
|
489
|
+
readonly text: string;
|
|
490
|
+
}[];
|
|
491
491
|
readonly id?: string | undefined;
|
|
492
492
|
readonly encrypted_content?: string | null | undefined;
|
|
493
|
-
} |
|
|
494
|
-
readonly type:
|
|
495
|
-
readonly id:
|
|
496
|
-
}
|
|
497
|
-
readonly role:
|
|
498
|
-
readonly content:
|
|
499
|
-
}
|
|
500
|
-
readonly role:
|
|
501
|
-
readonly content:
|
|
502
|
-
readonly type:
|
|
503
|
-
readonly
|
|
504
|
-
}
|
|
505
|
-
readonly type:
|
|
506
|
-
readonly
|
|
507
|
-
|
|
508
|
-
readonly
|
|
509
|
-
|
|
510
|
-
readonly
|
|
511
|
-
readonly
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
readonly content: readonly
|
|
515
|
-
readonly type:
|
|
516
|
-
readonly text:
|
|
517
|
-
}
|
|
493
|
+
} | {
|
|
494
|
+
readonly type: "item_reference";
|
|
495
|
+
readonly id: string;
|
|
496
|
+
} | {
|
|
497
|
+
readonly role: "system";
|
|
498
|
+
readonly content: string;
|
|
499
|
+
} | {
|
|
500
|
+
readonly role: "user";
|
|
501
|
+
readonly content: readonly ({
|
|
502
|
+
readonly type: "input_image";
|
|
503
|
+
readonly image_url: string;
|
|
504
|
+
} | {
|
|
505
|
+
readonly type: "input_file";
|
|
506
|
+
readonly filename: string;
|
|
507
|
+
readonly file_data: string;
|
|
508
|
+
readonly mime_type?: string | undefined;
|
|
509
|
+
} | {
|
|
510
|
+
readonly type: "input_text";
|
|
511
|
+
readonly text: string;
|
|
512
|
+
})[];
|
|
513
|
+
} | {
|
|
514
|
+
readonly content: readonly {
|
|
515
|
+
readonly type: "output_text";
|
|
516
|
+
readonly text: string;
|
|
517
|
+
}[];
|
|
518
518
|
readonly role: "assistant";
|
|
519
519
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
520
|
-
} |
|
|
521
|
-
readonly type:
|
|
522
|
-
readonly call_id:
|
|
523
|
-
readonly name:
|
|
524
|
-
readonly arguments:
|
|
525
|
-
}
|
|
526
|
-
readonly type:
|
|
527
|
-
readonly call_id:
|
|
528
|
-
readonly output:
|
|
529
|
-
readonly type:
|
|
530
|
-
readonly
|
|
531
|
-
}
|
|
532
|
-
readonly type:
|
|
533
|
-
readonly
|
|
534
|
-
|
|
535
|
-
readonly
|
|
536
|
-
|
|
537
|
-
readonly
|
|
538
|
-
readonly
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
readonly content: readonly
|
|
542
|
-
readonly type:
|
|
543
|
-
readonly text:
|
|
544
|
-
}
|
|
520
|
+
} | {
|
|
521
|
+
readonly type: "function_call";
|
|
522
|
+
readonly call_id: string;
|
|
523
|
+
readonly name: string;
|
|
524
|
+
readonly arguments: string;
|
|
525
|
+
} | {
|
|
526
|
+
readonly type: "function_call_output";
|
|
527
|
+
readonly call_id: string;
|
|
528
|
+
readonly output: string | readonly ({
|
|
529
|
+
readonly type: "input_image";
|
|
530
|
+
readonly image_url: string;
|
|
531
|
+
} | {
|
|
532
|
+
readonly type: "input_file";
|
|
533
|
+
readonly filename: string;
|
|
534
|
+
readonly file_data: string;
|
|
535
|
+
readonly mime_type?: string | undefined;
|
|
536
|
+
} | {
|
|
537
|
+
readonly type: "input_text";
|
|
538
|
+
readonly text: string;
|
|
539
|
+
})[];
|
|
540
|
+
} | {
|
|
541
|
+
readonly content: readonly {
|
|
542
|
+
readonly type: "output_text";
|
|
543
|
+
readonly text: string;
|
|
544
|
+
}[];
|
|
545
545
|
readonly role: "assistant";
|
|
546
546
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
547
547
|
})[];
|
|
@@ -550,9 +550,10 @@ export declare const webSocketTransport: import("../route/transport/websocket").
|
|
|
550
550
|
readonly text?: {
|
|
551
551
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
552
552
|
} | undefined;
|
|
553
|
+
readonly instructions?: string | undefined;
|
|
553
554
|
readonly reasoning?: {
|
|
554
|
-
readonly effort?: string | undefined;
|
|
555
555
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
556
|
+
readonly effort?: string | undefined;
|
|
556
557
|
} | undefined;
|
|
557
558
|
readonly tools?: readonly ({
|
|
558
559
|
readonly type: "function";
|
|
@@ -564,25 +565,24 @@ export declare const webSocketTransport: import("../route/transport/websocket").
|
|
|
564
565
|
readonly strict?: boolean | undefined;
|
|
565
566
|
} | {
|
|
566
567
|
readonly type: "image_generation";
|
|
567
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
568
568
|
readonly size?: string | undefined;
|
|
569
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
570
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
569
571
|
readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
|
|
570
572
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
571
573
|
readonly output_compression?: number | undefined;
|
|
572
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
573
574
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
574
575
|
readonly partial_images?: number | undefined;
|
|
575
576
|
})[] | undefined;
|
|
576
577
|
readonly temperature?: number | undefined;
|
|
577
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
578
|
-
readonly type:
|
|
579
|
-
readonly name:
|
|
580
|
-
}
|
|
581
|
-
readonly type:
|
|
582
|
-
}
|
|
578
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
579
|
+
readonly type: "function";
|
|
580
|
+
readonly name: string;
|
|
581
|
+
} | {
|
|
582
|
+
readonly type: "image_generation";
|
|
583
|
+
} | undefined;
|
|
583
584
|
readonly top_p?: number | undefined;
|
|
584
585
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
585
|
-
readonly instructions?: string | undefined;
|
|
586
586
|
readonly store?: boolean | undefined;
|
|
587
587
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
588
588
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -592,64 +592,64 @@ export declare const webSocketTransport: import("../route/transport/websocket").
|
|
|
592
592
|
readonly type: "response.create";
|
|
593
593
|
readonly input: readonly ({
|
|
594
594
|
readonly type: "reasoning";
|
|
595
|
-
readonly summary: readonly
|
|
596
|
-
readonly type:
|
|
597
|
-
readonly text:
|
|
598
|
-
}
|
|
595
|
+
readonly summary: readonly {
|
|
596
|
+
readonly type: "summary_text";
|
|
597
|
+
readonly text: string;
|
|
598
|
+
}[];
|
|
599
599
|
readonly id?: string | undefined;
|
|
600
600
|
readonly encrypted_content?: string | null | undefined;
|
|
601
|
-
} |
|
|
602
|
-
readonly type:
|
|
603
|
-
readonly id:
|
|
604
|
-
}
|
|
605
|
-
readonly role:
|
|
606
|
-
readonly content:
|
|
607
|
-
}
|
|
608
|
-
readonly role:
|
|
609
|
-
readonly content:
|
|
610
|
-
readonly type:
|
|
611
|
-
readonly
|
|
612
|
-
}
|
|
613
|
-
readonly type:
|
|
614
|
-
readonly
|
|
615
|
-
|
|
616
|
-
readonly
|
|
617
|
-
|
|
618
|
-
readonly
|
|
619
|
-
readonly
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
readonly content: readonly
|
|
623
|
-
readonly type:
|
|
624
|
-
readonly text:
|
|
625
|
-
}
|
|
601
|
+
} | {
|
|
602
|
+
readonly type: "item_reference";
|
|
603
|
+
readonly id: string;
|
|
604
|
+
} | {
|
|
605
|
+
readonly role: "system";
|
|
606
|
+
readonly content: string;
|
|
607
|
+
} | {
|
|
608
|
+
readonly role: "user";
|
|
609
|
+
readonly content: readonly ({
|
|
610
|
+
readonly type: "input_image";
|
|
611
|
+
readonly image_url: string;
|
|
612
|
+
} | {
|
|
613
|
+
readonly type: "input_file";
|
|
614
|
+
readonly filename: string;
|
|
615
|
+
readonly file_data: string;
|
|
616
|
+
readonly mime_type?: string | undefined;
|
|
617
|
+
} | {
|
|
618
|
+
readonly type: "input_text";
|
|
619
|
+
readonly text: string;
|
|
620
|
+
})[];
|
|
621
|
+
} | {
|
|
622
|
+
readonly content: readonly {
|
|
623
|
+
readonly type: "output_text";
|
|
624
|
+
readonly text: string;
|
|
625
|
+
}[];
|
|
626
626
|
readonly role: "assistant";
|
|
627
627
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
628
|
-
} |
|
|
629
|
-
readonly type:
|
|
630
|
-
readonly call_id:
|
|
631
|
-
readonly name:
|
|
632
|
-
readonly arguments:
|
|
633
|
-
}
|
|
634
|
-
readonly type:
|
|
635
|
-
readonly call_id:
|
|
636
|
-
readonly output:
|
|
637
|
-
readonly type:
|
|
638
|
-
readonly
|
|
639
|
-
}
|
|
640
|
-
readonly type:
|
|
641
|
-
readonly
|
|
642
|
-
|
|
643
|
-
readonly
|
|
644
|
-
|
|
645
|
-
readonly
|
|
646
|
-
readonly
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
readonly content: readonly
|
|
650
|
-
readonly type:
|
|
651
|
-
readonly text:
|
|
652
|
-
}
|
|
628
|
+
} | {
|
|
629
|
+
readonly type: "function_call";
|
|
630
|
+
readonly call_id: string;
|
|
631
|
+
readonly name: string;
|
|
632
|
+
readonly arguments: string;
|
|
633
|
+
} | {
|
|
634
|
+
readonly type: "function_call_output";
|
|
635
|
+
readonly call_id: string;
|
|
636
|
+
readonly output: string | readonly ({
|
|
637
|
+
readonly type: "input_image";
|
|
638
|
+
readonly image_url: string;
|
|
639
|
+
} | {
|
|
640
|
+
readonly type: "input_file";
|
|
641
|
+
readonly filename: string;
|
|
642
|
+
readonly file_data: string;
|
|
643
|
+
readonly mime_type?: string | undefined;
|
|
644
|
+
} | {
|
|
645
|
+
readonly type: "input_text";
|
|
646
|
+
readonly text: string;
|
|
647
|
+
})[];
|
|
648
|
+
} | {
|
|
649
|
+
readonly content: readonly {
|
|
650
|
+
readonly type: "output_text";
|
|
651
|
+
readonly text: string;
|
|
652
|
+
}[];
|
|
653
653
|
readonly role: "assistant";
|
|
654
654
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
655
655
|
})[];
|
|
@@ -657,9 +657,10 @@ export declare const webSocketTransport: import("../route/transport/websocket").
|
|
|
657
657
|
readonly text?: {
|
|
658
658
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
659
659
|
} | undefined;
|
|
660
|
+
readonly instructions?: string | undefined;
|
|
660
661
|
readonly reasoning?: {
|
|
661
|
-
readonly effort?: string | undefined;
|
|
662
662
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
663
|
+
readonly effort?: string | undefined;
|
|
663
664
|
} | undefined;
|
|
664
665
|
readonly tools?: readonly ({
|
|
665
666
|
readonly type: "function";
|
|
@@ -671,25 +672,24 @@ export declare const webSocketTransport: import("../route/transport/websocket").
|
|
|
671
672
|
readonly strict?: boolean | undefined;
|
|
672
673
|
} | {
|
|
673
674
|
readonly type: "image_generation";
|
|
674
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
675
675
|
readonly size?: string | undefined;
|
|
676
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
677
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
676
678
|
readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
|
|
677
679
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
678
680
|
readonly output_compression?: number | undefined;
|
|
679
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
680
681
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
681
682
|
readonly partial_images?: number | undefined;
|
|
682
683
|
})[] | undefined;
|
|
683
684
|
readonly temperature?: number | undefined;
|
|
684
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
685
|
-
readonly type:
|
|
686
|
-
readonly name:
|
|
687
|
-
}
|
|
688
|
-
readonly type:
|
|
689
|
-
}
|
|
685
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
686
|
+
readonly type: "function";
|
|
687
|
+
readonly name: string;
|
|
688
|
+
} | {
|
|
689
|
+
readonly type: "image_generation";
|
|
690
|
+
} | undefined;
|
|
690
691
|
readonly top_p?: number | undefined;
|
|
691
692
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
692
|
-
readonly instructions?: string | undefined;
|
|
693
693
|
readonly store?: boolean | undefined;
|
|
694
694
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
695
695
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -698,64 +698,64 @@ export declare const webSocketTransport: import("../route/transport/websocket").
|
|
|
698
698
|
export declare const webSocketRoute: Route<{
|
|
699
699
|
readonly input: readonly ({
|
|
700
700
|
readonly type: "reasoning";
|
|
701
|
-
readonly summary: readonly
|
|
702
|
-
readonly type:
|
|
703
|
-
readonly text:
|
|
704
|
-
}
|
|
701
|
+
readonly summary: readonly {
|
|
702
|
+
readonly type: "summary_text";
|
|
703
|
+
readonly text: string;
|
|
704
|
+
}[];
|
|
705
705
|
readonly id?: string | undefined;
|
|
706
706
|
readonly encrypted_content?: string | null | undefined;
|
|
707
|
-
} |
|
|
708
|
-
readonly type:
|
|
709
|
-
readonly id:
|
|
710
|
-
}
|
|
711
|
-
readonly role:
|
|
712
|
-
readonly content:
|
|
713
|
-
}
|
|
714
|
-
readonly role:
|
|
715
|
-
readonly content:
|
|
716
|
-
readonly type:
|
|
717
|
-
readonly
|
|
718
|
-
}
|
|
719
|
-
readonly type:
|
|
720
|
-
readonly
|
|
721
|
-
|
|
722
|
-
readonly
|
|
723
|
-
|
|
724
|
-
readonly
|
|
725
|
-
readonly
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
readonly content: readonly
|
|
729
|
-
readonly type:
|
|
730
|
-
readonly text:
|
|
731
|
-
}
|
|
707
|
+
} | {
|
|
708
|
+
readonly type: "item_reference";
|
|
709
|
+
readonly id: string;
|
|
710
|
+
} | {
|
|
711
|
+
readonly role: "system";
|
|
712
|
+
readonly content: string;
|
|
713
|
+
} | {
|
|
714
|
+
readonly role: "user";
|
|
715
|
+
readonly content: readonly ({
|
|
716
|
+
readonly type: "input_image";
|
|
717
|
+
readonly image_url: string;
|
|
718
|
+
} | {
|
|
719
|
+
readonly type: "input_file";
|
|
720
|
+
readonly filename: string;
|
|
721
|
+
readonly file_data: string;
|
|
722
|
+
readonly mime_type?: string | undefined;
|
|
723
|
+
} | {
|
|
724
|
+
readonly type: "input_text";
|
|
725
|
+
readonly text: string;
|
|
726
|
+
})[];
|
|
727
|
+
} | {
|
|
728
|
+
readonly content: readonly {
|
|
729
|
+
readonly type: "output_text";
|
|
730
|
+
readonly text: string;
|
|
731
|
+
}[];
|
|
732
732
|
readonly role: "assistant";
|
|
733
733
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
734
|
-
} |
|
|
735
|
-
readonly type:
|
|
736
|
-
readonly call_id:
|
|
737
|
-
readonly name:
|
|
738
|
-
readonly arguments:
|
|
739
|
-
}
|
|
740
|
-
readonly type:
|
|
741
|
-
readonly call_id:
|
|
742
|
-
readonly output:
|
|
743
|
-
readonly type:
|
|
744
|
-
readonly
|
|
745
|
-
}
|
|
746
|
-
readonly type:
|
|
747
|
-
readonly
|
|
748
|
-
|
|
749
|
-
readonly
|
|
750
|
-
|
|
751
|
-
readonly
|
|
752
|
-
readonly
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
readonly content: readonly
|
|
756
|
-
readonly type:
|
|
757
|
-
readonly text:
|
|
758
|
-
}
|
|
734
|
+
} | {
|
|
735
|
+
readonly type: "function_call";
|
|
736
|
+
readonly call_id: string;
|
|
737
|
+
readonly name: string;
|
|
738
|
+
readonly arguments: string;
|
|
739
|
+
} | {
|
|
740
|
+
readonly type: "function_call_output";
|
|
741
|
+
readonly call_id: string;
|
|
742
|
+
readonly output: string | readonly ({
|
|
743
|
+
readonly type: "input_image";
|
|
744
|
+
readonly image_url: string;
|
|
745
|
+
} | {
|
|
746
|
+
readonly type: "input_file";
|
|
747
|
+
readonly filename: string;
|
|
748
|
+
readonly file_data: string;
|
|
749
|
+
readonly mime_type?: string | undefined;
|
|
750
|
+
} | {
|
|
751
|
+
readonly type: "input_text";
|
|
752
|
+
readonly text: string;
|
|
753
|
+
})[];
|
|
754
|
+
} | {
|
|
755
|
+
readonly content: readonly {
|
|
756
|
+
readonly type: "output_text";
|
|
757
|
+
readonly text: string;
|
|
758
|
+
}[];
|
|
759
759
|
readonly role: "assistant";
|
|
760
760
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
761
761
|
})[];
|
|
@@ -764,9 +764,10 @@ export declare const webSocketRoute: Route<{
|
|
|
764
764
|
readonly text?: {
|
|
765
765
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
766
766
|
} | undefined;
|
|
767
|
+
readonly instructions?: string | undefined;
|
|
767
768
|
readonly reasoning?: {
|
|
768
|
-
readonly effort?: string | undefined;
|
|
769
769
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
770
|
+
readonly effort?: string | undefined;
|
|
770
771
|
} | undefined;
|
|
771
772
|
readonly tools?: readonly ({
|
|
772
773
|
readonly type: "function";
|
|
@@ -778,25 +779,24 @@ export declare const webSocketRoute: Route<{
|
|
|
778
779
|
readonly strict?: boolean | undefined;
|
|
779
780
|
} | {
|
|
780
781
|
readonly type: "image_generation";
|
|
781
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
782
782
|
readonly size?: string | undefined;
|
|
783
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
784
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
783
785
|
readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
|
|
784
786
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
785
787
|
readonly output_compression?: number | undefined;
|
|
786
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
787
788
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
788
789
|
readonly partial_images?: number | undefined;
|
|
789
790
|
})[] | undefined;
|
|
790
791
|
readonly temperature?: number | undefined;
|
|
791
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
792
|
-
readonly type:
|
|
793
|
-
readonly name:
|
|
794
|
-
}
|
|
795
|
-
readonly type:
|
|
796
|
-
}
|
|
792
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
793
|
+
readonly type: "function";
|
|
794
|
+
readonly name: string;
|
|
795
|
+
} | {
|
|
796
|
+
readonly type: "image_generation";
|
|
797
|
+
} | undefined;
|
|
797
798
|
readonly top_p?: number | undefined;
|
|
798
799
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
799
|
-
readonly instructions?: string | undefined;
|
|
800
800
|
readonly store?: boolean | undefined;
|
|
801
801
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
802
802
|
readonly prompt_cache_key?: string | undefined;
|