@opencode/ai 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +283 -114
- package/dist/ai-client.d.ts +2 -2
- package/dist/ai-client.js +2 -1
- package/dist/cache-policy.d.ts +4 -0
- package/dist/cache-policy.js +20 -6
- package/dist/decision-client.d.ts +21 -0
- package/dist/decision-client.js +55 -0
- package/dist/decision.d.ts +472 -0
- package/dist/decision.js +158 -0
- package/dist/effect.d.ts +38 -0
- package/dist/effect.js +27 -0
- package/dist/effort-updates.d.ts +2 -2
- package/dist/experimental/cloudflare-run-extraction.d.ts +13 -0
- package/dist/experimental/cloudflare-run-extraction.js +83 -0
- package/dist/experimental/extraction.d.ts +183 -0
- package/dist/experimental/extraction.js +102 -0
- package/dist/experimental/realtime.d.ts +7 -2
- package/dist/experimental/realtime.js +5 -5
- package/dist/experimental.d.ts +2 -3
- package/dist/experimental.js +1 -2
- package/dist/image-client.d.ts +13 -22
- package/dist/image-client.js +0 -1
- package/dist/image.d.ts +154 -324
- package/dist/image.js +4 -11
- package/dist/index.d.ts +1426 -34
- package/dist/index.js +127 -24
- package/dist/llm.d.ts +16 -1
- package/dist/llm.js +34 -0
- package/dist/media-client.d.ts +2 -1
- package/dist/media-model.d.ts +3 -0
- package/dist/media-model.js +4 -1
- package/dist/media.d.ts +0 -7
- package/dist/media.js +0 -6
- package/dist/protocols/alibaba-chat.d.ts +32 -12
- package/dist/protocols/alibaba-images.d.ts +22 -0
- package/dist/protocols/alibaba-images.js +77 -0
- package/dist/protocols/alibaba-messages.d.ts +62 -27
- package/dist/protocols/alibaba-responses.d.ts +41 -38
- package/dist/protocols/anthropic-messages.d.ts +196 -94
- package/dist/protocols/anthropic-messages.js +47 -16
- package/dist/protocols/bedrock-converse.d.ts +140 -47
- package/dist/protocols/bedrock-converse.js +114 -18
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/bfl-images.d.ts +9 -0
- package/dist/protocols/bfl-images.js +17 -15
- package/dist/protocols/cartesia-speech.d.ts +32 -50
- package/dist/protocols/cloudflare-run-decisions.d.ts +9 -0
- package/dist/protocols/cloudflare-run-decisions.js +36 -0
- package/dist/protocols/cloudflare-workers-ai-images.d.ts +23 -0
- package/dist/protocols/cloudflare-workers-ai-images.js +80 -0
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -50
- package/dist/protocols/elevenlabs-speech.d.ts +32 -50
- package/dist/protocols/fal-images.d.ts +10 -1
- package/dist/protocols/fal-images.js +16 -25
- package/dist/protocols/fal-video.js +1 -1
- package/dist/protocols/gemini.d.ts +37 -34
- package/dist/protocols/gemini.js +13 -8
- package/dist/protocols/google-images.d.ts +2 -2
- package/dist/protocols/google-images.js +8 -37
- package/dist/protocols/google-interactions.d.ts +18 -14
- package/dist/protocols/google-interactions.js +14 -7
- package/dist/protocols/google-speech.d.ts +32 -50
- package/dist/protocols/google-speech.js +0 -1
- package/dist/protocols/google-transcription.d.ts +32 -50
- package/dist/protocols/google-transcription.js +0 -1
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/google-video.js +2 -7
- package/dist/protocols/index.d.ts +3 -0
- package/dist/protocols/index.js +3 -0
- package/dist/protocols/meta-images.d.ts +7 -1
- package/dist/protocols/meta-images.js +10 -8
- package/dist/protocols/meta-messages.d.ts +73 -38
- package/dist/protocols/meta-messages.js +14 -1
- package/dist/protocols/meta-responses.d.ts +84 -78
- package/dist/protocols/meta-responses.js +29 -1
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +2 -1
- 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 +426 -396
- package/dist/protocols/open-responses.js +16 -25
- package/dist/protocols/openai-chat.d.ts +764 -52
- package/dist/protocols/openai-chat.js +38 -25
- package/dist/protocols/openai-compatible-chat.d.ts +35 -15
- package/dist/protocols/openai-compatible-responses.d.ts +44 -42
- package/dist/protocols/openai-decisions.d.ts +22 -0
- package/dist/protocols/openai-decisions.js +128 -0
- package/dist/protocols/openai-images.d.ts +53 -56
- package/dist/protocols/openai-images.js +100 -34
- package/dist/protocols/openai-responses.d.ts +322 -264
- package/dist/protocols/openai-responses.js +33 -3
- package/dist/protocols/openai-speech.d.ts +32 -50
- package/dist/protocols/openai-speech.js +15 -5
- package/dist/protocols/openai-transcription.d.ts +32 -50
- package/dist/protocols/openai-transcription.js +15 -11
- package/dist/protocols/replicate-images.js +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/runway-video.js +1 -1
- package/dist/protocols/shared.d.ts +9 -1
- package/dist/protocols/shared.js +13 -2
- package/dist/protocols/stability-images.d.ts +5 -0
- package/dist/protocols/stability-images.js +4 -9
- package/dist/protocols/system-one.d.ts +101 -0
- package/dist/protocols/system-one.js +230 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.js +7 -6
- package/dist/protocols/utils/cache.d.ts +14 -3
- package/dist/protocols/utils/cache.js +11 -4
- package/dist/protocols/utils/gemini-generate-content.d.ts +3 -3
- package/dist/protocols/utils/gemini-generate-content.js +10 -16
- package/dist/protocols/utils/gemini-json-schema.d.ts +5 -0
- package/dist/protocols/utils/gemini-json-schema.js +3 -3
- package/dist/protocols/utils/image-sizing.d.ts +31 -0
- package/dist/protocols/utils/image-sizing.js +73 -0
- package/dist/protocols/utils/media-input.d.ts +4 -5
- package/dist/protocols/utils/media-input.js +8 -5
- 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/speech-stream.d.ts +0 -1
- package/dist/protocols/utils/speech-stream.js +0 -1
- package/dist/protocols/utils/tool-schema.js +15 -5
- package/dist/protocols/utils/tool-stream.d.ts +10 -1
- package/dist/protocols/venice-chat.d.ts +71 -53
- package/dist/protocols/venice-chat.js +7 -6
- package/dist/protocols/xai-images.d.ts +1 -2
- package/dist/protocols/xai-images.js +9 -2
- package/dist/protocols/xai-responses.d.ts +88 -78
- package/dist/protocols/xai-responses.js +28 -2
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/xai-video.js +11 -8
- package/dist/protocols/zai-chat.d.ts +54 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-images.d.ts +3 -1
- package/dist/protocols/zai-images.js +12 -11
- package/dist/protocols/zai-messages.d.ts +72 -35
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +24 -7
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba.d.ts +146 -85
- package/dist/providers/alibaba.js +16 -8
- package/dist/providers/amazon-bedrock-mantle.d.ts +277 -218
- package/dist/providers/amazon-bedrock.d.ts +48 -28
- package/dist/providers/amazon-bedrock.js +11 -11
- package/dist/providers/anthropic-compatible.d.ts +64 -29
- package/dist/providers/anthropic.d.ts +64 -29
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure.d.ts +156 -115
- package/dist/providers/azure.js +19 -1
- package/dist/providers/baseten/decisions.d.ts +2 -0
- package/dist/providers/baseten/decisions.js +1 -0
- package/dist/providers/baseten.d.ts +75 -25
- package/dist/providers/baseten.js +41 -8
- package/dist/providers/cerebras.d.ts +66 -24
- package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +409 -272
- package/dist/providers/cloudflare-ai-gateway.js +33 -6
- package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
- package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/images.js +1 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +79 -25
- package/dist/providers/cloudflare-workers-ai.js +45 -9
- package/dist/providers/cohere.d.ts +117 -75
- package/dist/providers/deepinfra.d.ts +66 -24
- package/dist/providers/deepseek.d.ts +66 -24
- package/dist/providers/digitalocean/decisions.d.ts +2 -0
- package/dist/providers/digitalocean/decisions.js +1 -0
- package/dist/providers/digitalocean/images.d.ts +2 -0
- package/dist/providers/digitalocean/images.js +1 -0
- package/dist/providers/digitalocean.d.ts +108 -37
- package/dist/providers/digitalocean.js +39 -8
- package/dist/providers/fireworks.d.ts +66 -24
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google-vertex/images.d.ts +2 -0
- package/dist/providers/google-vertex/images.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +33 -12
- package/dist/providers/google-vertex-messages.d.ts +64 -29
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +38 -35
- package/dist/providers/google-vertex.d.ts +20 -18
- package/dist/providers/google-vertex.js +32 -15
- package/dist/providers/google.d.ts +22 -21
- package/dist/providers/google.js +15 -8
- package/dist/providers/groq.d.ts +66 -28
- package/dist/providers/groq.js +0 -6
- package/dist/providers/meta.d.ts +144 -85
- package/dist/providers/minimax.d.ts +145 -86
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +277 -218
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai/images.d.ts +2 -0
- package/dist/providers/openai/images.js +1 -0
- package/dist/providers/openai-compatible/images.d.ts +2 -0
- package/dist/providers/openai-compatible/images.js +1 -0
- package/dist/providers/openai-compatible-responses.d.ts +38 -35
- package/dist/providers/openai-compatible.d.ts +36 -13
- package/dist/providers/openai-compatible.js +22 -10
- package/dist/providers/openai-options.d.ts +3 -2
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +146 -109
- package/dist/providers/openai.js +20 -4
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +9 -10
- package/dist/providers/opencode.js +10 -8
- package/dist/providers/openrouter/decisions.d.ts +2 -0
- package/dist/providers/openrouter/decisions.js +1 -0
- package/dist/providers/openrouter/images.d.ts +2 -0
- package/dist/providers/openrouter/images.js +1 -0
- package/dist/providers/openrouter.d.ts +128 -47
- package/dist/providers/openrouter.js +38 -16
- package/dist/providers/togetherai.d.ts +66 -24
- package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
- package/dist/providers/typesafe-ai/decisions.js +1 -0
- package/dist/providers/typesafe-ai.d.ts +9 -10
- package/dist/providers/typesafe-ai.js +10 -8
- package/dist/providers/venice.d.ts +214 -20
- package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
- package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/images.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +10 -16
- package/dist/providers/vercel-ai-gateway.js +31 -85
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai.d.ts +40 -17
- package/dist/providers/xai.js +15 -8
- package/dist/providers/zai/images.d.ts +2 -0
- package/dist/providers/zai/images.js +1 -0
- package/dist/providers/zai-coding-plan.d.ts +224 -85
- package/dist/providers/zai.d.ts +110 -23
- package/dist/providers/zai.js +15 -8
- 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 +2 -4
- package/dist/route/client.js +29 -8
- package/dist/route/decision.d.ts +58 -0
- package/dist/route/decision.js +75 -0
- package/dist/route/executor-service.js +1 -1
- package/dist/route/executor.d.ts +1 -1
- package/dist/route/framing.d.ts +2 -0
- package/dist/route/index.d.ts +3 -0
- package/dist/route/index.js +3 -0
- package/dist/route/media-protocol.d.ts +1 -0
- package/dist/route/media-protocol.js +12 -8
- package/dist/route/media.d.ts +5 -1
- package/dist/route/media.js +6 -2
- package/dist/route/transport/http.js +1 -0
- package/dist/route/transport/index.d.ts +1 -0
- package/dist/schema/events.d.ts +148 -6
- package/dist/schema/events.js +20 -0
- package/dist/schema/messages.d.ts +6 -2
- package/dist/schema/messages.js +3 -0
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/speech-client.d.ts +13 -22
- package/dist/speech-client.js +0 -1
- package/dist/speech.d.ts +148 -283
- package/dist/speech.js +2 -4
- package/dist/testing.d.ts +25 -24
- package/dist/testing.js +3 -21
- package/dist/transcription-client.d.ts +13 -22
- package/dist/transcription.d.ts +148 -283
- package/dist/transcription.js +1 -1
- package/dist/utils/media-type.js +22 -1
- package/dist/video-client.d.ts +13 -22
- package/dist/video-client.js +0 -1
- package/dist/video.d.ts +115 -250
- package/dist/video.js +3 -5
- package/package.json +516 -13
- package/dist/experimental/evaluation-client.d.ts +0 -21
- package/dist/experimental/evaluation-client.js +0 -64
- package/dist/experimental/evaluation.d.ts +0 -242
- package/dist/experimental/evaluation.js +0 -115
- package/dist/experimental/system-one.d.ts +0 -16
- package/dist/experimental/system-one.js +0 -135
- package/dist/promise.d.ts +0 -1021
- package/dist/promise.js +0 -101
- package/dist/provider.d.ts +0 -23
- package/dist/provider.js +0 -2
|
@@ -11,6 +11,10 @@ export declare const ContextManagement: Schema.$Array<Schema.Struct<{
|
|
|
11
11
|
readonly compactThreshold: Schema.optional<Schema.Int>;
|
|
12
12
|
}>>;
|
|
13
13
|
export type ContextManagement = typeof ContextManagement.Type;
|
|
14
|
+
export declare const ReasoningMode: Schema.declare<import("../schema/options.js").OpenString<"pro" | "standard">, import("../schema/options.js").OpenString<"pro" | "standard">>;
|
|
15
|
+
export type ReasoningMode = typeof ReasoningMode.Type;
|
|
16
|
+
export declare const ReasoningContext: Schema.declare<import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn">, import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn">>;
|
|
17
|
+
export type ReasoningContext = typeof ReasoningContext.Type;
|
|
14
18
|
declare const OpenAIResponsesBody: Schema.Struct<{
|
|
15
19
|
readonly model: Schema.String;
|
|
16
20
|
readonly input: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -46,6 +50,9 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
46
50
|
readonly detail: Schema.optional<Schema.String>;
|
|
47
51
|
readonly file_data: Schema.optional<Schema.String>;
|
|
48
52
|
readonly file_url: Schema.optional<Schema.String>;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
readonly type: Schema.tag<"input_video">;
|
|
55
|
+
readonly video_url: Schema.String;
|
|
49
56
|
}>]>]>>;
|
|
50
57
|
readonly id: Schema.optional<Schema.String>;
|
|
51
58
|
readonly status: Schema.optional<Schema.String>;
|
|
@@ -137,10 +144,6 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
137
144
|
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
145
|
readonly prompt_cache_key: Schema.optional<Schema.String>;
|
|
139
146
|
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
|
-
readonly reasoning: Schema.optional<Schema.Struct<{
|
|
141
|
-
readonly effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
142
|
-
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
143
|
-
}>>;
|
|
144
147
|
readonly text: Schema.optional<Schema.Struct<{
|
|
145
148
|
readonly verbosity: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"high" | "low" | "medium">, import("../schema/options.js").OpenString<"high" | "low" | "medium">>>;
|
|
146
149
|
}>>;
|
|
@@ -151,6 +154,10 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
151
154
|
readonly top_p: Schema.optional<Schema.Number>;
|
|
152
155
|
readonly presence_penalty: Schema.optional<Schema.Number>;
|
|
153
156
|
readonly frequency_penalty: Schema.optional<Schema.Number>;
|
|
157
|
+
readonly prompt_cache_retention: Schema.optional<Schema.String>;
|
|
158
|
+
readonly prompt_cache_options: Schema.optional<Schema.Struct<{
|
|
159
|
+
readonly ttl: Schema.optional<Schema.String>;
|
|
160
|
+
}>>;
|
|
154
161
|
readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
155
162
|
readonly type: Schema.tag<"function">;
|
|
156
163
|
readonly name: Schema.String;
|
|
@@ -192,6 +199,12 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
192
199
|
}>]>, Schema.Struct<{
|
|
193
200
|
readonly type: Schema.tag<"image_generation">;
|
|
194
201
|
}>]>>;
|
|
202
|
+
readonly reasoning: Schema.optional<Schema.Struct<{
|
|
203
|
+
readonly effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
204
|
+
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
205
|
+
readonly mode: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"pro" | "standard">, import("../schema/options.js").OpenString<"pro" | "standard">>>;
|
|
206
|
+
readonly context: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn">, import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn">>>;
|
|
207
|
+
}>>;
|
|
195
208
|
readonly context_management: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
196
209
|
readonly type: Schema.Literal<"compaction">;
|
|
197
210
|
readonly compact_threshold: Schema.optional<Schema.Int>;
|
|
@@ -206,14 +219,6 @@ export declare const CompactionTrigger: Schema.Struct<{
|
|
|
206
219
|
export declare const protocol: Protocol<{
|
|
207
220
|
readonly model: string;
|
|
208
221
|
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
222
|
readonly type: "configuration_update";
|
|
218
223
|
readonly reasoning: {
|
|
219
224
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -226,10 +231,48 @@ export declare const protocol: Protocol<{
|
|
|
226
231
|
readonly type: "message";
|
|
227
232
|
readonly role: "developer";
|
|
228
233
|
readonly content: string;
|
|
234
|
+
} | {
|
|
235
|
+
readonly type: "function_call_output";
|
|
236
|
+
readonly call_id: string;
|
|
237
|
+
readonly output: string | readonly ({
|
|
238
|
+
readonly type: "input_text";
|
|
239
|
+
readonly text: string;
|
|
240
|
+
} | {
|
|
241
|
+
readonly type: "input_video";
|
|
242
|
+
readonly video_url: string;
|
|
243
|
+
} | {
|
|
244
|
+
readonly type: "input_image";
|
|
245
|
+
readonly image_url: string;
|
|
246
|
+
readonly detail?: string | undefined;
|
|
247
|
+
} | {
|
|
248
|
+
readonly type: "input_file";
|
|
249
|
+
readonly filename: string;
|
|
250
|
+
readonly detail?: string | undefined;
|
|
251
|
+
readonly file_data?: string | undefined;
|
|
252
|
+
readonly file_url?: string | undefined;
|
|
253
|
+
})[];
|
|
254
|
+
} | {
|
|
255
|
+
readonly type: "reasoning";
|
|
256
|
+
readonly id?: string | undefined;
|
|
257
|
+
readonly summary: readonly {
|
|
258
|
+
readonly type: "summary_text";
|
|
259
|
+
readonly text: string;
|
|
260
|
+
}[];
|
|
261
|
+
readonly encrypted_content?: string | null | undefined;
|
|
262
|
+
} | {
|
|
263
|
+
readonly type: "compaction";
|
|
264
|
+
readonly id?: string | null | undefined;
|
|
265
|
+
readonly encrypted_content: string;
|
|
229
266
|
} | {
|
|
230
267
|
readonly type: "message";
|
|
231
268
|
readonly role: "user";
|
|
232
269
|
readonly content: readonly ({
|
|
270
|
+
readonly type: "input_text";
|
|
271
|
+
readonly text: string;
|
|
272
|
+
} | {
|
|
273
|
+
readonly type: "input_video";
|
|
274
|
+
readonly video_url: string;
|
|
275
|
+
} | {
|
|
233
276
|
readonly type: "input_image";
|
|
234
277
|
readonly image_url: string;
|
|
235
278
|
readonly detail?: string | undefined;
|
|
@@ -239,9 +282,6 @@ export declare const protocol: Protocol<{
|
|
|
239
282
|
readonly detail?: string | undefined;
|
|
240
283
|
readonly file_data?: string | undefined;
|
|
241
284
|
readonly file_url?: string | undefined;
|
|
242
|
-
} | {
|
|
243
|
-
readonly type: "input_text";
|
|
244
|
-
readonly text: string;
|
|
245
285
|
})[];
|
|
246
286
|
readonly id?: string | undefined;
|
|
247
287
|
readonly status?: string | undefined;
|
|
@@ -255,14 +295,6 @@ export declare const protocol: Protocol<{
|
|
|
255
295
|
}[];
|
|
256
296
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
257
297
|
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
298
|
} | {
|
|
267
299
|
readonly type: "function_call";
|
|
268
300
|
readonly id?: string | undefined;
|
|
@@ -270,26 +302,6 @@ export declare const protocol: Protocol<{
|
|
|
270
302
|
readonly name: string;
|
|
271
303
|
readonly namespace?: string | undefined;
|
|
272
304
|
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
305
|
} | {
|
|
294
306
|
readonly [x: string]: unknown;
|
|
295
307
|
readonly type: "web_search_call";
|
|
@@ -327,6 +339,10 @@ export declare const protocol: Protocol<{
|
|
|
327
339
|
readonly arguments?: string | undefined;
|
|
328
340
|
readonly output?: string | null | undefined;
|
|
329
341
|
readonly error?: unknown;
|
|
342
|
+
} | {
|
|
343
|
+
readonly [x: string]: unknown;
|
|
344
|
+
readonly type: string;
|
|
345
|
+
readonly id: string;
|
|
330
346
|
})[];
|
|
331
347
|
readonly instructions?: string | undefined;
|
|
332
348
|
readonly store?: boolean | undefined;
|
|
@@ -342,10 +358,6 @@ export declare const protocol: Protocol<{
|
|
|
342
358
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
343
359
|
readonly prompt_cache_key?: string | undefined;
|
|
344
360
|
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
|
-
readonly reasoning?: {
|
|
346
|
-
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
347
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
348
|
-
} | undefined;
|
|
349
361
|
readonly text?: {
|
|
350
362
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
351
363
|
} | undefined;
|
|
@@ -356,15 +368,11 @@ export declare const protocol: Protocol<{
|
|
|
356
368
|
readonly top_p?: number | undefined;
|
|
357
369
|
readonly presence_penalty?: number | undefined;
|
|
358
370
|
readonly frequency_penalty?: number | undefined;
|
|
371
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
372
|
+
readonly prompt_cache_options?: {
|
|
373
|
+
readonly ttl?: string | undefined;
|
|
374
|
+
} | undefined;
|
|
359
375
|
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
376
|
readonly type: "namespace";
|
|
369
377
|
readonly name: string;
|
|
370
378
|
readonly description: string;
|
|
@@ -377,6 +385,14 @@ export declare const protocol: Protocol<{
|
|
|
377
385
|
};
|
|
378
386
|
readonly strict?: boolean | undefined;
|
|
379
387
|
}[];
|
|
388
|
+
} | {
|
|
389
|
+
readonly type: "function";
|
|
390
|
+
readonly name: string;
|
|
391
|
+
readonly description: string;
|
|
392
|
+
readonly parameters: {
|
|
393
|
+
readonly [x: string]: unknown;
|
|
394
|
+
};
|
|
395
|
+
readonly strict?: boolean | undefined;
|
|
380
396
|
} | {
|
|
381
397
|
readonly type: "image_generation";
|
|
382
398
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -401,6 +417,12 @@ export declare const protocol: Protocol<{
|
|
|
401
417
|
} | {
|
|
402
418
|
readonly type: "image_generation";
|
|
403
419
|
} | undefined;
|
|
420
|
+
readonly reasoning?: {
|
|
421
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
422
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
423
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
424
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
425
|
+
} | undefined;
|
|
404
426
|
readonly context_management?: readonly {
|
|
405
427
|
readonly type: "compaction";
|
|
406
428
|
readonly compact_threshold?: number | undefined;
|
|
@@ -468,14 +490,6 @@ export declare const protocol: Protocol<{
|
|
|
468
490
|
export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
469
491
|
readonly model: string;
|
|
470
492
|
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
493
|
readonly type: "configuration_update";
|
|
480
494
|
readonly reasoning: {
|
|
481
495
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -488,10 +502,48 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
488
502
|
readonly type: "message";
|
|
489
503
|
readonly role: "developer";
|
|
490
504
|
readonly content: string;
|
|
505
|
+
} | {
|
|
506
|
+
readonly type: "function_call_output";
|
|
507
|
+
readonly call_id: string;
|
|
508
|
+
readonly output: string | readonly ({
|
|
509
|
+
readonly type: "input_text";
|
|
510
|
+
readonly text: string;
|
|
511
|
+
} | {
|
|
512
|
+
readonly type: "input_video";
|
|
513
|
+
readonly video_url: string;
|
|
514
|
+
} | {
|
|
515
|
+
readonly type: "input_image";
|
|
516
|
+
readonly image_url: string;
|
|
517
|
+
readonly detail?: string | undefined;
|
|
518
|
+
} | {
|
|
519
|
+
readonly type: "input_file";
|
|
520
|
+
readonly filename: string;
|
|
521
|
+
readonly detail?: string | undefined;
|
|
522
|
+
readonly file_data?: string | undefined;
|
|
523
|
+
readonly file_url?: string | undefined;
|
|
524
|
+
})[];
|
|
525
|
+
} | {
|
|
526
|
+
readonly type: "reasoning";
|
|
527
|
+
readonly id?: string | undefined;
|
|
528
|
+
readonly summary: readonly {
|
|
529
|
+
readonly type: "summary_text";
|
|
530
|
+
readonly text: string;
|
|
531
|
+
}[];
|
|
532
|
+
readonly encrypted_content?: string | null | undefined;
|
|
533
|
+
} | {
|
|
534
|
+
readonly type: "compaction";
|
|
535
|
+
readonly id?: string | null | undefined;
|
|
536
|
+
readonly encrypted_content: string;
|
|
491
537
|
} | {
|
|
492
538
|
readonly type: "message";
|
|
493
539
|
readonly role: "user";
|
|
494
540
|
readonly content: readonly ({
|
|
541
|
+
readonly type: "input_text";
|
|
542
|
+
readonly text: string;
|
|
543
|
+
} | {
|
|
544
|
+
readonly type: "input_video";
|
|
545
|
+
readonly video_url: string;
|
|
546
|
+
} | {
|
|
495
547
|
readonly type: "input_image";
|
|
496
548
|
readonly image_url: string;
|
|
497
549
|
readonly detail?: string | undefined;
|
|
@@ -501,9 +553,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
501
553
|
readonly detail?: string | undefined;
|
|
502
554
|
readonly file_data?: string | undefined;
|
|
503
555
|
readonly file_url?: string | undefined;
|
|
504
|
-
} | {
|
|
505
|
-
readonly type: "input_text";
|
|
506
|
-
readonly text: string;
|
|
507
556
|
})[];
|
|
508
557
|
readonly id?: string | undefined;
|
|
509
558
|
readonly status?: string | undefined;
|
|
@@ -517,14 +566,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
517
566
|
}[];
|
|
518
567
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
519
568
|
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
569
|
} | {
|
|
529
570
|
readonly type: "function_call";
|
|
530
571
|
readonly id?: string | undefined;
|
|
@@ -532,26 +573,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
532
573
|
readonly name: string;
|
|
533
574
|
readonly namespace?: string | undefined;
|
|
534
575
|
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
576
|
} | {
|
|
556
577
|
readonly [x: string]: unknown;
|
|
557
578
|
readonly type: "web_search_call";
|
|
@@ -589,6 +610,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
589
610
|
readonly arguments?: string | undefined;
|
|
590
611
|
readonly output?: string | null | undefined;
|
|
591
612
|
readonly error?: unknown;
|
|
613
|
+
} | {
|
|
614
|
+
readonly [x: string]: unknown;
|
|
615
|
+
readonly type: string;
|
|
616
|
+
readonly id: string;
|
|
592
617
|
})[];
|
|
593
618
|
readonly instructions?: string | undefined;
|
|
594
619
|
readonly store?: boolean | undefined;
|
|
@@ -604,10 +629,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
604
629
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
605
630
|
readonly prompt_cache_key?: string | undefined;
|
|
606
631
|
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
|
-
readonly reasoning?: {
|
|
608
|
-
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
609
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
610
|
-
} | undefined;
|
|
611
632
|
readonly text?: {
|
|
612
633
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
613
634
|
} | undefined;
|
|
@@ -618,15 +639,11 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
618
639
|
readonly top_p?: number | undefined;
|
|
619
640
|
readonly presence_penalty?: number | undefined;
|
|
620
641
|
readonly frequency_penalty?: number | undefined;
|
|
642
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
643
|
+
readonly prompt_cache_options?: {
|
|
644
|
+
readonly ttl?: string | undefined;
|
|
645
|
+
} | undefined;
|
|
621
646
|
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
647
|
readonly type: "namespace";
|
|
631
648
|
readonly name: string;
|
|
632
649
|
readonly description: string;
|
|
@@ -639,6 +656,14 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
639
656
|
};
|
|
640
657
|
readonly strict?: boolean | undefined;
|
|
641
658
|
}[];
|
|
659
|
+
} | {
|
|
660
|
+
readonly type: "function";
|
|
661
|
+
readonly name: string;
|
|
662
|
+
readonly description: string;
|
|
663
|
+
readonly parameters: {
|
|
664
|
+
readonly [x: string]: unknown;
|
|
665
|
+
};
|
|
666
|
+
readonly strict?: boolean | undefined;
|
|
642
667
|
} | {
|
|
643
668
|
readonly type: "image_generation";
|
|
644
669
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -663,6 +688,12 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
663
688
|
} | {
|
|
664
689
|
readonly type: "image_generation";
|
|
665
690
|
} | undefined;
|
|
691
|
+
readonly reasoning?: {
|
|
692
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
693
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
694
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
695
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
696
|
+
} | undefined;
|
|
666
697
|
readonly context_management?: readonly {
|
|
667
698
|
readonly type: "compaction";
|
|
668
699
|
readonly compact_threshold?: number | undefined;
|
|
@@ -672,14 +703,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
672
703
|
export declare const channelTransport: (options: import("./open-responses-channel.js").Options) => import("../route/transport/index.js").Transport<{
|
|
673
704
|
readonly model: string;
|
|
674
705
|
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
706
|
readonly type: "configuration_update";
|
|
684
707
|
readonly reasoning: {
|
|
685
708
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -693,9 +716,15 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
693
716
|
readonly role: "developer";
|
|
694
717
|
readonly content: string;
|
|
695
718
|
} | {
|
|
696
|
-
readonly type: "
|
|
697
|
-
readonly
|
|
698
|
-
readonly
|
|
719
|
+
readonly type: "function_call_output";
|
|
720
|
+
readonly call_id: string;
|
|
721
|
+
readonly output: string | readonly ({
|
|
722
|
+
readonly type: "input_text";
|
|
723
|
+
readonly text: string;
|
|
724
|
+
} | {
|
|
725
|
+
readonly type: "input_video";
|
|
726
|
+
readonly video_url: string;
|
|
727
|
+
} | {
|
|
699
728
|
readonly type: "input_image";
|
|
700
729
|
readonly image_url: string;
|
|
701
730
|
readonly detail?: string | undefined;
|
|
@@ -705,41 +734,29 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
705
734
|
readonly detail?: string | undefined;
|
|
706
735
|
readonly file_data?: string | undefined;
|
|
707
736
|
readonly file_url?: string | undefined;
|
|
708
|
-
} | {
|
|
709
|
-
readonly type: "input_text";
|
|
710
|
-
readonly text: string;
|
|
711
737
|
})[];
|
|
712
|
-
readonly id?: string | undefined;
|
|
713
|
-
readonly status?: string | undefined;
|
|
714
738
|
} | {
|
|
715
|
-
readonly type: "
|
|
739
|
+
readonly type: "reasoning";
|
|
716
740
|
readonly id?: string | undefined;
|
|
717
|
-
readonly
|
|
718
|
-
|
|
719
|
-
readonly type: "output_text";
|
|
720
|
-
readonly text: string;
|
|
721
|
-
}[];
|
|
722
|
-
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
723
|
-
readonly status?: string | undefined;
|
|
724
|
-
} | {
|
|
725
|
-
readonly type: "reasoning";
|
|
726
|
-
readonly id?: string | undefined;
|
|
727
|
-
readonly summary: readonly {
|
|
728
|
-
readonly type: "summary_text";
|
|
741
|
+
readonly summary: readonly {
|
|
742
|
+
readonly type: "summary_text";
|
|
729
743
|
readonly text: string;
|
|
730
744
|
}[];
|
|
731
745
|
readonly encrypted_content?: string | null | undefined;
|
|
732
746
|
} | {
|
|
733
|
-
readonly type: "
|
|
734
|
-
readonly id?: string | undefined;
|
|
735
|
-
readonly
|
|
736
|
-
readonly name: string;
|
|
737
|
-
readonly namespace?: string | undefined;
|
|
738
|
-
readonly arguments: string;
|
|
747
|
+
readonly type: "compaction";
|
|
748
|
+
readonly id?: string | null | undefined;
|
|
749
|
+
readonly encrypted_content: string;
|
|
739
750
|
} | {
|
|
740
|
-
readonly type: "
|
|
741
|
-
readonly
|
|
742
|
-
readonly
|
|
751
|
+
readonly type: "message";
|
|
752
|
+
readonly role: "user";
|
|
753
|
+
readonly content: readonly ({
|
|
754
|
+
readonly type: "input_text";
|
|
755
|
+
readonly text: string;
|
|
756
|
+
} | {
|
|
757
|
+
readonly type: "input_video";
|
|
758
|
+
readonly video_url: string;
|
|
759
|
+
} | {
|
|
743
760
|
readonly type: "input_image";
|
|
744
761
|
readonly image_url: string;
|
|
745
762
|
readonly detail?: string | undefined;
|
|
@@ -749,13 +766,26 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
749
766
|
readonly detail?: string | undefined;
|
|
750
767
|
readonly file_data?: string | undefined;
|
|
751
768
|
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
769
|
})[];
|
|
770
|
+
readonly id?: string | undefined;
|
|
771
|
+
readonly status?: string | undefined;
|
|
772
|
+
} | {
|
|
773
|
+
readonly type: "message";
|
|
774
|
+
readonly id?: string | undefined;
|
|
775
|
+
readonly role: "assistant";
|
|
776
|
+
readonly content: readonly {
|
|
777
|
+
readonly type: "output_text";
|
|
778
|
+
readonly text: string;
|
|
779
|
+
}[];
|
|
780
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
781
|
+
readonly status?: string | undefined;
|
|
782
|
+
} | {
|
|
783
|
+
readonly type: "function_call";
|
|
784
|
+
readonly id?: string | undefined;
|
|
785
|
+
readonly call_id: string;
|
|
786
|
+
readonly name: string;
|
|
787
|
+
readonly namespace?: string | undefined;
|
|
788
|
+
readonly arguments: string;
|
|
759
789
|
} | {
|
|
760
790
|
readonly [x: string]: unknown;
|
|
761
791
|
readonly type: "web_search_call";
|
|
@@ -793,6 +823,10 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
793
823
|
readonly arguments?: string | undefined;
|
|
794
824
|
readonly output?: string | null | undefined;
|
|
795
825
|
readonly error?: unknown;
|
|
826
|
+
} | {
|
|
827
|
+
readonly [x: string]: unknown;
|
|
828
|
+
readonly type: string;
|
|
829
|
+
readonly id: string;
|
|
796
830
|
})[];
|
|
797
831
|
readonly instructions?: string | undefined;
|
|
798
832
|
readonly store?: boolean | undefined;
|
|
@@ -808,10 +842,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
808
842
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
809
843
|
readonly prompt_cache_key?: string | undefined;
|
|
810
844
|
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
|
-
readonly reasoning?: {
|
|
812
|
-
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
813
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
814
|
-
} | undefined;
|
|
815
845
|
readonly text?: {
|
|
816
846
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
817
847
|
} | undefined;
|
|
@@ -822,15 +852,11 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
822
852
|
readonly top_p?: number | undefined;
|
|
823
853
|
readonly presence_penalty?: number | undefined;
|
|
824
854
|
readonly frequency_penalty?: number | undefined;
|
|
855
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
856
|
+
readonly prompt_cache_options?: {
|
|
857
|
+
readonly ttl?: string | undefined;
|
|
858
|
+
} | undefined;
|
|
825
859
|
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
860
|
readonly type: "namespace";
|
|
835
861
|
readonly name: string;
|
|
836
862
|
readonly description: string;
|
|
@@ -843,6 +869,14 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
843
869
|
};
|
|
844
870
|
readonly strict?: boolean | undefined;
|
|
845
871
|
}[];
|
|
872
|
+
} | {
|
|
873
|
+
readonly type: "function";
|
|
874
|
+
readonly name: string;
|
|
875
|
+
readonly description: string;
|
|
876
|
+
readonly parameters: {
|
|
877
|
+
readonly [x: string]: unknown;
|
|
878
|
+
};
|
|
879
|
+
readonly strict?: boolean | undefined;
|
|
846
880
|
} | {
|
|
847
881
|
readonly type: "image_generation";
|
|
848
882
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -867,6 +901,12 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
867
901
|
} | {
|
|
868
902
|
readonly type: "image_generation";
|
|
869
903
|
} | undefined;
|
|
904
|
+
readonly reasoning?: {
|
|
905
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
906
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
907
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
908
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
909
|
+
} | undefined;
|
|
870
910
|
readonly context_management?: readonly {
|
|
871
911
|
readonly type: "compaction";
|
|
872
912
|
readonly compact_threshold?: number | undefined;
|
|
@@ -876,14 +916,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
876
916
|
export declare const transport: import("../route/transport/index.js").Transport<{
|
|
877
917
|
readonly model: string;
|
|
878
918
|
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
919
|
readonly type: "configuration_update";
|
|
888
920
|
readonly reasoning: {
|
|
889
921
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -896,10 +928,48 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
896
928
|
readonly type: "message";
|
|
897
929
|
readonly role: "developer";
|
|
898
930
|
readonly content: string;
|
|
931
|
+
} | {
|
|
932
|
+
readonly type: "function_call_output";
|
|
933
|
+
readonly call_id: string;
|
|
934
|
+
readonly output: string | readonly ({
|
|
935
|
+
readonly type: "input_text";
|
|
936
|
+
readonly text: string;
|
|
937
|
+
} | {
|
|
938
|
+
readonly type: "input_video";
|
|
939
|
+
readonly video_url: string;
|
|
940
|
+
} | {
|
|
941
|
+
readonly type: "input_image";
|
|
942
|
+
readonly image_url: string;
|
|
943
|
+
readonly detail?: string | undefined;
|
|
944
|
+
} | {
|
|
945
|
+
readonly type: "input_file";
|
|
946
|
+
readonly filename: string;
|
|
947
|
+
readonly detail?: string | undefined;
|
|
948
|
+
readonly file_data?: string | undefined;
|
|
949
|
+
readonly file_url?: string | undefined;
|
|
950
|
+
})[];
|
|
951
|
+
} | {
|
|
952
|
+
readonly type: "reasoning";
|
|
953
|
+
readonly id?: string | undefined;
|
|
954
|
+
readonly summary: readonly {
|
|
955
|
+
readonly type: "summary_text";
|
|
956
|
+
readonly text: string;
|
|
957
|
+
}[];
|
|
958
|
+
readonly encrypted_content?: string | null | undefined;
|
|
959
|
+
} | {
|
|
960
|
+
readonly type: "compaction";
|
|
961
|
+
readonly id?: string | null | undefined;
|
|
962
|
+
readonly encrypted_content: string;
|
|
899
963
|
} | {
|
|
900
964
|
readonly type: "message";
|
|
901
965
|
readonly role: "user";
|
|
902
966
|
readonly content: readonly ({
|
|
967
|
+
readonly type: "input_text";
|
|
968
|
+
readonly text: string;
|
|
969
|
+
} | {
|
|
970
|
+
readonly type: "input_video";
|
|
971
|
+
readonly video_url: string;
|
|
972
|
+
} | {
|
|
903
973
|
readonly type: "input_image";
|
|
904
974
|
readonly image_url: string;
|
|
905
975
|
readonly detail?: string | undefined;
|
|
@@ -909,9 +979,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
909
979
|
readonly detail?: string | undefined;
|
|
910
980
|
readonly file_data?: string | undefined;
|
|
911
981
|
readonly file_url?: string | undefined;
|
|
912
|
-
} | {
|
|
913
|
-
readonly type: "input_text";
|
|
914
|
-
readonly text: string;
|
|
915
982
|
})[];
|
|
916
983
|
readonly id?: string | undefined;
|
|
917
984
|
readonly status?: string | undefined;
|
|
@@ -925,14 +992,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
925
992
|
}[];
|
|
926
993
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
927
994
|
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
995
|
} | {
|
|
937
996
|
readonly type: "function_call";
|
|
938
997
|
readonly id?: string | undefined;
|
|
@@ -940,26 +999,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
940
999
|
readonly name: string;
|
|
941
1000
|
readonly namespace?: string | undefined;
|
|
942
1001
|
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
1002
|
} | {
|
|
964
1003
|
readonly [x: string]: unknown;
|
|
965
1004
|
readonly type: "web_search_call";
|
|
@@ -997,6 +1036,10 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
997
1036
|
readonly arguments?: string | undefined;
|
|
998
1037
|
readonly output?: string | null | undefined;
|
|
999
1038
|
readonly error?: unknown;
|
|
1039
|
+
} | {
|
|
1040
|
+
readonly [x: string]: unknown;
|
|
1041
|
+
readonly type: string;
|
|
1042
|
+
readonly id: string;
|
|
1000
1043
|
})[];
|
|
1001
1044
|
readonly instructions?: string | undefined;
|
|
1002
1045
|
readonly store?: boolean | undefined;
|
|
@@ -1012,10 +1055,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1012
1055
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1013
1056
|
readonly prompt_cache_key?: string | undefined;
|
|
1014
1057
|
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
|
-
readonly reasoning?: {
|
|
1016
|
-
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1017
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1018
|
-
} | undefined;
|
|
1019
1058
|
readonly text?: {
|
|
1020
1059
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1021
1060
|
} | undefined;
|
|
@@ -1026,15 +1065,11 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1026
1065
|
readonly top_p?: number | undefined;
|
|
1027
1066
|
readonly presence_penalty?: number | undefined;
|
|
1028
1067
|
readonly frequency_penalty?: number | undefined;
|
|
1068
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1069
|
+
readonly prompt_cache_options?: {
|
|
1070
|
+
readonly ttl?: string | undefined;
|
|
1071
|
+
} | undefined;
|
|
1029
1072
|
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
1073
|
readonly type: "namespace";
|
|
1039
1074
|
readonly name: string;
|
|
1040
1075
|
readonly description: string;
|
|
@@ -1047,6 +1082,14 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1047
1082
|
};
|
|
1048
1083
|
readonly strict?: boolean | undefined;
|
|
1049
1084
|
}[];
|
|
1085
|
+
} | {
|
|
1086
|
+
readonly type: "function";
|
|
1087
|
+
readonly name: string;
|
|
1088
|
+
readonly description: string;
|
|
1089
|
+
readonly parameters: {
|
|
1090
|
+
readonly [x: string]: unknown;
|
|
1091
|
+
};
|
|
1092
|
+
readonly strict?: boolean | undefined;
|
|
1050
1093
|
} | {
|
|
1051
1094
|
readonly type: "image_generation";
|
|
1052
1095
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -1071,6 +1114,12 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1071
1114
|
} | {
|
|
1072
1115
|
readonly type: "image_generation";
|
|
1073
1116
|
} | undefined;
|
|
1117
|
+
readonly reasoning?: {
|
|
1118
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1119
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1120
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
1121
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
1122
|
+
} | undefined;
|
|
1074
1123
|
readonly context_management?: readonly {
|
|
1075
1124
|
readonly type: "compaction";
|
|
1076
1125
|
readonly compact_threshold?: number | undefined;
|
|
@@ -1080,14 +1129,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1080
1129
|
export declare const route: Route<{
|
|
1081
1130
|
readonly model: string;
|
|
1082
1131
|
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
1132
|
readonly type: "configuration_update";
|
|
1092
1133
|
readonly reasoning: {
|
|
1093
1134
|
readonly effort: OpenResponsesOptions.ReasoningEffort;
|
|
@@ -1100,10 +1141,48 @@ export declare const route: Route<{
|
|
|
1100
1141
|
readonly type: "message";
|
|
1101
1142
|
readonly role: "developer";
|
|
1102
1143
|
readonly content: string;
|
|
1144
|
+
} | {
|
|
1145
|
+
readonly type: "function_call_output";
|
|
1146
|
+
readonly call_id: string;
|
|
1147
|
+
readonly output: string | readonly ({
|
|
1148
|
+
readonly type: "input_text";
|
|
1149
|
+
readonly text: string;
|
|
1150
|
+
} | {
|
|
1151
|
+
readonly type: "input_video";
|
|
1152
|
+
readonly video_url: string;
|
|
1153
|
+
} | {
|
|
1154
|
+
readonly type: "input_image";
|
|
1155
|
+
readonly image_url: string;
|
|
1156
|
+
readonly detail?: string | undefined;
|
|
1157
|
+
} | {
|
|
1158
|
+
readonly type: "input_file";
|
|
1159
|
+
readonly filename: string;
|
|
1160
|
+
readonly detail?: string | undefined;
|
|
1161
|
+
readonly file_data?: string | undefined;
|
|
1162
|
+
readonly file_url?: string | undefined;
|
|
1163
|
+
})[];
|
|
1164
|
+
} | {
|
|
1165
|
+
readonly type: "reasoning";
|
|
1166
|
+
readonly id?: string | undefined;
|
|
1167
|
+
readonly summary: readonly {
|
|
1168
|
+
readonly type: "summary_text";
|
|
1169
|
+
readonly text: string;
|
|
1170
|
+
}[];
|
|
1171
|
+
readonly encrypted_content?: string | null | undefined;
|
|
1172
|
+
} | {
|
|
1173
|
+
readonly type: "compaction";
|
|
1174
|
+
readonly id?: string | null | undefined;
|
|
1175
|
+
readonly encrypted_content: string;
|
|
1103
1176
|
} | {
|
|
1104
1177
|
readonly type: "message";
|
|
1105
1178
|
readonly role: "user";
|
|
1106
1179
|
readonly content: readonly ({
|
|
1180
|
+
readonly type: "input_text";
|
|
1181
|
+
readonly text: string;
|
|
1182
|
+
} | {
|
|
1183
|
+
readonly type: "input_video";
|
|
1184
|
+
readonly video_url: string;
|
|
1185
|
+
} | {
|
|
1107
1186
|
readonly type: "input_image";
|
|
1108
1187
|
readonly image_url: string;
|
|
1109
1188
|
readonly detail?: string | undefined;
|
|
@@ -1113,9 +1192,6 @@ export declare const route: Route<{
|
|
|
1113
1192
|
readonly detail?: string | undefined;
|
|
1114
1193
|
readonly file_data?: string | undefined;
|
|
1115
1194
|
readonly file_url?: string | undefined;
|
|
1116
|
-
} | {
|
|
1117
|
-
readonly type: "input_text";
|
|
1118
|
-
readonly text: string;
|
|
1119
1195
|
})[];
|
|
1120
1196
|
readonly id?: string | undefined;
|
|
1121
1197
|
readonly status?: string | undefined;
|
|
@@ -1129,14 +1205,6 @@ export declare const route: Route<{
|
|
|
1129
1205
|
}[];
|
|
1130
1206
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
1131
1207
|
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
1208
|
} | {
|
|
1141
1209
|
readonly type: "function_call";
|
|
1142
1210
|
readonly id?: string | undefined;
|
|
@@ -1144,26 +1212,6 @@ export declare const route: Route<{
|
|
|
1144
1212
|
readonly name: string;
|
|
1145
1213
|
readonly namespace?: string | undefined;
|
|
1146
1214
|
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
1215
|
} | {
|
|
1168
1216
|
readonly [x: string]: unknown;
|
|
1169
1217
|
readonly type: "web_search_call";
|
|
@@ -1201,6 +1249,10 @@ export declare const route: Route<{
|
|
|
1201
1249
|
readonly arguments?: string | undefined;
|
|
1202
1250
|
readonly output?: string | null | undefined;
|
|
1203
1251
|
readonly error?: unknown;
|
|
1252
|
+
} | {
|
|
1253
|
+
readonly [x: string]: unknown;
|
|
1254
|
+
readonly type: string;
|
|
1255
|
+
readonly id: string;
|
|
1204
1256
|
})[];
|
|
1205
1257
|
readonly instructions?: string | undefined;
|
|
1206
1258
|
readonly store?: boolean | undefined;
|
|
@@ -1216,10 +1268,6 @@ export declare const route: Route<{
|
|
|
1216
1268
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1217
1269
|
readonly prompt_cache_key?: string | undefined;
|
|
1218
1270
|
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
|
-
readonly reasoning?: {
|
|
1220
|
-
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1221
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1222
|
-
} | undefined;
|
|
1223
1271
|
readonly text?: {
|
|
1224
1272
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1225
1273
|
} | undefined;
|
|
@@ -1230,15 +1278,11 @@ export declare const route: Route<{
|
|
|
1230
1278
|
readonly top_p?: number | undefined;
|
|
1231
1279
|
readonly presence_penalty?: number | undefined;
|
|
1232
1280
|
readonly frequency_penalty?: number | undefined;
|
|
1281
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1282
|
+
readonly prompt_cache_options?: {
|
|
1283
|
+
readonly ttl?: string | undefined;
|
|
1284
|
+
} | undefined;
|
|
1233
1285
|
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
1286
|
readonly type: "namespace";
|
|
1243
1287
|
readonly name: string;
|
|
1244
1288
|
readonly description: string;
|
|
@@ -1251,6 +1295,14 @@ export declare const route: Route<{
|
|
|
1251
1295
|
};
|
|
1252
1296
|
readonly strict?: boolean | undefined;
|
|
1253
1297
|
}[];
|
|
1298
|
+
} | {
|
|
1299
|
+
readonly type: "function";
|
|
1300
|
+
readonly name: string;
|
|
1301
|
+
readonly description: string;
|
|
1302
|
+
readonly parameters: {
|
|
1303
|
+
readonly [x: string]: unknown;
|
|
1304
|
+
};
|
|
1305
|
+
readonly strict?: boolean | undefined;
|
|
1254
1306
|
} | {
|
|
1255
1307
|
readonly type: "image_generation";
|
|
1256
1308
|
readonly action?: "auto" | "edit" | "generate" | undefined;
|
|
@@ -1275,6 +1327,12 @@ export declare const route: Route<{
|
|
|
1275
1327
|
} | {
|
|
1276
1328
|
readonly type: "image_generation";
|
|
1277
1329
|
} | undefined;
|
|
1330
|
+
readonly reasoning?: {
|
|
1331
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1332
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1333
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
1334
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
1335
|
+
} | undefined;
|
|
1278
1336
|
readonly context_management?: readonly {
|
|
1279
1337
|
readonly type: "compaction";
|
|
1280
1338
|
readonly compact_threshold?: number | undefined;
|