@opencode/ai 2.1.4 → 2.2.1
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 +339 -166
- 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 +50 -14
- package/dist/image-client.js +0 -1
- package/dist/image.d.ts +6 -176
- package/dist/image.js +4 -11
- package/dist/index.d.ts +1444 -34
- package/dist/index.js +139 -24
- package/dist/llm.d.ts +16 -1
- package/dist/llm.js +34 -0
- package/dist/media-client.d.ts +3 -1
- package/dist/media-client.js +1 -0
- 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 +59 -4
- package/dist/protocols/alibaba-images.d.ts +22 -0
- package/dist/protocols/alibaba-images.js +77 -0
- package/dist/protocols/alibaba-messages.d.ts +52 -17
- package/dist/protocols/alibaba-responses.d.ts +26 -6
- package/dist/protocols/anthropic-messages.d.ts +160 -54
- package/dist/protocols/anthropic-messages.js +44 -13
- package/dist/protocols/bedrock-converse.d.ts +110 -15
- package/dist/protocols/bedrock-converse.js +112 -15
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/cartesia-speech.d.ts +0 -18
- 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/deepgram-speech.d.ts +0 -18
- package/dist/protocols/elevenlabs-speech.d.ts +0 -18
- package/dist/protocols/gemini.d.ts +3 -0
- package/dist/protocols/gemini.js +11 -6
- package/dist/protocols/google-images.d.ts +2 -2
- package/dist/protocols/google-images.js +10 -37
- package/dist/protocols/google-interactions.d.ts +4 -0
- package/dist/protocols/google-interactions.js +12 -5
- package/dist/protocols/google-speech.d.ts +0 -18
- package/dist/protocols/google-speech.js +0 -1
- package/dist/protocols/google-transcription.d.ts +0 -18
- 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 +52 -17
- package/dist/protocols/meta-messages.js +14 -1
- package/dist/protocols/meta-responses.d.ts +46 -6
- package/dist/protocols/meta-responses.js +29 -1
- package/dist/protocols/minimax-images.d.ts +25 -0
- package/dist/protocols/minimax-images.js +150 -0
- package/dist/protocols/open-responses.d.ts +212 -27
- package/dist/protocols/open-responses.js +116 -54
- package/dist/protocols/openai-chat.d.ts +1135 -31
- package/dist/protocols/openai-chat.js +155 -60
- package/dist/protocols/openai-compatible-chat.d.ts +57 -5
- package/dist/protocols/openai-compatible-responses.d.ts +28 -8
- package/dist/protocols/openai-decisions.d.ts +22 -0
- package/dist/protocols/openai-decisions.js +128 -0
- package/dist/protocols/openai-freeform.d.ts +47 -0
- package/dist/protocols/openai-freeform.js +54 -0
- package/dist/protocols/openai-images.d.ts +36 -24
- package/dist/protocols/openai-images.js +137 -39
- package/dist/protocols/openai-responses.d.ts +202 -42
- package/dist/protocols/openai-responses.js +49 -10
- package/dist/protocols/openai-speech.d.ts +0 -18
- package/dist/protocols/openai-speech.js +15 -5
- package/dist/protocols/openai-transcription.d.ts +0 -18
- package/dist/protocols/openai-transcription.js +3 -4
- 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/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/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 +9 -0
- package/dist/protocols/venice-chat.d.ts +58 -4
- package/dist/protocols/venice-chat.js +2 -2
- package/dist/protocols/xai-images.d.ts +7 -2
- package/dist/protocols/xai-images.js +11 -5
- package/dist/protocols/xai-responses.d.ts +30 -3
- package/dist/protocols/xai-responses.js +30 -3
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/xai-video.js +11 -8
- package/dist/protocols/zai-chat.d.ts +60 -4
- package/dist/protocols/zai-images.d.ts +3 -1
- package/dist/protocols/zai-images.js +12 -11
- package/dist/protocols/zai-messages.d.ts +52 -17
- package/dist/provider-error.js +23 -7
- package/dist/provider-package.d.ts +2 -0
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba.d.ts +137 -28
- package/dist/providers/alibaba.js +16 -8
- package/dist/providers/amazon-bedrock-mantle.d.ts +259 -145
- package/dist/providers/amazon-bedrock-mantle.js +1 -1
- package/dist/providers/amazon-bedrock.d.ts +34 -14
- package/dist/providers/amazon-bedrock.js +11 -11
- package/dist/providers/anthropic-compatible.d.ts +53 -18
- package/dist/providers/anthropic.d.ts +53 -18
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure.d.ts +129 -24
- 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 +124 -12
- package/dist/providers/baseten.js +41 -8
- package/dist/providers/cerebras.d.ts +115 -11
- package/dist/providers/cerebras.js +1 -1
- 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 +290 -60
- package/dist/providers/cloudflare-ai-gateway.js +32 -4
- 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 +128 -12
- package/dist/providers/cloudflare-workers-ai.js +45 -9
- package/dist/providers/cohere/chat.d.ts +1 -1
- package/dist/providers/cohere/chat.js +1 -1
- package/dist/providers/cohere.d.ts +115 -11
- package/dist/providers/cohere.js +1 -1
- package/dist/providers/deepinfra.d.ts +115 -11
- package/dist/providers/deepinfra.js +1 -1
- package/dist/providers/deepseek.d.ts +115 -11
- package/dist/providers/deepseek.js +1 -1
- 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/responses.d.ts +4 -0
- package/dist/providers/digitalocean/responses.js +1 -0
- package/dist/providers/digitalocean.d.ts +390 -20
- package/dist/providers/digitalocean.js +53 -11
- package/dist/providers/fireworks.d.ts +115 -11
- package/dist/providers/fireworks.js +1 -1
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google/interactions.d.ts +1 -1
- package/dist/providers/google/interactions.js +1 -1
- 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 +57 -5
- package/dist/providers/google-vertex-chat.js +1 -1
- package/dist/providers/google-vertex-interactions.d.ts +1 -1
- package/dist/providers/google-vertex-interactions.js +1 -1
- package/dist/providers/google-vertex-messages.d.ts +53 -18
- package/dist/providers/google-vertex-messages.js +1 -1
- package/dist/providers/google-vertex-mistral.d.ts +1 -1
- package/dist/providers/google-vertex-mistral.js +1 -1
- package/dist/providers/google-vertex-responses.d.ts +24 -4
- package/dist/providers/google-vertex-responses.js +1 -1
- package/dist/providers/google-vertex.d.ts +4 -2
- package/dist/providers/google-vertex.js +30 -13
- package/dist/providers/google.d.ts +6 -5
- package/dist/providers/google.js +15 -8
- package/dist/providers/groq.d.ts +119 -15
- package/dist/providers/groq.js +1 -7
- package/dist/providers/index.d.ts +0 -4
- package/dist/providers/index.js +0 -4
- package/dist/providers/meta/images.d.ts +2 -0
- package/dist/providers/meta/images.js +1 -0
- package/dist/providers/meta.d.ts +254 -146
- package/dist/providers/meta.js +2 -1
- package/dist/providers/minimax/chat.d.ts +1 -1
- package/dist/providers/minimax/chat.js +1 -1
- package/dist/providers/minimax/images.d.ts +3 -0
- package/dist/providers/minimax/images.js +1 -0
- package/dist/providers/minimax/responses.d.ts +1 -1
- package/dist/providers/minimax/responses.js +1 -1
- package/dist/providers/minimax.d.ts +139 -26
- package/dist/providers/minimax.js +22 -9
- package/dist/providers/mistral.d.ts +3 -3
- package/dist/providers/mistral.js +1 -1
- package/dist/providers/moonshot/messages.d.ts +1 -1
- package/dist/providers/moonshot/messages.js +1 -1
- package/dist/providers/moonshot/responses.d.ts +1 -1
- package/dist/providers/moonshot/responses.js +1 -1
- package/dist/providers/moonshot.d.ts +132 -25
- package/dist/providers/moonshot.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 +24 -4
- package/dist/providers/openai-compatible.d.ts +62 -8
- package/dist/providers/openai-compatible.js +29 -10
- package/dist/providers/openai-options.d.ts +3 -1
- package/dist/providers/openai.d.ts +103 -18
- package/dist/providers/openai.js +23 -5
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +11 -12
- 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/responses.d.ts +4 -0
- package/dist/providers/openrouter/responses.js +1 -0
- package/dist/providers/openrouter.d.ts +446 -35
- package/dist/providers/openrouter.js +78 -27
- package/dist/providers/togetherai.d.ts +115 -11
- package/dist/providers/togetherai.js +1 -1
- 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 +11 -12
- package/dist/providers/typesafe-ai.js +10 -8
- package/dist/providers/venice/responses.d.ts +4 -0
- package/dist/providers/venice/responses.js +1 -0
- package/dist/providers/venice.d.ts +261 -9
- package/dist/providers/venice.js +33 -17
- 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 +16 -22
- package/dist/providers/vercel-ai-gateway.js +41 -85
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai.d.ts +66 -12
- 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/messages.d.ts +1 -1
- package/dist/providers/zai-coding-plan/messages.js +1 -1
- package/dist/providers/zai-coding-plan/responses.d.ts +1 -1
- package/dist/providers/zai-coding-plan/responses.js +1 -1
- package/dist/providers/zai-coding-plan.d.ts +132 -25
- package/dist/providers/zai-coding-plan.js +1 -1
- package/dist/providers/zai.d.ts +62 -9
- package/dist/providers/zai.js +15 -8
- package/dist/route/auth.d.ts +1 -1
- package/dist/route/client.d.ts +2 -2
- package/dist/route/client.js +26 -4
- package/dist/route/decision.d.ts +58 -0
- package/dist/route/decision.js +75 -0
- 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 +3 -4
- package/dist/route/media-protocol.js +12 -8
- package/dist/route/media.d.ts +6 -2
- package/dist/route/media.js +8 -6
- 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 +41 -3
- package/dist/schema/messages.js +23 -0
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/speech-client.d.ts +53 -14
- package/dist/speech-client.js +0 -1
- package/dist/speech.d.ts +0 -135
- package/dist/speech.js +2 -4
- package/dist/testing/decision.d.ts +16 -0
- package/dist/testing/decision.js +20 -0
- package/dist/testing/image.d.ts +14 -0
- package/dist/testing/image.js +12 -0
- package/dist/testing/media.d.ts +18 -0
- package/dist/testing/media.js +36 -0
- package/dist/testing/script.d.ts +28 -0
- package/dist/testing/script.js +60 -0
- package/dist/testing/speech.d.ts +14 -0
- package/dist/testing/speech.js +12 -0
- package/dist/testing/transcription.d.ts +14 -0
- package/dist/testing/transcription.js +12 -0
- package/dist/testing/video.d.ts +14 -0
- package/dist/testing/video.js +12 -0
- package/dist/testing.d.ts +35 -45
- package/dist/testing.js +14 -75
- package/dist/tool.d.ts +12 -1
- package/dist/tool.js +10 -2
- package/dist/transcription-client.d.ts +69 -14
- package/dist/transcription.d.ts +0 -135
- package/dist/transcription.js +1 -1
- package/dist/utils/media-type.js +22 -1
- package/dist/video-client.d.ts +46 -14
- package/dist/video-client.js +0 -1
- package/dist/video.d.ts +1 -136
- package/dist/video.js +3 -5
- package/package.json +497 -11
- 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 -108
- 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/protocols/bfl-images.d.ts +0 -38
- package/dist/protocols/bfl-images.js +0 -153
- package/dist/protocols/fal-images.d.ts +0 -25
- package/dist/protocols/fal-images.js +0 -104
- package/dist/protocols/fal-video.d.ts +0 -29
- package/dist/protocols/fal-video.js +0 -73
- package/dist/protocols/replicate-images.d.ts +0 -28
- package/dist/protocols/replicate-images.js +0 -127
- package/dist/protocols/stability-images.d.ts +0 -39
- package/dist/protocols/stability-images.js +0 -136
- package/dist/protocols/utils/fal-queue.d.ts +0 -26
- package/dist/protocols/utils/fal-queue.js +0 -67
- package/dist/provider.d.ts +0 -23
- package/dist/provider.js +0 -2
- package/dist/providers/black-forest-labs.d.ts +0 -21
- package/dist/providers/black-forest-labs.js +0 -23
- package/dist/providers/fal.d.ts +0 -24
- package/dist/providers/fal.js +0 -26
- package/dist/providers/replicate.d.ts +0 -21
- package/dist/providers/replicate.js +0 -17
- package/dist/providers/stability.d.ts +0 -23
- package/dist/providers/stability.js +0 -18
|
@@ -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>;
|
|
@@ -75,7 +82,7 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
75
82
|
readonly namespace: Schema.optional<Schema.String>;
|
|
76
83
|
readonly arguments: Schema.String;
|
|
77
84
|
}>, Schema.Struct<{
|
|
78
|
-
readonly type: Schema.
|
|
85
|
+
readonly type: Schema.Literals<readonly ["function_call_output", "custom_tool_call_output"]>;
|
|
79
86
|
readonly call_id: Schema.String;
|
|
80
87
|
readonly output: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
81
88
|
readonly type: Schema.tag<"input_text">;
|
|
@@ -94,6 +101,12 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
94
101
|
readonly type: Schema.tag<"input_video">;
|
|
95
102
|
readonly video_url: Schema.String;
|
|
96
103
|
}>]>>]>;
|
|
104
|
+
}>, Schema.Struct<{
|
|
105
|
+
readonly type: Schema.tag<"custom_tool_call">;
|
|
106
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
107
|
+
readonly call_id: Schema.String;
|
|
108
|
+
readonly name: Schema.String;
|
|
109
|
+
readonly input: Schema.String;
|
|
97
110
|
}>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
98
111
|
readonly type: Schema.tag<"web_search_call">;
|
|
99
112
|
readonly id: Schema.String;
|
|
@@ -137,10 +150,6 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
137
150
|
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
151
|
readonly prompt_cache_key: Schema.optional<Schema.String>;
|
|
139
152
|
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
153
|
readonly text: Schema.optional<Schema.Struct<{
|
|
145
154
|
readonly verbosity: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"high" | "low" | "medium">, import("../schema/options.js").OpenString<"high" | "low" | "medium">>>;
|
|
146
155
|
}>>;
|
|
@@ -151,12 +160,27 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
151
160
|
readonly top_p: Schema.optional<Schema.Number>;
|
|
152
161
|
readonly presence_penalty: Schema.optional<Schema.Number>;
|
|
153
162
|
readonly frequency_penalty: Schema.optional<Schema.Number>;
|
|
163
|
+
readonly prompt_cache_retention: Schema.optional<Schema.String>;
|
|
164
|
+
readonly prompt_cache_options: Schema.optional<Schema.Struct<{
|
|
165
|
+
readonly ttl: Schema.optional<Schema.String>;
|
|
166
|
+
}>>;
|
|
154
167
|
readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
155
168
|
readonly type: Schema.tag<"function">;
|
|
156
169
|
readonly name: Schema.String;
|
|
157
170
|
readonly description: Schema.String;
|
|
158
171
|
readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
159
172
|
readonly strict: Schema.optional<Schema.Boolean>;
|
|
173
|
+
}>, Schema.Struct<{
|
|
174
|
+
readonly type: Schema.tag<"custom">;
|
|
175
|
+
readonly name: Schema.String;
|
|
176
|
+
readonly description: Schema.String;
|
|
177
|
+
readonly format: Schema.Union<readonly [Schema.Struct<{
|
|
178
|
+
readonly type: Schema.tag<"text">;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly type: Schema.tag<"grammar">;
|
|
181
|
+
readonly syntax: Schema.Literals<readonly ["lark", "regex"]>;
|
|
182
|
+
readonly definition: Schema.String;
|
|
183
|
+
}>]>;
|
|
160
184
|
}>, Schema.Struct<{
|
|
161
185
|
readonly type: Schema.tag<"namespace">;
|
|
162
186
|
readonly name: Schema.String;
|
|
@@ -180,18 +204,24 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
180
204
|
readonly size: Schema.optional<Schema.String>;
|
|
181
205
|
}>]>>>;
|
|
182
206
|
readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
|
|
183
|
-
readonly type: Schema.
|
|
207
|
+
readonly type: Schema.Literals<readonly ["function", "custom"]>;
|
|
184
208
|
readonly name: Schema.String;
|
|
185
209
|
}>, Schema.Struct<{
|
|
186
210
|
readonly type: Schema.tag<"allowed_tools">;
|
|
187
211
|
readonly mode: Schema.Literals<readonly ["auto", "none", "required"]>;
|
|
188
212
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
189
|
-
readonly type: Schema.
|
|
213
|
+
readonly type: Schema.Literals<readonly ["function", "custom"]>;
|
|
190
214
|
readonly name: Schema.String;
|
|
191
215
|
}>>;
|
|
192
216
|
}>]>, Schema.Struct<{
|
|
193
217
|
readonly type: Schema.tag<"image_generation">;
|
|
194
218
|
}>]>>;
|
|
219
|
+
readonly reasoning: Schema.optional<Schema.Struct<{
|
|
220
|
+
readonly effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
221
|
+
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
222
|
+
readonly mode: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"pro" | "standard">, import("../schema/options.js").OpenString<"pro" | "standard">>>;
|
|
223
|
+
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">>>;
|
|
224
|
+
}>>;
|
|
195
225
|
readonly context_management: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
196
226
|
readonly type: Schema.Literal<"compaction">;
|
|
197
227
|
readonly compact_threshold: Schema.optional<Schema.Int>;
|
|
@@ -219,7 +249,7 @@ export declare const protocol: Protocol<{
|
|
|
219
249
|
readonly role: "developer";
|
|
220
250
|
readonly content: string;
|
|
221
251
|
} | {
|
|
222
|
-
readonly type: "function_call_output";
|
|
252
|
+
readonly type: "custom_tool_call_output" | "function_call_output";
|
|
223
253
|
readonly call_id: string;
|
|
224
254
|
readonly output: string | readonly ({
|
|
225
255
|
readonly type: "input_text";
|
|
@@ -256,6 +286,9 @@ export declare const protocol: Protocol<{
|
|
|
256
286
|
readonly content: readonly ({
|
|
257
287
|
readonly type: "input_text";
|
|
258
288
|
readonly text: string;
|
|
289
|
+
} | {
|
|
290
|
+
readonly type: "input_video";
|
|
291
|
+
readonly video_url: string;
|
|
259
292
|
} | {
|
|
260
293
|
readonly type: "input_image";
|
|
261
294
|
readonly image_url: string;
|
|
@@ -286,6 +319,12 @@ export declare const protocol: Protocol<{
|
|
|
286
319
|
readonly name: string;
|
|
287
320
|
readonly namespace?: string | undefined;
|
|
288
321
|
readonly arguments: string;
|
|
322
|
+
} | {
|
|
323
|
+
readonly type: "custom_tool_call";
|
|
324
|
+
readonly id?: string | undefined;
|
|
325
|
+
readonly call_id: string;
|
|
326
|
+
readonly name: string;
|
|
327
|
+
readonly input: string;
|
|
289
328
|
} | {
|
|
290
329
|
readonly [x: string]: unknown;
|
|
291
330
|
readonly type: "web_search_call";
|
|
@@ -342,10 +381,6 @@ export declare const protocol: Protocol<{
|
|
|
342
381
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
343
382
|
readonly prompt_cache_key?: string | undefined;
|
|
344
383
|
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
384
|
readonly text?: {
|
|
350
385
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
351
386
|
} | undefined;
|
|
@@ -356,7 +391,22 @@ export declare const protocol: Protocol<{
|
|
|
356
391
|
readonly top_p?: number | undefined;
|
|
357
392
|
readonly presence_penalty?: number | undefined;
|
|
358
393
|
readonly frequency_penalty?: number | undefined;
|
|
394
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
395
|
+
readonly prompt_cache_options?: {
|
|
396
|
+
readonly ttl?: string | undefined;
|
|
397
|
+
} | undefined;
|
|
359
398
|
readonly tools?: readonly ({
|
|
399
|
+
readonly type: "custom";
|
|
400
|
+
readonly name: string;
|
|
401
|
+
readonly description: string;
|
|
402
|
+
readonly format: {
|
|
403
|
+
readonly type: "text";
|
|
404
|
+
} | {
|
|
405
|
+
readonly type: "grammar";
|
|
406
|
+
readonly syntax: "lark" | "regex";
|
|
407
|
+
readonly definition: string;
|
|
408
|
+
};
|
|
409
|
+
} | {
|
|
360
410
|
readonly type: "namespace";
|
|
361
411
|
readonly name: string;
|
|
362
412
|
readonly description: string;
|
|
@@ -389,18 +439,24 @@ export declare const protocol: Protocol<{
|
|
|
389
439
|
readonly size?: string | undefined;
|
|
390
440
|
})[] | undefined;
|
|
391
441
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
392
|
-
readonly type: "function";
|
|
442
|
+
readonly type: "custom" | "function";
|
|
393
443
|
readonly name: string;
|
|
394
444
|
} | {
|
|
395
445
|
readonly type: "allowed_tools";
|
|
396
446
|
readonly mode: "auto" | "none" | "required";
|
|
397
447
|
readonly tools: readonly {
|
|
398
|
-
readonly type: "function";
|
|
448
|
+
readonly type: "custom" | "function";
|
|
399
449
|
readonly name: string;
|
|
400
450
|
}[];
|
|
401
451
|
} | {
|
|
402
452
|
readonly type: "image_generation";
|
|
403
453
|
} | undefined;
|
|
454
|
+
readonly reasoning?: {
|
|
455
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
456
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
457
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
458
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
459
|
+
} | undefined;
|
|
404
460
|
readonly context_management?: readonly {
|
|
405
461
|
readonly type: "compaction";
|
|
406
462
|
readonly compact_threshold?: number | undefined;
|
|
@@ -481,7 +537,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
481
537
|
readonly role: "developer";
|
|
482
538
|
readonly content: string;
|
|
483
539
|
} | {
|
|
484
|
-
readonly type: "function_call_output";
|
|
540
|
+
readonly type: "custom_tool_call_output" | "function_call_output";
|
|
485
541
|
readonly call_id: string;
|
|
486
542
|
readonly output: string | readonly ({
|
|
487
543
|
readonly type: "input_text";
|
|
@@ -518,6 +574,9 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
518
574
|
readonly content: readonly ({
|
|
519
575
|
readonly type: "input_text";
|
|
520
576
|
readonly text: string;
|
|
577
|
+
} | {
|
|
578
|
+
readonly type: "input_video";
|
|
579
|
+
readonly video_url: string;
|
|
521
580
|
} | {
|
|
522
581
|
readonly type: "input_image";
|
|
523
582
|
readonly image_url: string;
|
|
@@ -548,6 +607,12 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
548
607
|
readonly name: string;
|
|
549
608
|
readonly namespace?: string | undefined;
|
|
550
609
|
readonly arguments: string;
|
|
610
|
+
} | {
|
|
611
|
+
readonly type: "custom_tool_call";
|
|
612
|
+
readonly id?: string | undefined;
|
|
613
|
+
readonly call_id: string;
|
|
614
|
+
readonly name: string;
|
|
615
|
+
readonly input: string;
|
|
551
616
|
} | {
|
|
552
617
|
readonly [x: string]: unknown;
|
|
553
618
|
readonly type: "web_search_call";
|
|
@@ -604,10 +669,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
604
669
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
605
670
|
readonly prompt_cache_key?: string | undefined;
|
|
606
671
|
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
672
|
readonly text?: {
|
|
612
673
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
613
674
|
} | undefined;
|
|
@@ -618,7 +679,22 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
618
679
|
readonly top_p?: number | undefined;
|
|
619
680
|
readonly presence_penalty?: number | undefined;
|
|
620
681
|
readonly frequency_penalty?: number | undefined;
|
|
682
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
683
|
+
readonly prompt_cache_options?: {
|
|
684
|
+
readonly ttl?: string | undefined;
|
|
685
|
+
} | undefined;
|
|
621
686
|
readonly tools?: readonly ({
|
|
687
|
+
readonly type: "custom";
|
|
688
|
+
readonly name: string;
|
|
689
|
+
readonly description: string;
|
|
690
|
+
readonly format: {
|
|
691
|
+
readonly type: "text";
|
|
692
|
+
} | {
|
|
693
|
+
readonly type: "grammar";
|
|
694
|
+
readonly syntax: "lark" | "regex";
|
|
695
|
+
readonly definition: string;
|
|
696
|
+
};
|
|
697
|
+
} | {
|
|
622
698
|
readonly type: "namespace";
|
|
623
699
|
readonly name: string;
|
|
624
700
|
readonly description: string;
|
|
@@ -651,18 +727,24 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
651
727
|
readonly size?: string | undefined;
|
|
652
728
|
})[] | undefined;
|
|
653
729
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
654
|
-
readonly type: "function";
|
|
730
|
+
readonly type: "custom" | "function";
|
|
655
731
|
readonly name: string;
|
|
656
732
|
} | {
|
|
657
733
|
readonly type: "allowed_tools";
|
|
658
734
|
readonly mode: "auto" | "none" | "required";
|
|
659
735
|
readonly tools: readonly {
|
|
660
|
-
readonly type: "function";
|
|
736
|
+
readonly type: "custom" | "function";
|
|
661
737
|
readonly name: string;
|
|
662
738
|
}[];
|
|
663
739
|
} | {
|
|
664
740
|
readonly type: "image_generation";
|
|
665
741
|
} | undefined;
|
|
742
|
+
readonly reasoning?: {
|
|
743
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
744
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
745
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
746
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
747
|
+
} | undefined;
|
|
666
748
|
readonly context_management?: readonly {
|
|
667
749
|
readonly type: "compaction";
|
|
668
750
|
readonly compact_threshold?: number | undefined;
|
|
@@ -685,7 +767,7 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
685
767
|
readonly role: "developer";
|
|
686
768
|
readonly content: string;
|
|
687
769
|
} | {
|
|
688
|
-
readonly type: "function_call_output";
|
|
770
|
+
readonly type: "custom_tool_call_output" | "function_call_output";
|
|
689
771
|
readonly call_id: string;
|
|
690
772
|
readonly output: string | readonly ({
|
|
691
773
|
readonly type: "input_text";
|
|
@@ -722,6 +804,9 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
722
804
|
readonly content: readonly ({
|
|
723
805
|
readonly type: "input_text";
|
|
724
806
|
readonly text: string;
|
|
807
|
+
} | {
|
|
808
|
+
readonly type: "input_video";
|
|
809
|
+
readonly video_url: string;
|
|
725
810
|
} | {
|
|
726
811
|
readonly type: "input_image";
|
|
727
812
|
readonly image_url: string;
|
|
@@ -752,6 +837,12 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
752
837
|
readonly name: string;
|
|
753
838
|
readonly namespace?: string | undefined;
|
|
754
839
|
readonly arguments: string;
|
|
840
|
+
} | {
|
|
841
|
+
readonly type: "custom_tool_call";
|
|
842
|
+
readonly id?: string | undefined;
|
|
843
|
+
readonly call_id: string;
|
|
844
|
+
readonly name: string;
|
|
845
|
+
readonly input: string;
|
|
755
846
|
} | {
|
|
756
847
|
readonly [x: string]: unknown;
|
|
757
848
|
readonly type: "web_search_call";
|
|
@@ -808,10 +899,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
808
899
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
809
900
|
readonly prompt_cache_key?: string | undefined;
|
|
810
901
|
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
902
|
readonly text?: {
|
|
816
903
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
817
904
|
} | undefined;
|
|
@@ -822,7 +909,22 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
822
909
|
readonly top_p?: number | undefined;
|
|
823
910
|
readonly presence_penalty?: number | undefined;
|
|
824
911
|
readonly frequency_penalty?: number | undefined;
|
|
912
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
913
|
+
readonly prompt_cache_options?: {
|
|
914
|
+
readonly ttl?: string | undefined;
|
|
915
|
+
} | undefined;
|
|
825
916
|
readonly tools?: readonly ({
|
|
917
|
+
readonly type: "custom";
|
|
918
|
+
readonly name: string;
|
|
919
|
+
readonly description: string;
|
|
920
|
+
readonly format: {
|
|
921
|
+
readonly type: "text";
|
|
922
|
+
} | {
|
|
923
|
+
readonly type: "grammar";
|
|
924
|
+
readonly syntax: "lark" | "regex";
|
|
925
|
+
readonly definition: string;
|
|
926
|
+
};
|
|
927
|
+
} | {
|
|
826
928
|
readonly type: "namespace";
|
|
827
929
|
readonly name: string;
|
|
828
930
|
readonly description: string;
|
|
@@ -855,18 +957,24 @@ export declare const channelTransport: (options: import("./open-responses-channe
|
|
|
855
957
|
readonly size?: string | undefined;
|
|
856
958
|
})[] | undefined;
|
|
857
959
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
858
|
-
readonly type: "function";
|
|
960
|
+
readonly type: "custom" | "function";
|
|
859
961
|
readonly name: string;
|
|
860
962
|
} | {
|
|
861
963
|
readonly type: "allowed_tools";
|
|
862
964
|
readonly mode: "auto" | "none" | "required";
|
|
863
965
|
readonly tools: readonly {
|
|
864
|
-
readonly type: "function";
|
|
966
|
+
readonly type: "custom" | "function";
|
|
865
967
|
readonly name: string;
|
|
866
968
|
}[];
|
|
867
969
|
} | {
|
|
868
970
|
readonly type: "image_generation";
|
|
869
971
|
} | undefined;
|
|
972
|
+
readonly reasoning?: {
|
|
973
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
974
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
975
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
976
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
977
|
+
} | undefined;
|
|
870
978
|
readonly context_management?: readonly {
|
|
871
979
|
readonly type: "compaction";
|
|
872
980
|
readonly compact_threshold?: number | undefined;
|
|
@@ -889,7 +997,7 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
889
997
|
readonly role: "developer";
|
|
890
998
|
readonly content: string;
|
|
891
999
|
} | {
|
|
892
|
-
readonly type: "function_call_output";
|
|
1000
|
+
readonly type: "custom_tool_call_output" | "function_call_output";
|
|
893
1001
|
readonly call_id: string;
|
|
894
1002
|
readonly output: string | readonly ({
|
|
895
1003
|
readonly type: "input_text";
|
|
@@ -926,6 +1034,9 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
926
1034
|
readonly content: readonly ({
|
|
927
1035
|
readonly type: "input_text";
|
|
928
1036
|
readonly text: string;
|
|
1037
|
+
} | {
|
|
1038
|
+
readonly type: "input_video";
|
|
1039
|
+
readonly video_url: string;
|
|
929
1040
|
} | {
|
|
930
1041
|
readonly type: "input_image";
|
|
931
1042
|
readonly image_url: string;
|
|
@@ -956,6 +1067,12 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
956
1067
|
readonly name: string;
|
|
957
1068
|
readonly namespace?: string | undefined;
|
|
958
1069
|
readonly arguments: string;
|
|
1070
|
+
} | {
|
|
1071
|
+
readonly type: "custom_tool_call";
|
|
1072
|
+
readonly id?: string | undefined;
|
|
1073
|
+
readonly call_id: string;
|
|
1074
|
+
readonly name: string;
|
|
1075
|
+
readonly input: string;
|
|
959
1076
|
} | {
|
|
960
1077
|
readonly [x: string]: unknown;
|
|
961
1078
|
readonly type: "web_search_call";
|
|
@@ -1012,10 +1129,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1012
1129
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1013
1130
|
readonly prompt_cache_key?: string | undefined;
|
|
1014
1131
|
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
1132
|
readonly text?: {
|
|
1020
1133
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1021
1134
|
} | undefined;
|
|
@@ -1026,7 +1139,22 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1026
1139
|
readonly top_p?: number | undefined;
|
|
1027
1140
|
readonly presence_penalty?: number | undefined;
|
|
1028
1141
|
readonly frequency_penalty?: number | undefined;
|
|
1142
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1143
|
+
readonly prompt_cache_options?: {
|
|
1144
|
+
readonly ttl?: string | undefined;
|
|
1145
|
+
} | undefined;
|
|
1029
1146
|
readonly tools?: readonly ({
|
|
1147
|
+
readonly type: "custom";
|
|
1148
|
+
readonly name: string;
|
|
1149
|
+
readonly description: string;
|
|
1150
|
+
readonly format: {
|
|
1151
|
+
readonly type: "text";
|
|
1152
|
+
} | {
|
|
1153
|
+
readonly type: "grammar";
|
|
1154
|
+
readonly syntax: "lark" | "regex";
|
|
1155
|
+
readonly definition: string;
|
|
1156
|
+
};
|
|
1157
|
+
} | {
|
|
1030
1158
|
readonly type: "namespace";
|
|
1031
1159
|
readonly name: string;
|
|
1032
1160
|
readonly description: string;
|
|
@@ -1059,18 +1187,24 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
1059
1187
|
readonly size?: string | undefined;
|
|
1060
1188
|
})[] | undefined;
|
|
1061
1189
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
1062
|
-
readonly type: "function";
|
|
1190
|
+
readonly type: "custom" | "function";
|
|
1063
1191
|
readonly name: string;
|
|
1064
1192
|
} | {
|
|
1065
1193
|
readonly type: "allowed_tools";
|
|
1066
1194
|
readonly mode: "auto" | "none" | "required";
|
|
1067
1195
|
readonly tools: readonly {
|
|
1068
|
-
readonly type: "function";
|
|
1196
|
+
readonly type: "custom" | "function";
|
|
1069
1197
|
readonly name: string;
|
|
1070
1198
|
}[];
|
|
1071
1199
|
} | {
|
|
1072
1200
|
readonly type: "image_generation";
|
|
1073
1201
|
} | undefined;
|
|
1202
|
+
readonly reasoning?: {
|
|
1203
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1204
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1205
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
1206
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
1207
|
+
} | undefined;
|
|
1074
1208
|
readonly context_management?: readonly {
|
|
1075
1209
|
readonly type: "compaction";
|
|
1076
1210
|
readonly compact_threshold?: number | undefined;
|
|
@@ -1093,7 +1227,7 @@ export declare const route: Route<{
|
|
|
1093
1227
|
readonly role: "developer";
|
|
1094
1228
|
readonly content: string;
|
|
1095
1229
|
} | {
|
|
1096
|
-
readonly type: "function_call_output";
|
|
1230
|
+
readonly type: "custom_tool_call_output" | "function_call_output";
|
|
1097
1231
|
readonly call_id: string;
|
|
1098
1232
|
readonly output: string | readonly ({
|
|
1099
1233
|
readonly type: "input_text";
|
|
@@ -1130,6 +1264,9 @@ export declare const route: Route<{
|
|
|
1130
1264
|
readonly content: readonly ({
|
|
1131
1265
|
readonly type: "input_text";
|
|
1132
1266
|
readonly text: string;
|
|
1267
|
+
} | {
|
|
1268
|
+
readonly type: "input_video";
|
|
1269
|
+
readonly video_url: string;
|
|
1133
1270
|
} | {
|
|
1134
1271
|
readonly type: "input_image";
|
|
1135
1272
|
readonly image_url: string;
|
|
@@ -1160,6 +1297,12 @@ export declare const route: Route<{
|
|
|
1160
1297
|
readonly name: string;
|
|
1161
1298
|
readonly namespace?: string | undefined;
|
|
1162
1299
|
readonly arguments: string;
|
|
1300
|
+
} | {
|
|
1301
|
+
readonly type: "custom_tool_call";
|
|
1302
|
+
readonly id?: string | undefined;
|
|
1303
|
+
readonly call_id: string;
|
|
1304
|
+
readonly name: string;
|
|
1305
|
+
readonly input: string;
|
|
1163
1306
|
} | {
|
|
1164
1307
|
readonly [x: string]: unknown;
|
|
1165
1308
|
readonly type: "web_search_call";
|
|
@@ -1216,10 +1359,6 @@ export declare const route: Route<{
|
|
|
1216
1359
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1217
1360
|
readonly prompt_cache_key?: string | undefined;
|
|
1218
1361
|
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
1362
|
readonly text?: {
|
|
1224
1363
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1225
1364
|
} | undefined;
|
|
@@ -1230,7 +1369,22 @@ export declare const route: Route<{
|
|
|
1230
1369
|
readonly top_p?: number | undefined;
|
|
1231
1370
|
readonly presence_penalty?: number | undefined;
|
|
1232
1371
|
readonly frequency_penalty?: number | undefined;
|
|
1372
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1373
|
+
readonly prompt_cache_options?: {
|
|
1374
|
+
readonly ttl?: string | undefined;
|
|
1375
|
+
} | undefined;
|
|
1233
1376
|
readonly tools?: readonly ({
|
|
1377
|
+
readonly type: "custom";
|
|
1378
|
+
readonly name: string;
|
|
1379
|
+
readonly description: string;
|
|
1380
|
+
readonly format: {
|
|
1381
|
+
readonly type: "text";
|
|
1382
|
+
} | {
|
|
1383
|
+
readonly type: "grammar";
|
|
1384
|
+
readonly syntax: "lark" | "regex";
|
|
1385
|
+
readonly definition: string;
|
|
1386
|
+
};
|
|
1387
|
+
} | {
|
|
1234
1388
|
readonly type: "namespace";
|
|
1235
1389
|
readonly name: string;
|
|
1236
1390
|
readonly description: string;
|
|
@@ -1263,18 +1417,24 @@ export declare const route: Route<{
|
|
|
1263
1417
|
readonly size?: string | undefined;
|
|
1264
1418
|
})[] | undefined;
|
|
1265
1419
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
1266
|
-
readonly type: "function";
|
|
1420
|
+
readonly type: "custom" | "function";
|
|
1267
1421
|
readonly name: string;
|
|
1268
1422
|
} | {
|
|
1269
1423
|
readonly type: "allowed_tools";
|
|
1270
1424
|
readonly mode: "auto" | "none" | "required";
|
|
1271
1425
|
readonly tools: readonly {
|
|
1272
|
-
readonly type: "function";
|
|
1426
|
+
readonly type: "custom" | "function";
|
|
1273
1427
|
readonly name: string;
|
|
1274
1428
|
}[];
|
|
1275
1429
|
} | {
|
|
1276
1430
|
readonly type: "image_generation";
|
|
1277
1431
|
} | undefined;
|
|
1432
|
+
readonly reasoning?: {
|
|
1433
|
+
readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1434
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
1435
|
+
readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
|
|
1436
|
+
readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
|
|
1437
|
+
} | undefined;
|
|
1278
1438
|
readonly context_management?: readonly {
|
|
1279
1439
|
readonly type: "compaction";
|
|
1280
1440
|
readonly compact_threshold?: number | undefined;
|