@opencode/ai 2.1.2 → 2.1.4
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/cache-policy.js +6 -5
- package/dist/experimental/evaluation.d.ts +7 -6
- package/dist/experimental/evaluation.js +3 -11
- package/dist/experimental/realtime.d.ts +59 -0
- package/dist/experimental/realtime.js +21 -13
- package/dist/experimental.d.ts +1 -1
- package/dist/generation.js +1 -1
- package/dist/image-client.d.ts +11 -9
- package/dist/image.d.ts +158 -150
- package/dist/image.js +2 -2
- package/dist/llm.d.ts +2 -4
- package/dist/llm.js +2 -2
- package/dist/media-model.d.ts +2 -2
- package/dist/media-model.js +1 -1
- package/dist/promise.d.ts +121 -121
- package/dist/promise.js +3 -5
- package/dist/protocols/alibaba-chat.d.ts +18 -18
- package/dist/protocols/alibaba-chat.js +3 -3
- package/dist/protocols/alibaba-messages.d.ts +12 -12
- package/dist/protocols/alibaba-messages.js +1 -1
- package/dist/protocols/alibaba-responses.d.ts +38 -38
- package/dist/protocols/anthropic-messages.d.ts +40 -44
- package/dist/protocols/anthropic-messages.js +13 -15
- package/dist/protocols/bedrock-converse.d.ts +36 -85
- package/dist/protocols/bedrock-converse.js +6 -6
- package/dist/protocols/bedrock-event-stream.d.ts +6 -1
- package/dist/protocols/bedrock-event-stream.js +9 -8
- package/dist/protocols/cartesia-speech.d.ts +32 -32
- package/dist/protocols/cohere-chat.d.ts +13 -10
- package/dist/protocols/cohere-chat.js +2 -2
- package/dist/protocols/deepgram-speech.d.ts +32 -32
- package/dist/protocols/elevenlabs-speech.d.ts +32 -32
- package/dist/protocols/gemini.d.ts +46 -36
- package/dist/protocols/gemini.js +12 -15
- package/dist/protocols/google-interactions.d.ts +14 -13
- package/dist/protocols/google-interactions.js +16 -11
- package/dist/protocols/google-speech.d.ts +32 -32
- package/dist/protocols/google-transcription.d.ts +32 -32
- package/dist/protocols/meta-messages.d.ts +23 -23
- package/dist/protocols/meta-responses.d.ts +84 -84
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +3 -5
- package/dist/protocols/open-responses-channel.js +47 -46
- package/dist/protocols/open-responses-continuation.d.ts +8 -2
- package/dist/protocols/open-responses-continuation.js +3 -1
- package/dist/protocols/open-responses.d.ts +419 -419
- package/dist/protocols/open-responses.js +11 -10
- package/dist/protocols/openai-chat.d.ts +68 -67
- package/dist/protocols/openai-chat.js +7 -8
- package/dist/protocols/openai-compatible-chat.d.ts +13 -14
- package/dist/protocols/openai-compatible-responses.d.ts +39 -40
- package/dist/protocols/openai-images.d.ts +32 -32
- package/dist/protocols/openai-responses.d.ts +253 -253
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +32 -32
- package/dist/protocols/openai-transcription.d.ts +32 -32
- package/dist/protocols/openai-transcription.js +12 -7
- package/dist/protocols/utils/open-responses-options.d.ts +8 -8
- package/dist/protocols/utils/open-responses-options.js +4 -6
- package/dist/protocols/utils/partial-json-options.d.ts +0 -1
- package/dist/protocols/utils/partial-json-options.js +0 -1
- package/dist/protocols/utils/partial-json.js +5 -4
- package/dist/protocols/utils/tool-schema.d.ts +0 -3
- package/dist/protocols/utils/tool-schema.js +0 -4
- package/dist/protocols/utils/tool-stream.d.ts +1 -1
- package/dist/protocols/venice-chat.d.ts +52 -53
- package/dist/protocols/venice-chat.js +6 -5
- package/dist/protocols/xai-images.js +3 -4
- package/dist/protocols/xai-responses.d.ts +81 -81
- package/dist/protocols/zai-chat.d.ts +33 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-messages.d.ts +21 -19
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +8 -7
- package/dist/providers/alibaba.d.ts +74 -74
- package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
- package/dist/providers/amazon-bedrock.d.ts +16 -13
- package/dist/providers/anthropic-compatible.d.ts +13 -13
- package/dist/providers/anthropic.d.ts +13 -13
- package/dist/providers/azure.d.ts +112 -112
- package/dist/providers/baseten.d.ts +24 -24
- package/dist/providers/cerebras.d.ts +24 -24
- package/dist/providers/cloudflare-ai-gateway.d.ts +237 -234
- package/dist/providers/cloudflare-ai-gateway.js +3 -6
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
- package/dist/providers/cohere.d.ts +78 -74
- package/dist/providers/deepinfra.d.ts +24 -24
- package/dist/providers/deepseek.d.ts +24 -24
- package/dist/providers/digitalocean.d.ts +36 -36
- package/dist/providers/fireworks.d.ts +24 -24
- package/dist/providers/google-vertex-chat.d.ts +12 -12
- package/dist/providers/google-vertex-interactions.d.ts +3 -3
- package/dist/providers/google-vertex-messages.d.ts +20 -20
- package/dist/providers/google-vertex-mistral.d.ts +14 -14
- package/dist/providers/google-vertex-responses.d.ts +38 -38
- package/dist/providers/google-vertex.d.ts +17 -17
- package/dist/providers/google-vertex.js +2 -2
- package/dist/providers/google.d.ts +79 -79
- package/dist/providers/groq.d.ts +24 -24
- package/dist/providers/meta.d.ts +189 -189
- package/dist/providers/minimax.d.ts +202 -202
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +202 -202
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +38 -38
- package/dist/providers/openai-compatible.d.ts +12 -12
- package/dist/providers/openai-compatible.js +1 -1
- package/dist/providers/openai-options.d.ts +3 -4
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +103 -103
- package/dist/providers/openrouter.d.ts +171 -112
- package/dist/providers/openrouter.js +40 -33
- package/dist/providers/togetherai.d.ts +24 -24
- package/dist/providers/venice.d.ts +195 -20
- package/dist/providers/xai.d.ts +12 -12
- package/dist/providers/zai-coding-plan.d.ts +152 -72
- package/dist/providers/zai.d.ts +84 -19
- package/dist/route/auth-options.d.ts +0 -3
- package/dist/route/auth.d.ts +0 -2
- package/dist/route/auth.js +0 -2
- package/dist/route/client.d.ts +0 -218
- package/dist/route/client.js +3 -7
- package/dist/route/executor-service.js +1 -1
- package/dist/route/transport/http.js +5 -8
- package/dist/schema/errors.d.ts +1 -1
- package/dist/schema/errors.js +1 -1
- package/dist/schema/messages.js +4 -7
- package/dist/speech-client.d.ts +11 -9
- package/dist/speech.d.ts +158 -150
- package/dist/speech.js +2 -2
- package/dist/transcription-client.d.ts +11 -9
- package/dist/transcription.d.ts +158 -150
- package/dist/transcription.js +2 -2
- package/dist/video-client.d.ts +11 -9
- package/dist/video.d.ts +124 -116
- package/dist/video.js +2 -2
- package/package.json +7 -6
- package/dist/protocols/utils/openai-options.d.ts +0 -16
- package/dist/protocols/utils/openai-options.js +0 -15
|
@@ -134,15 +134,15 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
134
134
|
}>>;
|
|
135
135
|
readonly top_logprobs: Schema.optional<Schema.Int>;
|
|
136
136
|
readonly truncation: Schema.optional<Schema.Literals<readonly ["auto", "disabled"]>>;
|
|
137
|
-
readonly service_tier: Schema.optional<Schema.declare<
|
|
137
|
+
readonly service_tier: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority">, import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority">>>;
|
|
138
138
|
readonly prompt_cache_key: Schema.optional<Schema.String>;
|
|
139
|
-
readonly include: Schema.optional<Schema.$Array<Schema.declare<
|
|
139
|
+
readonly include: Schema.optional<Schema.$Array<Schema.declare<import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">, import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">>>>;
|
|
140
140
|
readonly reasoning: Schema.optional<Schema.Struct<{
|
|
141
141
|
readonly effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
142
142
|
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
143
143
|
}>>;
|
|
144
144
|
readonly text: Schema.optional<Schema.Struct<{
|
|
145
|
-
readonly verbosity: Schema.optional<Schema.declare<
|
|
145
|
+
readonly verbosity: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"high" | "low" | "medium">, import("../schema/options.js").OpenString<"high" | "low" | "medium">>>;
|
|
146
146
|
}>>;
|
|
147
147
|
readonly max_output_tokens: Schema.optional<Schema.Number>;
|
|
148
148
|
readonly max_tool_calls: Schema.optional<Schema.Int>;
|
|
@@ -206,14 +206,6 @@ export declare const CompactionTrigger: Schema.Struct<{
|
|
|
206
206
|
export declare const protocol: Protocol<{
|
|
207
207
|
readonly model: string;
|
|
208
208
|
readonly input: readonly ({
|
|
209
|
-
readonly [x: string]: unknown;
|
|
210
|
-
readonly type: string;
|
|
211
|
-
readonly id: string;
|
|
212
|
-
} | {
|
|
213
|
-
readonly type: "compaction";
|
|
214
|
-
readonly id?: string | null | undefined;
|
|
215
|
-
readonly encrypted_content: string;
|
|
216
|
-
} | {
|
|
217
209
|
readonly type: "configuration_update";
|
|
218
210
|
readonly reasoning: {
|
|
219
211
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -226,10 +218,45 @@ export declare const protocol: Protocol<{
|
|
|
226
218
|
readonly type: "message";
|
|
227
219
|
readonly role: "developer";
|
|
228
220
|
readonly content: string;
|
|
221
|
+
} | {
|
|
222
|
+
readonly type: "function_call_output";
|
|
223
|
+
readonly call_id: string;
|
|
224
|
+
readonly output: string | readonly ({
|
|
225
|
+
readonly type: "input_text";
|
|
226
|
+
readonly text: string;
|
|
227
|
+
} | {
|
|
228
|
+
readonly type: "input_video";
|
|
229
|
+
readonly video_url: string;
|
|
230
|
+
} | {
|
|
231
|
+
readonly type: "input_image";
|
|
232
|
+
readonly image_url: string;
|
|
233
|
+
readonly detail?: string | undefined;
|
|
234
|
+
} | {
|
|
235
|
+
readonly type: "input_file";
|
|
236
|
+
readonly filename: string;
|
|
237
|
+
readonly detail?: string | undefined;
|
|
238
|
+
readonly file_data?: string | undefined;
|
|
239
|
+
readonly file_url?: string | undefined;
|
|
240
|
+
})[];
|
|
241
|
+
} | {
|
|
242
|
+
readonly type: "reasoning";
|
|
243
|
+
readonly id?: string | undefined;
|
|
244
|
+
readonly summary: readonly {
|
|
245
|
+
readonly type: "summary_text";
|
|
246
|
+
readonly text: string;
|
|
247
|
+
}[];
|
|
248
|
+
readonly encrypted_content?: string | null | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
readonly type: "compaction";
|
|
251
|
+
readonly id?: string | null | undefined;
|
|
252
|
+
readonly encrypted_content: string;
|
|
229
253
|
} | {
|
|
230
254
|
readonly type: "message";
|
|
231
255
|
readonly role: "user";
|
|
232
256
|
readonly content: readonly ({
|
|
257
|
+
readonly type: "input_text";
|
|
258
|
+
readonly text: string;
|
|
259
|
+
} | {
|
|
233
260
|
readonly type: "input_image";
|
|
234
261
|
readonly image_url: string;
|
|
235
262
|
readonly detail?: string | undefined;
|
|
@@ -239,9 +266,6 @@ export declare const protocol: Protocol<{
|
|
|
239
266
|
readonly detail?: string | undefined;
|
|
240
267
|
readonly file_data?: string | undefined;
|
|
241
268
|
readonly file_url?: string | undefined;
|
|
242
|
-
} | {
|
|
243
|
-
readonly type: "input_text";
|
|
244
|
-
readonly text: string;
|
|
245
269
|
})[];
|
|
246
270
|
readonly id?: string | undefined;
|
|
247
271
|
readonly status?: string | undefined;
|
|
@@ -255,14 +279,6 @@ export declare const protocol: Protocol<{
|
|
|
255
279
|
}[];
|
|
256
280
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
257
281
|
readonly status?: string | undefined;
|
|
258
|
-
} | {
|
|
259
|
-
readonly type: "reasoning";
|
|
260
|
-
readonly id?: string | undefined;
|
|
261
|
-
readonly summary: readonly {
|
|
262
|
-
readonly type: "summary_text";
|
|
263
|
-
readonly text: string;
|
|
264
|
-
}[];
|
|
265
|
-
readonly encrypted_content?: string | null | undefined;
|
|
266
282
|
} | {
|
|
267
283
|
readonly type: "function_call";
|
|
268
284
|
readonly id?: string | undefined;
|
|
@@ -270,26 +286,6 @@ export declare const protocol: Protocol<{
|
|
|
270
286
|
readonly name: string;
|
|
271
287
|
readonly namespace?: string | undefined;
|
|
272
288
|
readonly arguments: string;
|
|
273
|
-
} | {
|
|
274
|
-
readonly type: "function_call_output";
|
|
275
|
-
readonly call_id: string;
|
|
276
|
-
readonly output: string | readonly ({
|
|
277
|
-
readonly type: "input_image";
|
|
278
|
-
readonly image_url: string;
|
|
279
|
-
readonly detail?: string | undefined;
|
|
280
|
-
} | {
|
|
281
|
-
readonly type: "input_file";
|
|
282
|
-
readonly filename: string;
|
|
283
|
-
readonly detail?: string | undefined;
|
|
284
|
-
readonly file_data?: string | undefined;
|
|
285
|
-
readonly file_url?: string | undefined;
|
|
286
|
-
} | {
|
|
287
|
-
readonly type: "input_text";
|
|
288
|
-
readonly text: string;
|
|
289
|
-
} | {
|
|
290
|
-
readonly type: "input_video";
|
|
291
|
-
readonly video_url: string;
|
|
292
|
-
})[];
|
|
293
289
|
} | {
|
|
294
290
|
readonly [x: string]: unknown;
|
|
295
291
|
readonly type: "web_search_call";
|
|
@@ -327,6 +323,10 @@ export declare const protocol: Protocol<{
|
|
|
327
323
|
readonly arguments?: string | undefined;
|
|
328
324
|
readonly output?: string | null | undefined;
|
|
329
325
|
readonly error?: unknown;
|
|
326
|
+
} | {
|
|
327
|
+
readonly [x: string]: unknown;
|
|
328
|
+
readonly type: string;
|
|
329
|
+
readonly id: string;
|
|
330
330
|
})[];
|
|
331
331
|
readonly instructions?: string | undefined;
|
|
332
332
|
readonly store?: boolean | undefined;
|
|
@@ -339,15 +339,15 @@ export declare const protocol: Protocol<{
|
|
|
339
339
|
} | undefined;
|
|
340
340
|
readonly top_logprobs?: number | undefined;
|
|
341
341
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
342
|
-
readonly service_tier?:
|
|
342
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
343
343
|
readonly prompt_cache_key?: string | undefined;
|
|
344
|
-
readonly include?: readonly
|
|
344
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
345
345
|
readonly reasoning?: {
|
|
346
346
|
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
347
347
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
348
348
|
} | undefined;
|
|
349
349
|
readonly text?: {
|
|
350
|
-
readonly verbosity?:
|
|
350
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
351
351
|
} | undefined;
|
|
352
352
|
readonly max_output_tokens?: number | undefined;
|
|
353
353
|
readonly max_tool_calls?: number | undefined;
|
|
@@ -357,14 +357,6 @@ export declare const protocol: Protocol<{
|
|
|
357
357
|
readonly presence_penalty?: number | undefined;
|
|
358
358
|
readonly frequency_penalty?: number | undefined;
|
|
359
359
|
readonly tools?: readonly ({
|
|
360
|
-
readonly type: "function";
|
|
361
|
-
readonly name: string;
|
|
362
|
-
readonly description: string;
|
|
363
|
-
readonly parameters: {
|
|
364
|
-
readonly [x: string]: unknown;
|
|
365
|
-
};
|
|
366
|
-
readonly strict?: boolean | undefined;
|
|
367
|
-
} | {
|
|
368
360
|
readonly type: "namespace";
|
|
369
361
|
readonly name: string;
|
|
370
362
|
readonly description: string;
|
|
@@ -377,6 +369,14 @@ export declare const protocol: Protocol<{
|
|
|
377
369
|
};
|
|
378
370
|
readonly strict?: boolean | undefined;
|
|
379
371
|
}[];
|
|
372
|
+
} | {
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
readonly name: string;
|
|
375
|
+
readonly description: string;
|
|
376
|
+
readonly parameters: {
|
|
377
|
+
readonly [x: string]: unknown;
|
|
378
|
+
};
|
|
379
|
+
readonly strict?: boolean | undefined;
|
|
380
380
|
} | {
|
|
381
381
|
readonly type: "image_generation";
|
|
382
382
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -468,14 +468,6 @@ export declare const protocol: Protocol<{
|
|
|
468
468
|
export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
469
469
|
readonly model: string;
|
|
470
470
|
readonly input: readonly ({
|
|
471
|
-
readonly [x: string]: unknown;
|
|
472
|
-
readonly type: string;
|
|
473
|
-
readonly id: string;
|
|
474
|
-
} | {
|
|
475
|
-
readonly type: "compaction";
|
|
476
|
-
readonly id?: string | null | undefined;
|
|
477
|
-
readonly encrypted_content: string;
|
|
478
|
-
} | {
|
|
479
471
|
readonly type: "configuration_update";
|
|
480
472
|
readonly reasoning: {
|
|
481
473
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -488,10 +480,45 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
488
480
|
readonly type: "message";
|
|
489
481
|
readonly role: "developer";
|
|
490
482
|
readonly content: string;
|
|
483
|
+
} | {
|
|
484
|
+
readonly type: "function_call_output";
|
|
485
|
+
readonly call_id: string;
|
|
486
|
+
readonly output: string | readonly ({
|
|
487
|
+
readonly type: "input_text";
|
|
488
|
+
readonly text: string;
|
|
489
|
+
} | {
|
|
490
|
+
readonly type: "input_video";
|
|
491
|
+
readonly video_url: string;
|
|
492
|
+
} | {
|
|
493
|
+
readonly type: "input_image";
|
|
494
|
+
readonly image_url: string;
|
|
495
|
+
readonly detail?: string | undefined;
|
|
496
|
+
} | {
|
|
497
|
+
readonly type: "input_file";
|
|
498
|
+
readonly filename: string;
|
|
499
|
+
readonly detail?: string | undefined;
|
|
500
|
+
readonly file_data?: string | undefined;
|
|
501
|
+
readonly file_url?: string | undefined;
|
|
502
|
+
})[];
|
|
503
|
+
} | {
|
|
504
|
+
readonly type: "reasoning";
|
|
505
|
+
readonly id?: string | undefined;
|
|
506
|
+
readonly summary: readonly {
|
|
507
|
+
readonly type: "summary_text";
|
|
508
|
+
readonly text: string;
|
|
509
|
+
}[];
|
|
510
|
+
readonly encrypted_content?: string | null | undefined;
|
|
511
|
+
} | {
|
|
512
|
+
readonly type: "compaction";
|
|
513
|
+
readonly id?: string | null | undefined;
|
|
514
|
+
readonly encrypted_content: string;
|
|
491
515
|
} | {
|
|
492
516
|
readonly type: "message";
|
|
493
517
|
readonly role: "user";
|
|
494
518
|
readonly content: readonly ({
|
|
519
|
+
readonly type: "input_text";
|
|
520
|
+
readonly text: string;
|
|
521
|
+
} | {
|
|
495
522
|
readonly type: "input_image";
|
|
496
523
|
readonly image_url: string;
|
|
497
524
|
readonly detail?: string | undefined;
|
|
@@ -501,9 +528,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
501
528
|
readonly detail?: string | undefined;
|
|
502
529
|
readonly file_data?: string | undefined;
|
|
503
530
|
readonly file_url?: string | undefined;
|
|
504
|
-
} | {
|
|
505
|
-
readonly type: "input_text";
|
|
506
|
-
readonly text: string;
|
|
507
531
|
})[];
|
|
508
532
|
readonly id?: string | undefined;
|
|
509
533
|
readonly status?: string | undefined;
|
|
@@ -517,14 +541,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
517
541
|
}[];
|
|
518
542
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
519
543
|
readonly status?: string | undefined;
|
|
520
|
-
} | {
|
|
521
|
-
readonly type: "reasoning";
|
|
522
|
-
readonly id?: string | undefined;
|
|
523
|
-
readonly summary: readonly {
|
|
524
|
-
readonly type: "summary_text";
|
|
525
|
-
readonly text: string;
|
|
526
|
-
}[];
|
|
527
|
-
readonly encrypted_content?: string | null | undefined;
|
|
528
544
|
} | {
|
|
529
545
|
readonly type: "function_call";
|
|
530
546
|
readonly id?: string | undefined;
|
|
@@ -532,26 +548,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
532
548
|
readonly name: string;
|
|
533
549
|
readonly namespace?: string | undefined;
|
|
534
550
|
readonly arguments: string;
|
|
535
|
-
} | {
|
|
536
|
-
readonly type: "function_call_output";
|
|
537
|
-
readonly call_id: string;
|
|
538
|
-
readonly output: string | readonly ({
|
|
539
|
-
readonly type: "input_image";
|
|
540
|
-
readonly image_url: string;
|
|
541
|
-
readonly detail?: string | undefined;
|
|
542
|
-
} | {
|
|
543
|
-
readonly type: "input_file";
|
|
544
|
-
readonly filename: string;
|
|
545
|
-
readonly detail?: string | undefined;
|
|
546
|
-
readonly file_data?: string | undefined;
|
|
547
|
-
readonly file_url?: string | undefined;
|
|
548
|
-
} | {
|
|
549
|
-
readonly type: "input_text";
|
|
550
|
-
readonly text: string;
|
|
551
|
-
} | {
|
|
552
|
-
readonly type: "input_video";
|
|
553
|
-
readonly video_url: string;
|
|
554
|
-
})[];
|
|
555
551
|
} | {
|
|
556
552
|
readonly [x: string]: unknown;
|
|
557
553
|
readonly type: "web_search_call";
|
|
@@ -589,6 +585,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
589
585
|
readonly arguments?: string | undefined;
|
|
590
586
|
readonly output?: string | null | undefined;
|
|
591
587
|
readonly error?: unknown;
|
|
588
|
+
} | {
|
|
589
|
+
readonly [x: string]: unknown;
|
|
590
|
+
readonly type: string;
|
|
591
|
+
readonly id: string;
|
|
592
592
|
})[];
|
|
593
593
|
readonly instructions?: string | undefined;
|
|
594
594
|
readonly store?: boolean | undefined;
|
|
@@ -601,15 +601,15 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
601
601
|
} | undefined;
|
|
602
602
|
readonly top_logprobs?: number | undefined;
|
|
603
603
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
604
|
-
readonly service_tier?:
|
|
604
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
605
605
|
readonly prompt_cache_key?: string | undefined;
|
|
606
|
-
readonly include?: readonly
|
|
606
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
607
607
|
readonly reasoning?: {
|
|
608
608
|
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
609
609
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
610
610
|
} | undefined;
|
|
611
611
|
readonly text?: {
|
|
612
|
-
readonly verbosity?:
|
|
612
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
613
613
|
} | undefined;
|
|
614
614
|
readonly max_output_tokens?: number | undefined;
|
|
615
615
|
readonly max_tool_calls?: number | undefined;
|
|
@@ -619,14 +619,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
619
619
|
readonly presence_penalty?: number | undefined;
|
|
620
620
|
readonly frequency_penalty?: number | undefined;
|
|
621
621
|
readonly tools?: readonly ({
|
|
622
|
-
readonly type: "function";
|
|
623
|
-
readonly name: string;
|
|
624
|
-
readonly description: string;
|
|
625
|
-
readonly parameters: {
|
|
626
|
-
readonly [x: string]: unknown;
|
|
627
|
-
};
|
|
628
|
-
readonly strict?: boolean | undefined;
|
|
629
|
-
} | {
|
|
630
622
|
readonly type: "namespace";
|
|
631
623
|
readonly name: string;
|
|
632
624
|
readonly description: string;
|
|
@@ -639,6 +631,14 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
639
631
|
};
|
|
640
632
|
readonly strict?: boolean | undefined;
|
|
641
633
|
}[];
|
|
634
|
+
} | {
|
|
635
|
+
readonly type: "function";
|
|
636
|
+
readonly name: string;
|
|
637
|
+
readonly description: string;
|
|
638
|
+
readonly parameters: {
|
|
639
|
+
readonly [x: string]: unknown;
|
|
640
|
+
};
|
|
641
|
+
readonly strict?: boolean | undefined;
|
|
642
642
|
} | {
|
|
643
643
|
readonly type: "image_generation";
|
|
644
644
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -672,14 +672,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
672
672
|
export declare const channelTransport: (options: import("./open-responses-channel.js").Options) => import("../route/transport/index.js").Transport<{
|
|
673
673
|
readonly model: string;
|
|
674
674
|
readonly input: readonly ({
|
|
675
|
-
readonly [x: string]: unknown;
|
|
676
|
-
readonly type: string;
|
|
677
|
-
readonly id: string;
|
|
678
|
-
} | {
|
|
679
|
-
readonly type: "compaction";
|
|
680
|
-
readonly id?: string | null | undefined;
|
|
681
|
-
readonly encrypted_content: string;
|
|
682
|
-
} | {
|
|
683
675
|
readonly type: "configuration_update";
|
|
684
676
|
readonly reasoning: {
|
|
685
677
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -692,10 +684,45 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
692
684
|
readonly type: "message";
|
|
693
685
|
readonly role: "developer";
|
|
694
686
|
readonly content: string;
|
|
687
|
+
} | {
|
|
688
|
+
readonly type: "function_call_output";
|
|
689
|
+
readonly call_id: string;
|
|
690
|
+
readonly output: string | readonly ({
|
|
691
|
+
readonly type: "input_text";
|
|
692
|
+
readonly text: string;
|
|
693
|
+
} | {
|
|
694
|
+
readonly type: "input_video";
|
|
695
|
+
readonly video_url: string;
|
|
696
|
+
} | {
|
|
697
|
+
readonly type: "input_image";
|
|
698
|
+
readonly image_url: string;
|
|
699
|
+
readonly detail?: string | undefined;
|
|
700
|
+
} | {
|
|
701
|
+
readonly type: "input_file";
|
|
702
|
+
readonly filename: string;
|
|
703
|
+
readonly detail?: string | undefined;
|
|
704
|
+
readonly file_data?: string | undefined;
|
|
705
|
+
readonly file_url?: string | undefined;
|
|
706
|
+
})[];
|
|
707
|
+
} | {
|
|
708
|
+
readonly type: "reasoning";
|
|
709
|
+
readonly id?: string | undefined;
|
|
710
|
+
readonly summary: readonly {
|
|
711
|
+
readonly type: "summary_text";
|
|
712
|
+
readonly text: string;
|
|
713
|
+
}[];
|
|
714
|
+
readonly encrypted_content?: string | null | undefined;
|
|
715
|
+
} | {
|
|
716
|
+
readonly type: "compaction";
|
|
717
|
+
readonly id?: string | null | undefined;
|
|
718
|
+
readonly encrypted_content: string;
|
|
695
719
|
} | {
|
|
696
720
|
readonly type: "message";
|
|
697
721
|
readonly role: "user";
|
|
698
722
|
readonly content: readonly ({
|
|
723
|
+
readonly type: "input_text";
|
|
724
|
+
readonly text: string;
|
|
725
|
+
} | {
|
|
699
726
|
readonly type: "input_image";
|
|
700
727
|
readonly image_url: string;
|
|
701
728
|
readonly detail?: string | undefined;
|
|
@@ -705,9 +732,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
705
732
|
readonly detail?: string | undefined;
|
|
706
733
|
readonly file_data?: string | undefined;
|
|
707
734
|
readonly file_url?: string | undefined;
|
|
708
|
-
} | {
|
|
709
|
-
readonly type: "input_text";
|
|
710
|
-
readonly text: string;
|
|
711
735
|
})[];
|
|
712
736
|
readonly id?: string | undefined;
|
|
713
737
|
readonly status?: string | undefined;
|
|
@@ -721,14 +745,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
721
745
|
}[];
|
|
722
746
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
723
747
|
readonly status?: string | undefined;
|
|
724
|
-
} | {
|
|
725
|
-
readonly type: "reasoning";
|
|
726
|
-
readonly id?: string | undefined;
|
|
727
|
-
readonly summary: readonly {
|
|
728
|
-
readonly type: "summary_text";
|
|
729
|
-
readonly text: string;
|
|
730
|
-
}[];
|
|
731
|
-
readonly encrypted_content?: string | null | undefined;
|
|
732
748
|
} | {
|
|
733
749
|
readonly type: "function_call";
|
|
734
750
|
readonly id?: string | undefined;
|
|
@@ -736,26 +752,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
736
752
|
readonly name: string;
|
|
737
753
|
readonly namespace?: string | undefined;
|
|
738
754
|
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
|
-
readonly detail?: string | undefined;
|
|
746
|
-
} | {
|
|
747
|
-
readonly type: "input_file";
|
|
748
|
-
readonly filename: string;
|
|
749
|
-
readonly detail?: string | undefined;
|
|
750
|
-
readonly file_data?: string | undefined;
|
|
751
|
-
readonly file_url?: string | undefined;
|
|
752
|
-
} | {
|
|
753
|
-
readonly type: "input_text";
|
|
754
|
-
readonly text: string;
|
|
755
|
-
} | {
|
|
756
|
-
readonly type: "input_video";
|
|
757
|
-
readonly video_url: string;
|
|
758
|
-
})[];
|
|
759
755
|
} | {
|
|
760
756
|
readonly [x: string]: unknown;
|
|
761
757
|
readonly type: "web_search_call";
|
|
@@ -793,6 +789,10 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
793
789
|
readonly arguments?: string | undefined;
|
|
794
790
|
readonly output?: string | null | undefined;
|
|
795
791
|
readonly error?: unknown;
|
|
792
|
+
} | {
|
|
793
|
+
readonly [x: string]: unknown;
|
|
794
|
+
readonly type: string;
|
|
795
|
+
readonly id: string;
|
|
796
796
|
})[];
|
|
797
797
|
readonly instructions?: string | undefined;
|
|
798
798
|
readonly store?: boolean | undefined;
|
|
@@ -805,15 +805,15 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
805
805
|
} | undefined;
|
|
806
806
|
readonly top_logprobs?: number | undefined;
|
|
807
807
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
808
|
-
readonly service_tier?:
|
|
808
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
809
809
|
readonly prompt_cache_key?: string | undefined;
|
|
810
|
-
readonly include?: readonly
|
|
810
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
811
811
|
readonly reasoning?: {
|
|
812
812
|
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
813
813
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
814
814
|
} | undefined;
|
|
815
815
|
readonly text?: {
|
|
816
|
-
readonly verbosity?:
|
|
816
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
817
817
|
} | undefined;
|
|
818
818
|
readonly max_output_tokens?: number | undefined;
|
|
819
819
|
readonly max_tool_calls?: number | undefined;
|
|
@@ -823,14 +823,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
823
823
|
readonly presence_penalty?: number | undefined;
|
|
824
824
|
readonly frequency_penalty?: number | undefined;
|
|
825
825
|
readonly tools?: readonly ({
|
|
826
|
-
readonly type: "function";
|
|
827
|
-
readonly name: string;
|
|
828
|
-
readonly description: string;
|
|
829
|
-
readonly parameters: {
|
|
830
|
-
readonly [x: string]: unknown;
|
|
831
|
-
};
|
|
832
|
-
readonly strict?: boolean | undefined;
|
|
833
|
-
} | {
|
|
834
826
|
readonly type: "namespace";
|
|
835
827
|
readonly name: string;
|
|
836
828
|
readonly description: string;
|
|
@@ -843,6 +835,14 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
843
835
|
};
|
|
844
836
|
readonly strict?: boolean | undefined;
|
|
845
837
|
}[];
|
|
838
|
+
} | {
|
|
839
|
+
readonly type: "function";
|
|
840
|
+
readonly name: string;
|
|
841
|
+
readonly description: string;
|
|
842
|
+
readonly parameters: {
|
|
843
|
+
readonly [x: string]: unknown;
|
|
844
|
+
};
|
|
845
|
+
readonly strict?: boolean | undefined;
|
|
846
846
|
} | {
|
|
847
847
|
readonly type: "image_generation";
|
|
848
848
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -876,14 +876,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
876
876
|
export declare const transport: import("../route/transport/index.js").Transport<{
|
|
877
877
|
readonly model: string;
|
|
878
878
|
readonly input: readonly ({
|
|
879
|
-
readonly [x: string]: unknown;
|
|
880
|
-
readonly type: string;
|
|
881
|
-
readonly id: string;
|
|
882
|
-
} | {
|
|
883
|
-
readonly type: "compaction";
|
|
884
|
-
readonly id?: string | null | undefined;
|
|
885
|
-
readonly encrypted_content: string;
|
|
886
|
-
} | {
|
|
887
879
|
readonly type: "configuration_update";
|
|
888
880
|
readonly reasoning: {
|
|
889
881
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -896,10 +888,45 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
896
888
|
readonly type: "message";
|
|
897
889
|
readonly role: "developer";
|
|
898
890
|
readonly content: string;
|
|
891
|
+
} | {
|
|
892
|
+
readonly type: "function_call_output";
|
|
893
|
+
readonly call_id: string;
|
|
894
|
+
readonly output: string | readonly ({
|
|
895
|
+
readonly type: "input_text";
|
|
896
|
+
readonly text: string;
|
|
897
|
+
} | {
|
|
898
|
+
readonly type: "input_video";
|
|
899
|
+
readonly video_url: string;
|
|
900
|
+
} | {
|
|
901
|
+
readonly type: "input_image";
|
|
902
|
+
readonly image_url: string;
|
|
903
|
+
readonly detail?: string | undefined;
|
|
904
|
+
} | {
|
|
905
|
+
readonly type: "input_file";
|
|
906
|
+
readonly filename: string;
|
|
907
|
+
readonly detail?: string | undefined;
|
|
908
|
+
readonly file_data?: string | undefined;
|
|
909
|
+
readonly file_url?: string | undefined;
|
|
910
|
+
})[];
|
|
911
|
+
} | {
|
|
912
|
+
readonly type: "reasoning";
|
|
913
|
+
readonly id?: string | undefined;
|
|
914
|
+
readonly summary: readonly {
|
|
915
|
+
readonly type: "summary_text";
|
|
916
|
+
readonly text: string;
|
|
917
|
+
}[];
|
|
918
|
+
readonly encrypted_content?: string | null | undefined;
|
|
919
|
+
} | {
|
|
920
|
+
readonly type: "compaction";
|
|
921
|
+
readonly id?: string | null | undefined;
|
|
922
|
+
readonly encrypted_content: string;
|
|
899
923
|
} | {
|
|
900
924
|
readonly type: "message";
|
|
901
925
|
readonly role: "user";
|
|
902
926
|
readonly content: readonly ({
|
|
927
|
+
readonly type: "input_text";
|
|
928
|
+
readonly text: string;
|
|
929
|
+
} | {
|
|
903
930
|
readonly type: "input_image";
|
|
904
931
|
readonly image_url: string;
|
|
905
932
|
readonly detail?: string | undefined;
|
|
@@ -909,9 +936,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
909
936
|
readonly detail?: string | undefined;
|
|
910
937
|
readonly file_data?: string | undefined;
|
|
911
938
|
readonly file_url?: string | undefined;
|
|
912
|
-
} | {
|
|
913
|
-
readonly type: "input_text";
|
|
914
|
-
readonly text: string;
|
|
915
939
|
})[];
|
|
916
940
|
readonly id?: string | undefined;
|
|
917
941
|
readonly status?: string | undefined;
|
|
@@ -925,14 +949,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
925
949
|
}[];
|
|
926
950
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
927
951
|
readonly status?: string | undefined;
|
|
928
|
-
} | {
|
|
929
|
-
readonly type: "reasoning";
|
|
930
|
-
readonly id?: string | undefined;
|
|
931
|
-
readonly summary: readonly {
|
|
932
|
-
readonly type: "summary_text";
|
|
933
|
-
readonly text: string;
|
|
934
|
-
}[];
|
|
935
|
-
readonly encrypted_content?: string | null | undefined;
|
|
936
952
|
} | {
|
|
937
953
|
readonly type: "function_call";
|
|
938
954
|
readonly id?: string | undefined;
|
|
@@ -940,26 +956,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
940
956
|
readonly name: string;
|
|
941
957
|
readonly namespace?: string | undefined;
|
|
942
958
|
readonly arguments: string;
|
|
943
|
-
} | {
|
|
944
|
-
readonly type: "function_call_output";
|
|
945
|
-
readonly call_id: string;
|
|
946
|
-
readonly output: string | readonly ({
|
|
947
|
-
readonly type: "input_image";
|
|
948
|
-
readonly image_url: string;
|
|
949
|
-
readonly detail?: string | undefined;
|
|
950
|
-
} | {
|
|
951
|
-
readonly type: "input_file";
|
|
952
|
-
readonly filename: string;
|
|
953
|
-
readonly detail?: string | undefined;
|
|
954
|
-
readonly file_data?: string | undefined;
|
|
955
|
-
readonly file_url?: string | undefined;
|
|
956
|
-
} | {
|
|
957
|
-
readonly type: "input_text";
|
|
958
|
-
readonly text: string;
|
|
959
|
-
} | {
|
|
960
|
-
readonly type: "input_video";
|
|
961
|
-
readonly video_url: string;
|
|
962
|
-
})[];
|
|
963
959
|
} | {
|
|
964
960
|
readonly [x: string]: unknown;
|
|
965
961
|
readonly type: "web_search_call";
|
|
@@ -997,6 +993,10 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
997
993
|
readonly arguments?: string | undefined;
|
|
998
994
|
readonly output?: string | null | undefined;
|
|
999
995
|
readonly error?: unknown;
|
|
996
|
+
} | {
|
|
997
|
+
readonly [x: string]: unknown;
|
|
998
|
+
readonly type: string;
|
|
999
|
+
readonly id: string;
|
|
1000
1000
|
})[];
|
|
1001
1001
|
readonly instructions?: string | undefined;
|
|
1002
1002
|
readonly store?: boolean | undefined;
|
|
@@ -1009,15 +1009,15 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1009
1009
|
} | undefined;
|
|
1010
1010
|
readonly top_logprobs?: number | undefined;
|
|
1011
1011
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
1012
|
-
readonly service_tier?:
|
|
1012
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1013
1013
|
readonly prompt_cache_key?: string | undefined;
|
|
1014
|
-
readonly include?: readonly
|
|
1014
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
1015
1015
|
readonly reasoning?: {
|
|
1016
1016
|
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1017
1017
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1018
1018
|
} | undefined;
|
|
1019
1019
|
readonly text?: {
|
|
1020
|
-
readonly verbosity?:
|
|
1020
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1021
1021
|
} | undefined;
|
|
1022
1022
|
readonly max_output_tokens?: number | undefined;
|
|
1023
1023
|
readonly max_tool_calls?: number | undefined;
|
|
@@ -1027,14 +1027,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1027
1027
|
readonly presence_penalty?: number | undefined;
|
|
1028
1028
|
readonly frequency_penalty?: number | undefined;
|
|
1029
1029
|
readonly tools?: readonly ({
|
|
1030
|
-
readonly type: "function";
|
|
1031
|
-
readonly name: string;
|
|
1032
|
-
readonly description: string;
|
|
1033
|
-
readonly parameters: {
|
|
1034
|
-
readonly [x: string]: unknown;
|
|
1035
|
-
};
|
|
1036
|
-
readonly strict?: boolean | undefined;
|
|
1037
|
-
} | {
|
|
1038
1030
|
readonly type: "namespace";
|
|
1039
1031
|
readonly name: string;
|
|
1040
1032
|
readonly description: string;
|
|
@@ -1047,6 +1039,14 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1047
1039
|
};
|
|
1048
1040
|
readonly strict?: boolean | undefined;
|
|
1049
1041
|
}[];
|
|
1042
|
+
} | {
|
|
1043
|
+
readonly type: "function";
|
|
1044
|
+
readonly name: string;
|
|
1045
|
+
readonly description: string;
|
|
1046
|
+
readonly parameters: {
|
|
1047
|
+
readonly [x: string]: unknown;
|
|
1048
|
+
};
|
|
1049
|
+
readonly strict?: boolean | undefined;
|
|
1050
1050
|
} | {
|
|
1051
1051
|
readonly type: "image_generation";
|
|
1052
1052
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -1080,14 +1080,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1080
1080
|
export declare const route: Route<{
|
|
1081
1081
|
readonly model: string;
|
|
1082
1082
|
readonly input: readonly ({
|
|
1083
|
-
readonly [x: string]: unknown;
|
|
1084
|
-
readonly type: string;
|
|
1085
|
-
readonly id: string;
|
|
1086
|
-
} | {
|
|
1087
|
-
readonly type: "compaction";
|
|
1088
|
-
readonly id?: string | null | undefined;
|
|
1089
|
-
readonly encrypted_content: string;
|
|
1090
|
-
} | {
|
|
1091
1083
|
readonly type: "configuration_update";
|
|
1092
1084
|
readonly reasoning: {
|
|
1093
1085
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -1100,10 +1092,45 @@ export declare const route: Route<{
|
|
|
1100
1092
|
readonly type: "message";
|
|
1101
1093
|
readonly role: "developer";
|
|
1102
1094
|
readonly content: string;
|
|
1095
|
+
} | {
|
|
1096
|
+
readonly type: "function_call_output";
|
|
1097
|
+
readonly call_id: string;
|
|
1098
|
+
readonly output: string | readonly ({
|
|
1099
|
+
readonly type: "input_text";
|
|
1100
|
+
readonly text: string;
|
|
1101
|
+
} | {
|
|
1102
|
+
readonly type: "input_video";
|
|
1103
|
+
readonly video_url: string;
|
|
1104
|
+
} | {
|
|
1105
|
+
readonly type: "input_image";
|
|
1106
|
+
readonly image_url: string;
|
|
1107
|
+
readonly detail?: string | undefined;
|
|
1108
|
+
} | {
|
|
1109
|
+
readonly type: "input_file";
|
|
1110
|
+
readonly filename: string;
|
|
1111
|
+
readonly detail?: string | undefined;
|
|
1112
|
+
readonly file_data?: string | undefined;
|
|
1113
|
+
readonly file_url?: string | undefined;
|
|
1114
|
+
})[];
|
|
1115
|
+
} | {
|
|
1116
|
+
readonly type: "reasoning";
|
|
1117
|
+
readonly id?: string | undefined;
|
|
1118
|
+
readonly summary: readonly {
|
|
1119
|
+
readonly type: "summary_text";
|
|
1120
|
+
readonly text: string;
|
|
1121
|
+
}[];
|
|
1122
|
+
readonly encrypted_content?: string | null | undefined;
|
|
1123
|
+
} | {
|
|
1124
|
+
readonly type: "compaction";
|
|
1125
|
+
readonly id?: string | null | undefined;
|
|
1126
|
+
readonly encrypted_content: string;
|
|
1103
1127
|
} | {
|
|
1104
1128
|
readonly type: "message";
|
|
1105
1129
|
readonly role: "user";
|
|
1106
1130
|
readonly content: readonly ({
|
|
1131
|
+
readonly type: "input_text";
|
|
1132
|
+
readonly text: string;
|
|
1133
|
+
} | {
|
|
1107
1134
|
readonly type: "input_image";
|
|
1108
1135
|
readonly image_url: string;
|
|
1109
1136
|
readonly detail?: string | undefined;
|
|
@@ -1113,9 +1140,6 @@ export declare const route: Route<{
|
|
|
1113
1140
|
readonly detail?: string | undefined;
|
|
1114
1141
|
readonly file_data?: string | undefined;
|
|
1115
1142
|
readonly file_url?: string | undefined;
|
|
1116
|
-
} | {
|
|
1117
|
-
readonly type: "input_text";
|
|
1118
|
-
readonly text: string;
|
|
1119
1143
|
})[];
|
|
1120
1144
|
readonly id?: string | undefined;
|
|
1121
1145
|
readonly status?: string | undefined;
|
|
@@ -1129,14 +1153,6 @@ export declare const route: Route<{
|
|
|
1129
1153
|
}[];
|
|
1130
1154
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
1131
1155
|
readonly status?: string | undefined;
|
|
1132
|
-
} | {
|
|
1133
|
-
readonly type: "reasoning";
|
|
1134
|
-
readonly id?: string | undefined;
|
|
1135
|
-
readonly summary: readonly {
|
|
1136
|
-
readonly type: "summary_text";
|
|
1137
|
-
readonly text: string;
|
|
1138
|
-
}[];
|
|
1139
|
-
readonly encrypted_content?: string | null | undefined;
|
|
1140
1156
|
} | {
|
|
1141
1157
|
readonly type: "function_call";
|
|
1142
1158
|
readonly id?: string | undefined;
|
|
@@ -1144,26 +1160,6 @@ export declare const route: Route<{
|
|
|
1144
1160
|
readonly name: string;
|
|
1145
1161
|
readonly namespace?: string | undefined;
|
|
1146
1162
|
readonly arguments: string;
|
|
1147
|
-
} | {
|
|
1148
|
-
readonly type: "function_call_output";
|
|
1149
|
-
readonly call_id: string;
|
|
1150
|
-
readonly output: string | readonly ({
|
|
1151
|
-
readonly type: "input_image";
|
|
1152
|
-
readonly image_url: string;
|
|
1153
|
-
readonly detail?: string | undefined;
|
|
1154
|
-
} | {
|
|
1155
|
-
readonly type: "input_file";
|
|
1156
|
-
readonly filename: string;
|
|
1157
|
-
readonly detail?: string | undefined;
|
|
1158
|
-
readonly file_data?: string | undefined;
|
|
1159
|
-
readonly file_url?: string | undefined;
|
|
1160
|
-
} | {
|
|
1161
|
-
readonly type: "input_text";
|
|
1162
|
-
readonly text: string;
|
|
1163
|
-
} | {
|
|
1164
|
-
readonly type: "input_video";
|
|
1165
|
-
readonly video_url: string;
|
|
1166
|
-
})[];
|
|
1167
1163
|
} | {
|
|
1168
1164
|
readonly [x: string]: unknown;
|
|
1169
1165
|
readonly type: "web_search_call";
|
|
@@ -1201,6 +1197,10 @@ export declare const route: Route<{
|
|
|
1201
1197
|
readonly arguments?: string | undefined;
|
|
1202
1198
|
readonly output?: string | null | undefined;
|
|
1203
1199
|
readonly error?: unknown;
|
|
1200
|
+
} | {
|
|
1201
|
+
readonly [x: string]: unknown;
|
|
1202
|
+
readonly type: string;
|
|
1203
|
+
readonly id: string;
|
|
1204
1204
|
})[];
|
|
1205
1205
|
readonly instructions?: string | undefined;
|
|
1206
1206
|
readonly store?: boolean | undefined;
|
|
@@ -1213,15 +1213,15 @@ export declare const route: Route<{
|
|
|
1213
1213
|
} | undefined;
|
|
1214
1214
|
readonly top_logprobs?: number | undefined;
|
|
1215
1215
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
1216
|
-
readonly service_tier?:
|
|
1216
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1217
1217
|
readonly prompt_cache_key?: string | undefined;
|
|
1218
|
-
readonly include?: readonly
|
|
1218
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
1219
1219
|
readonly reasoning?: {
|
|
1220
1220
|
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1221
1221
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1222
1222
|
} | undefined;
|
|
1223
1223
|
readonly text?: {
|
|
1224
|
-
readonly verbosity?:
|
|
1224
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1225
1225
|
} | undefined;
|
|
1226
1226
|
readonly max_output_tokens?: number | undefined;
|
|
1227
1227
|
readonly max_tool_calls?: number | undefined;
|
|
@@ -1231,14 +1231,6 @@ export declare const route: Route<{
|
|
|
1231
1231
|
readonly presence_penalty?: number | undefined;
|
|
1232
1232
|
readonly frequency_penalty?: number | undefined;
|
|
1233
1233
|
readonly tools?: readonly ({
|
|
1234
|
-
readonly type: "function";
|
|
1235
|
-
readonly name: string;
|
|
1236
|
-
readonly description: string;
|
|
1237
|
-
readonly parameters: {
|
|
1238
|
-
readonly [x: string]: unknown;
|
|
1239
|
-
};
|
|
1240
|
-
readonly strict?: boolean | undefined;
|
|
1241
|
-
} | {
|
|
1242
1234
|
readonly type: "namespace";
|
|
1243
1235
|
readonly name: string;
|
|
1244
1236
|
readonly description: string;
|
|
@@ -1251,6 +1243,14 @@ export declare const route: Route<{
|
|
|
1251
1243
|
};
|
|
1252
1244
|
readonly strict?: boolean | undefined;
|
|
1253
1245
|
}[];
|
|
1246
|
+
} | {
|
|
1247
|
+
readonly type: "function";
|
|
1248
|
+
readonly name: string;
|
|
1249
|
+
readonly description: string;
|
|
1250
|
+
readonly parameters: {
|
|
1251
|
+
readonly [x: string]: unknown;
|
|
1252
|
+
};
|
|
1253
|
+
readonly strict?: boolean | undefined;
|
|
1254
1254
|
} | {
|
|
1255
1255
|
readonly type: "image_generation";
|
|
1256
1256
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|