@opencode/ai 2.0.31 → 2.1.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/dist/ai-client.d.ts +2 -2
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation.d.ts +20 -20
- package/dist/experimental/realtime.d.ts +47 -0
- package/dist/experimental/realtime.js +99 -0
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.js +1 -0
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +593 -437
- package/dist/llm.d.ts +51 -51
- package/dist/media-client.d.ts +1 -1
- package/dist/media.d.ts +4 -4
- package/dist/promise.d.ts +199 -198
- package/dist/protocols/alibaba-chat.d.ts +81 -82
- package/dist/protocols/alibaba-chat.js +0 -1
- package/dist/protocols/alibaba-messages.d.ts +99 -99
- package/dist/protocols/alibaba-responses.d.ts +120 -120
- package/dist/protocols/anthropic-messages.d.ts +187 -187
- package/dist/protocols/anthropic-messages.js +3 -2
- package/dist/protocols/assemblyai-transcription.d.ts +1 -1
- package/dist/protocols/bedrock-converse.d.ts +75 -79
- package/dist/protocols/bfl-images.d.ts +1 -1
- package/dist/protocols/cartesia-speech.d.ts +17 -17
- package/dist/protocols/cohere-chat.d.ts +26 -23
- package/dist/protocols/cohere-chat.js +22 -1
- package/dist/protocols/deepgram-speech.d.ts +17 -17
- package/dist/protocols/deepgram-transcription.d.ts +1 -1
- package/dist/protocols/elevenlabs-speech.d.ts +17 -17
- package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
- package/dist/protocols/fal-images.d.ts +1 -1
- package/dist/protocols/fal-video.d.ts +1 -1
- package/dist/protocols/gemini.d.ts +55 -55
- package/dist/protocols/gemini.js +11 -1
- package/dist/protocols/google-images.d.ts +1 -1
- package/dist/protocols/google-interactions.d.ts +64 -62
- package/dist/protocols/google-interactions.js +19 -1
- package/dist/protocols/google-speech.d.ts +17 -17
- package/dist/protocols/google-transcription.d.ts +47 -47
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/meta-messages.d.ts +121 -121
- package/dist/protocols/meta-responses.d.ts +201 -201
- package/dist/protocols/mistral-chat.d.ts +45 -45
- package/dist/protocols/open-responses-channel.d.ts +1 -1
- package/dist/protocols/open-responses.d.ts +584 -450
- package/dist/protocols/open-responses.js +27 -35
- package/dist/protocols/openai-chat.d.ts +248 -248
- package/dist/protocols/openai-chat.js +11 -42
- package/dist/protocols/openai-compatible-chat.d.ts +32 -32
- package/dist/protocols/openai-compatible-responses.d.ts +88 -88
- package/dist/protocols/openai-images.d.ts +17 -17
- package/dist/protocols/openai-responses.d.ts +567 -567
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +17 -17
- package/dist/protocols/openai-transcription.d.ts +47 -47
- package/dist/protocols/replicate-images.d.ts +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/shared.d.ts +12 -1
- package/dist/protocols/shared.js +17 -1
- package/dist/protocols/stability-images.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-media.d.ts +4 -4
- package/dist/protocols/utils/openai-options.d.ts +1 -1
- package/dist/protocols/utils/speech-stream.d.ts +1 -1
- package/dist/protocols/utils/tool-schema.d.ts +10 -5
- package/dist/protocols/utils/tool-stream.d.ts +152 -152
- package/dist/protocols/venice-chat.d.ts +109 -110
- package/dist/protocols/venice-chat.js +0 -1
- package/dist/protocols/xai-images.d.ts +1 -1
- package/dist/protocols/xai-responses.d.ts +79 -79
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/zai-chat.d.ts +77 -78
- package/dist/protocols/zai-chat.js +0 -1
- package/dist/protocols/zai-images.d.ts +1 -1
- package/dist/protocols/zai-messages.d.ts +97 -97
- package/dist/providers/alibaba.d.ts +222 -283
- package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
- package/dist/providers/amazon-bedrock.d.ts +22 -28
- package/dist/providers/anthropic-compatible.d.ts +86 -90
- package/dist/providers/anthropic.d.ts +86 -90
- package/dist/providers/assemblyai.d.ts +2 -6
- package/dist/providers/azure.d.ts +228 -238
- package/dist/providers/baseten.d.ts +66 -70
- package/dist/providers/black-forest-labs.d.ts +2 -6
- package/dist/providers/cartesia.d.ts +2 -6
- package/dist/providers/cerebras.d.ts +66 -70
- package/dist/providers/cerebras.js +0 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
- package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
- package/dist/providers/cohere.d.ts +122 -132
- package/dist/providers/cohere.js +0 -2
- package/dist/providers/deepgram.d.ts +2 -7
- package/dist/providers/deepinfra.d.ts +66 -70
- package/dist/providers/deepinfra.js +0 -1
- package/dist/providers/deepseek.d.ts +66 -70
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +137 -141
- package/dist/providers/elevenlabs.d.ts +2 -7
- package/dist/providers/fal.d.ts +2 -7
- package/dist/providers/fireworks.d.ts +66 -70
- package/dist/providers/google-vertex-chat.d.ts +34 -38
- package/dist/providers/google-vertex-interactions.d.ts +31 -41
- package/dist/providers/google-vertex-messages.d.ts +81 -85
- package/dist/providers/google-vertex-mistral.d.ts +23 -27
- package/dist/providers/google-vertex-responses.d.ts +90 -94
- package/dist/providers/google-vertex.d.ts +26 -30
- package/dist/providers/google.d.ts +94 -109
- package/dist/providers/groq.d.ts +111 -115
- package/dist/providers/groq.js +0 -1
- package/dist/providers/meta.d.ts +309 -317
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax.d.ts +296 -303
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +22 -26
- package/dist/providers/moonshot.d.ts +296 -303
- package/dist/providers/moonshot.js +0 -1
- package/dist/providers/openai-compatible-responses.d.ts +90 -94
- package/dist/providers/openai-compatible.d.ts +34 -38
- package/dist/providers/openai.d.ts +93 -108
- package/dist/providers/opencode.d.ts +2 -8
- package/dist/providers/openrouter.d.ts +137 -144
- package/dist/providers/replicate.d.ts +2 -6
- package/dist/providers/runway.d.ts +2 -6
- package/dist/providers/stability.d.ts +2 -7
- package/dist/providers/togetherai.d.ts +66 -70
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +2 -8
- package/dist/providers/venice.d.ts +58 -63
- package/dist/providers/vercel-ai-gateway.d.ts +2 -12
- package/dist/providers/xai.d.ts +38 -50
- package/dist/providers/zai-coding-plan.d.ts +206 -213
- package/dist/providers/zai.d.ts +40 -46
- package/dist/route/client.d.ts +51 -51
- package/dist/route/media-protocol.d.ts +1 -1
- package/dist/route/transport/http.d.ts +1 -1
- package/dist/route/transport/websocket.d.ts +8 -8
- package/dist/schema/errors.d.ts +19 -19
- package/dist/schema/events.d.ts +3090 -3288
- package/dist/schema/messages.d.ts +8 -7
- package/dist/schema/options.d.ts +2 -1
- package/dist/schema/options.js +2 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +434 -398
- package/dist/testing.d.ts +338 -338
- package/dist/tool-runtime.d.ts +1 -1
- package/dist/transcription-client.d.ts +23 -23
- package/dist/transcription.d.ts +562 -646
- package/dist/utils/sanitize.d.ts +4 -0
- package/dist/utils/sanitize.js +23 -6
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +416 -372
- package/package.json +6 -6
package/dist/providers/meta.d.ts
CHANGED
|
@@ -40,184 +40,15 @@ export type Settings = ProviderPackage.Settings & ProviderOptionsInput & {
|
|
|
40
40
|
};
|
|
41
41
|
export declare const routes: (Route<{
|
|
42
42
|
readonly model: string;
|
|
43
|
-
readonly messages: readonly ({
|
|
44
|
-
readonly role: "system";
|
|
45
|
-
readonly content: string | readonly ({
|
|
46
|
-
readonly type: "text";
|
|
47
|
-
readonly text: string;
|
|
48
|
-
readonly cache_control?: {
|
|
49
|
-
readonly type: "ephemeral";
|
|
50
|
-
readonly ttl?: string | undefined;
|
|
51
|
-
} | undefined;
|
|
52
|
-
} | {
|
|
53
|
-
readonly type: "image_url";
|
|
54
|
-
readonly image_url: {
|
|
55
|
-
readonly url: string;
|
|
56
|
-
};
|
|
57
|
-
} | {
|
|
58
|
-
readonly type: "file";
|
|
59
|
-
readonly file: {
|
|
60
|
-
readonly filename: string;
|
|
61
|
-
readonly file_data: string;
|
|
62
|
-
};
|
|
63
|
-
})[];
|
|
64
|
-
} | {
|
|
65
|
-
readonly role: "user";
|
|
66
|
-
readonly content: string | readonly ({
|
|
67
|
-
readonly type: "text";
|
|
68
|
-
readonly text: string;
|
|
69
|
-
readonly cache_control?: {
|
|
70
|
-
readonly type: "ephemeral";
|
|
71
|
-
readonly ttl?: string | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
} | {
|
|
74
|
-
readonly type: "image_url";
|
|
75
|
-
readonly image_url: {
|
|
76
|
-
readonly url: string;
|
|
77
|
-
};
|
|
78
|
-
} | {
|
|
79
|
-
readonly type: "file";
|
|
80
|
-
readonly file: {
|
|
81
|
-
readonly filename: string;
|
|
82
|
-
readonly file_data: string;
|
|
83
|
-
};
|
|
84
|
-
})[];
|
|
85
|
-
} | {
|
|
86
|
-
readonly [x: string]: unknown;
|
|
87
|
-
readonly content: string | readonly {
|
|
88
|
-
readonly type: "text";
|
|
89
|
-
readonly text: string;
|
|
90
|
-
readonly cache_control?: {
|
|
91
|
-
readonly type: "ephemeral";
|
|
92
|
-
readonly ttl?: string | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
}[] | null;
|
|
95
|
-
readonly role: "assistant";
|
|
96
|
-
readonly reasoning?: string | undefined;
|
|
97
|
-
readonly reasoning_content?: string | undefined;
|
|
98
|
-
readonly reasoning_text?: string | undefined;
|
|
99
|
-
readonly tool_calls?: readonly {
|
|
100
|
-
readonly function: {
|
|
101
|
-
readonly name: string;
|
|
102
|
-
readonly arguments: string;
|
|
103
|
-
};
|
|
104
|
-
readonly id: string;
|
|
105
|
-
readonly type: "function";
|
|
106
|
-
readonly extra_content?: {
|
|
107
|
-
readonly google: {
|
|
108
|
-
readonly thought_signature: string;
|
|
109
|
-
};
|
|
110
|
-
} | undefined;
|
|
111
|
-
}[] | undefined;
|
|
112
|
-
readonly reasoning_details?: unknown;
|
|
113
|
-
} | {
|
|
114
|
-
readonly role: "tool";
|
|
115
|
-
readonly tool_call_id: string;
|
|
116
|
-
readonly content: string | readonly {
|
|
117
|
-
readonly type: "text";
|
|
118
|
-
readonly text: string;
|
|
119
|
-
readonly cache_control?: {
|
|
120
|
-
readonly type: "ephemeral";
|
|
121
|
-
readonly ttl?: string | undefined;
|
|
122
|
-
} | undefined;
|
|
123
|
-
}[];
|
|
124
|
-
})[];
|
|
125
|
-
readonly stream: true;
|
|
126
|
-
readonly max_completion_tokens?: number | undefined;
|
|
127
|
-
readonly max_tokens?: number | undefined;
|
|
128
|
-
readonly temperature?: number | undefined;
|
|
129
|
-
readonly tools?: readonly {
|
|
130
|
-
readonly function: {
|
|
131
|
-
readonly description: string;
|
|
132
|
-
readonly name: string;
|
|
133
|
-
readonly parameters: {
|
|
134
|
-
readonly [x: string]: unknown;
|
|
135
|
-
};
|
|
136
|
-
readonly strict?: boolean | undefined;
|
|
137
|
-
};
|
|
138
|
-
readonly type: "function";
|
|
139
|
-
readonly cache_control?: {
|
|
140
|
-
readonly type: "ephemeral";
|
|
141
|
-
readonly ttl?: string | undefined;
|
|
142
|
-
} | undefined;
|
|
143
|
-
}[] | undefined;
|
|
144
|
-
readonly stop?: readonly string[] | undefined;
|
|
145
|
-
readonly seed?: number | undefined;
|
|
146
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
147
|
-
readonly type: "function";
|
|
148
|
-
readonly function: {
|
|
149
|
-
readonly name: string;
|
|
150
|
-
};
|
|
151
|
-
} | undefined;
|
|
152
|
-
readonly top_p?: number | undefined;
|
|
153
|
-
readonly frequency_penalty?: number | undefined;
|
|
154
|
-
readonly presence_penalty?: number | undefined;
|
|
155
|
-
readonly store?: boolean | undefined;
|
|
156
|
-
readonly prompt_cache_key?: string | undefined;
|
|
157
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
158
|
-
readonly stream_options?: {
|
|
159
|
-
readonly include_usage: boolean;
|
|
160
|
-
} | undefined;
|
|
161
|
-
readonly tool_stream?: boolean | undefined;
|
|
162
|
-
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
163
43
|
readonly input: readonly ({
|
|
164
|
-
readonly
|
|
165
|
-
readonly id
|
|
166
|
-
readonly
|
|
167
|
-
readonly status?: string | undefined;
|
|
168
|
-
readonly action?: {
|
|
169
|
-
readonly [x: string]: unknown;
|
|
170
|
-
} | null | undefined;
|
|
171
|
-
} | {
|
|
172
|
-
readonly [x: string]: unknown;
|
|
173
|
-
readonly id: string;
|
|
174
|
-
readonly type: "file_search_call";
|
|
175
|
-
readonly status?: string | undefined;
|
|
176
|
-
readonly queries?: readonly string[] | undefined;
|
|
177
|
-
readonly results?: readonly {
|
|
178
|
-
readonly [x: string]: unknown;
|
|
179
|
-
}[] | null | undefined;
|
|
180
|
-
} | {
|
|
181
|
-
readonly [x: string]: unknown;
|
|
182
|
-
readonly id: string;
|
|
183
|
-
readonly type: "code_interpreter_call";
|
|
184
|
-
readonly status?: string | undefined;
|
|
185
|
-
readonly code?: string | null | undefined;
|
|
186
|
-
readonly container_id?: string | null | undefined;
|
|
187
|
-
readonly outputs?: readonly {
|
|
188
|
-
readonly [x: string]: unknown;
|
|
189
|
-
}[] | null | undefined;
|
|
190
|
-
} | {
|
|
191
|
-
readonly [x: string]: unknown;
|
|
192
|
-
readonly id: string;
|
|
193
|
-
readonly type: "mcp_call";
|
|
194
|
-
readonly status?: string | undefined;
|
|
195
|
-
readonly name?: string | undefined;
|
|
196
|
-
readonly output?: string | null | undefined;
|
|
197
|
-
readonly error?: unknown;
|
|
198
|
-
readonly arguments?: string | undefined;
|
|
199
|
-
readonly server_label?: string | undefined;
|
|
44
|
+
readonly type: "compaction";
|
|
45
|
+
readonly id?: string | null | undefined;
|
|
46
|
+
readonly encrypted_content: string;
|
|
200
47
|
} | {
|
|
201
48
|
readonly type: "configuration_update";
|
|
202
49
|
readonly reasoning: {
|
|
203
50
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
204
51
|
};
|
|
205
|
-
} | {
|
|
206
|
-
readonly [x: string]: unknown;
|
|
207
|
-
readonly type: string;
|
|
208
|
-
readonly id: string;
|
|
209
|
-
} | {
|
|
210
|
-
readonly type: "reasoning";
|
|
211
|
-
readonly summary: readonly {
|
|
212
|
-
readonly type: "summary_text";
|
|
213
|
-
readonly text: string;
|
|
214
|
-
}[];
|
|
215
|
-
readonly id?: string | undefined;
|
|
216
|
-
readonly encrypted_content?: string | null | undefined;
|
|
217
|
-
} | {
|
|
218
|
-
readonly type: "compaction";
|
|
219
|
-
readonly encrypted_content: string;
|
|
220
|
-
readonly id?: string | null | undefined;
|
|
221
52
|
} | {
|
|
222
53
|
readonly type: "message";
|
|
223
54
|
readonly role: "system";
|
|
@@ -228,6 +59,7 @@ export declare const routes: (Route<{
|
|
|
228
59
|
readonly content: string;
|
|
229
60
|
} | {
|
|
230
61
|
readonly type: "message";
|
|
62
|
+
readonly role: "user";
|
|
231
63
|
readonly content: readonly ({
|
|
232
64
|
readonly type: "input_image";
|
|
233
65
|
readonly image_url: string;
|
|
@@ -242,26 +74,33 @@ export declare const routes: (Route<{
|
|
|
242
74
|
readonly type: "input_text";
|
|
243
75
|
readonly text: string;
|
|
244
76
|
})[];
|
|
245
|
-
readonly role: "user";
|
|
246
77
|
readonly id?: string | undefined;
|
|
247
78
|
readonly status?: string | undefined;
|
|
248
79
|
} | {
|
|
249
80
|
readonly type: "message";
|
|
81
|
+
readonly id?: string | undefined;
|
|
82
|
+
readonly role: "assistant";
|
|
250
83
|
readonly content: readonly {
|
|
251
84
|
readonly type: "output_text";
|
|
252
85
|
readonly text: string;
|
|
253
86
|
}[];
|
|
254
|
-
readonly role: "assistant";
|
|
255
|
-
readonly id?: string | undefined;
|
|
256
|
-
readonly status?: string | undefined;
|
|
257
87
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
88
|
+
readonly status?: string | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
readonly type: "reasoning";
|
|
91
|
+
readonly id?: string | undefined;
|
|
92
|
+
readonly summary: readonly {
|
|
93
|
+
readonly type: "summary_text";
|
|
94
|
+
readonly text: string;
|
|
95
|
+
}[];
|
|
96
|
+
readonly encrypted_content?: string | null | undefined;
|
|
258
97
|
} | {
|
|
259
98
|
readonly type: "function_call";
|
|
260
|
-
readonly name: string;
|
|
261
|
-
readonly arguments: string;
|
|
262
|
-
readonly call_id: string;
|
|
263
99
|
readonly id?: string | undefined;
|
|
100
|
+
readonly call_id: string;
|
|
101
|
+
readonly name: string;
|
|
264
102
|
readonly namespace?: string | undefined;
|
|
103
|
+
readonly arguments: string;
|
|
265
104
|
} | {
|
|
266
105
|
readonly type: "function_call_output";
|
|
267
106
|
readonly call_id: string;
|
|
@@ -282,63 +121,242 @@ export declare const routes: (Route<{
|
|
|
282
121
|
readonly type: "input_video";
|
|
283
122
|
readonly video_url: string;
|
|
284
123
|
})[];
|
|
124
|
+
} | {
|
|
125
|
+
readonly [x: string]: unknown;
|
|
126
|
+
readonly type: "web_search_call";
|
|
127
|
+
readonly id: string;
|
|
128
|
+
readonly status?: string | undefined;
|
|
129
|
+
readonly action?: {
|
|
130
|
+
readonly [x: string]: unknown;
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
readonly [x: string]: unknown;
|
|
134
|
+
readonly type: "file_search_call";
|
|
135
|
+
readonly id: string;
|
|
136
|
+
readonly status?: string | undefined;
|
|
137
|
+
readonly queries?: readonly string[] | undefined;
|
|
138
|
+
readonly results?: readonly {
|
|
139
|
+
readonly [x: string]: unknown;
|
|
140
|
+
}[] | null | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
readonly [x: string]: unknown;
|
|
143
|
+
readonly type: "code_interpreter_call";
|
|
144
|
+
readonly id: string;
|
|
145
|
+
readonly status?: string | undefined;
|
|
146
|
+
readonly code?: string | null | undefined;
|
|
147
|
+
readonly container_id?: string | null | undefined;
|
|
148
|
+
readonly outputs?: readonly {
|
|
149
|
+
readonly [x: string]: unknown;
|
|
150
|
+
}[] | null | undefined;
|
|
151
|
+
} | {
|
|
152
|
+
readonly [x: string]: unknown;
|
|
153
|
+
readonly type: "mcp_call";
|
|
154
|
+
readonly id: string;
|
|
155
|
+
readonly status?: string | undefined;
|
|
156
|
+
readonly server_label?: string | undefined;
|
|
157
|
+
readonly name?: string | undefined;
|
|
158
|
+
readonly arguments?: string | undefined;
|
|
159
|
+
readonly output?: string | null | undefined;
|
|
160
|
+
readonly error?: unknown;
|
|
161
|
+
} | {
|
|
162
|
+
readonly [x: string]: unknown;
|
|
163
|
+
readonly type: string;
|
|
164
|
+
readonly id: string;
|
|
285
165
|
})[];
|
|
286
|
-
readonly
|
|
287
|
-
readonly
|
|
166
|
+
readonly instructions?: string | undefined;
|
|
167
|
+
readonly tools?: readonly ({
|
|
168
|
+
readonly type: "function";
|
|
169
|
+
readonly name: string;
|
|
170
|
+
readonly description: string;
|
|
171
|
+
readonly parameters: {
|
|
172
|
+
readonly [x: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
readonly strict?: boolean | undefined;
|
|
175
|
+
} | {
|
|
176
|
+
readonly [x: string]: unknown;
|
|
177
|
+
readonly type: string;
|
|
178
|
+
})[] | undefined;
|
|
179
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
readonly name: string;
|
|
182
|
+
} | {
|
|
183
|
+
readonly type: "allowed_tools";
|
|
184
|
+
readonly mode: "auto" | "none" | "required";
|
|
185
|
+
readonly tools: readonly {
|
|
186
|
+
readonly type: "function";
|
|
187
|
+
readonly name: string;
|
|
188
|
+
}[];
|
|
189
|
+
} | undefined;
|
|
190
|
+
readonly store?: boolean | undefined;
|
|
288
191
|
readonly metadata?: {
|
|
289
192
|
readonly [x: string]: string;
|
|
290
193
|
} | undefined;
|
|
291
|
-
readonly
|
|
194
|
+
readonly safety_identifier?: string | undefined;
|
|
195
|
+
readonly stream_options?: {
|
|
196
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
readonly top_logprobs?: number | undefined;
|
|
199
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
200
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
201
|
+
readonly prompt_cache_key?: string | undefined;
|
|
202
|
+
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
292
203
|
readonly reasoning?: {
|
|
293
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
294
204
|
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
205
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
readonly text?: {
|
|
208
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
295
209
|
} | undefined;
|
|
210
|
+
readonly max_output_tokens?: number | undefined;
|
|
211
|
+
readonly max_tool_calls?: number | undefined;
|
|
212
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
296
213
|
readonly temperature?: number | undefined;
|
|
297
|
-
readonly
|
|
298
|
-
|
|
299
|
-
|
|
214
|
+
readonly top_p?: number | undefined;
|
|
215
|
+
readonly presence_penalty?: number | undefined;
|
|
216
|
+
readonly frequency_penalty?: number | undefined;
|
|
217
|
+
readonly stream: true;
|
|
218
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
219
|
+
readonly model: string;
|
|
220
|
+
readonly messages: readonly ({
|
|
221
|
+
readonly role: "system";
|
|
222
|
+
readonly content: string | readonly ({
|
|
223
|
+
readonly type: "text";
|
|
224
|
+
readonly text: string;
|
|
225
|
+
readonly cache_control?: {
|
|
226
|
+
readonly type: "ephemeral";
|
|
227
|
+
readonly ttl?: string | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
} | {
|
|
230
|
+
readonly type: "image_url";
|
|
231
|
+
readonly image_url: {
|
|
232
|
+
readonly url: string;
|
|
233
|
+
};
|
|
234
|
+
} | {
|
|
235
|
+
readonly type: "file";
|
|
236
|
+
readonly file: {
|
|
237
|
+
readonly filename: string;
|
|
238
|
+
readonly file_data: string;
|
|
239
|
+
};
|
|
240
|
+
})[];
|
|
241
|
+
} | {
|
|
242
|
+
readonly role: "user";
|
|
243
|
+
readonly content: string | readonly ({
|
|
244
|
+
readonly type: "text";
|
|
245
|
+
readonly text: string;
|
|
246
|
+
readonly cache_control?: {
|
|
247
|
+
readonly type: "ephemeral";
|
|
248
|
+
readonly ttl?: string | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
} | {
|
|
251
|
+
readonly type: "image_url";
|
|
252
|
+
readonly image_url: {
|
|
253
|
+
readonly url: string;
|
|
254
|
+
};
|
|
255
|
+
} | {
|
|
256
|
+
readonly type: "file";
|
|
257
|
+
readonly file: {
|
|
258
|
+
readonly filename: string;
|
|
259
|
+
readonly file_data: string;
|
|
260
|
+
};
|
|
261
|
+
})[];
|
|
262
|
+
} | {
|
|
263
|
+
readonly role: "tool";
|
|
264
|
+
readonly tool_call_id: string;
|
|
265
|
+
readonly content: string | readonly {
|
|
266
|
+
readonly type: "text";
|
|
267
|
+
readonly text: string;
|
|
268
|
+
readonly cache_control?: {
|
|
269
|
+
readonly type: "ephemeral";
|
|
270
|
+
readonly ttl?: string | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
}[];
|
|
300
273
|
} | {
|
|
274
|
+
readonly [x: string]: unknown;
|
|
275
|
+
readonly role: "assistant";
|
|
276
|
+
readonly content: string | readonly {
|
|
277
|
+
readonly type: "text";
|
|
278
|
+
readonly text: string;
|
|
279
|
+
readonly cache_control?: {
|
|
280
|
+
readonly type: "ephemeral";
|
|
281
|
+
readonly ttl?: string | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
}[] | null;
|
|
284
|
+
readonly tool_calls?: readonly {
|
|
285
|
+
readonly id: string;
|
|
286
|
+
readonly type: "function";
|
|
287
|
+
readonly function: {
|
|
288
|
+
readonly name: string;
|
|
289
|
+
readonly arguments: string;
|
|
290
|
+
};
|
|
291
|
+
readonly extra_content?: {
|
|
292
|
+
readonly google: {
|
|
293
|
+
readonly thought_signature: string;
|
|
294
|
+
};
|
|
295
|
+
} | undefined;
|
|
296
|
+
}[] | undefined;
|
|
297
|
+
readonly reasoning_content?: string | undefined;
|
|
298
|
+
readonly reasoning?: string | undefined;
|
|
299
|
+
readonly reasoning_text?: string | undefined;
|
|
300
|
+
readonly reasoning_details?: unknown;
|
|
301
|
+
})[];
|
|
302
|
+
readonly tools?: readonly {
|
|
301
303
|
readonly type: "function";
|
|
302
|
-
readonly
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
readonly
|
|
304
|
+
readonly function: {
|
|
305
|
+
readonly name: string;
|
|
306
|
+
readonly description: string;
|
|
307
|
+
readonly parameters: {
|
|
308
|
+
readonly [x: string]: unknown;
|
|
309
|
+
};
|
|
310
|
+
readonly strict?: boolean | undefined;
|
|
306
311
|
};
|
|
307
|
-
readonly
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
} | undefined;
|
|
312
|
-
readonly
|
|
313
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
312
|
+
readonly cache_control?: {
|
|
313
|
+
readonly type: "ephemeral";
|
|
314
|
+
readonly ttl?: string | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
}[] | undefined;
|
|
317
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
314
318
|
readonly type: "function";
|
|
315
|
-
readonly
|
|
316
|
-
} | {
|
|
317
|
-
readonly type: "allowed_tools";
|
|
318
|
-
readonly mode: "required" | "auto" | "none";
|
|
319
|
-
readonly tools: readonly {
|
|
320
|
-
readonly type: "function";
|
|
319
|
+
readonly function: {
|
|
321
320
|
readonly name: string;
|
|
322
|
-
}
|
|
321
|
+
};
|
|
322
|
+
} | undefined;
|
|
323
|
+
readonly stream: true;
|
|
324
|
+
readonly stream_options?: {
|
|
325
|
+
readonly include_usage: boolean;
|
|
323
326
|
} | undefined;
|
|
327
|
+
readonly store?: boolean | undefined;
|
|
328
|
+
readonly prompt_cache_key?: string | undefined;
|
|
329
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
330
|
+
readonly tool_stream?: boolean | undefined;
|
|
331
|
+
readonly max_completion_tokens?: number | undefined;
|
|
332
|
+
readonly max_tokens?: number | undefined;
|
|
333
|
+
readonly temperature?: number | undefined;
|
|
324
334
|
readonly top_p?: number | undefined;
|
|
325
335
|
readonly frequency_penalty?: number | undefined;
|
|
326
336
|
readonly presence_penalty?: number | undefined;
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
readonly prompt_cache_key?: string | undefined;
|
|
330
|
-
readonly parallel_tool_calls?: boolean | undefined;
|
|
331
|
-
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
332
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
333
|
-
readonly stream_options?: {
|
|
334
|
-
readonly include_obfuscation?: boolean | undefined;
|
|
335
|
-
} | undefined;
|
|
336
|
-
readonly safety_identifier?: string | undefined;
|
|
337
|
-
readonly top_logprobs?: number | undefined;
|
|
338
|
-
readonly max_tool_calls?: number | undefined;
|
|
337
|
+
readonly seed?: number | undefined;
|
|
338
|
+
readonly stop?: readonly string[] | undefined;
|
|
339
339
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
340
|
-
readonly
|
|
340
|
+
readonly context_management?: {
|
|
341
|
+
readonly edits: readonly {
|
|
342
|
+
readonly type: "compact_20260112";
|
|
343
|
+
readonly trigger?: {
|
|
344
|
+
readonly type: "input_tokens";
|
|
345
|
+
readonly value: number;
|
|
346
|
+
} | undefined;
|
|
347
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
348
|
+
readonly instructions?: string | undefined;
|
|
349
|
+
}[];
|
|
350
|
+
} | undefined;
|
|
341
351
|
readonly model: string;
|
|
352
|
+
readonly system?: readonly {
|
|
353
|
+
readonly type: "text";
|
|
354
|
+
readonly text: string;
|
|
355
|
+
readonly cache_control?: {
|
|
356
|
+
readonly type: "ephemeral";
|
|
357
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
}[] | undefined;
|
|
342
360
|
readonly messages: readonly ({
|
|
343
361
|
readonly role: "user";
|
|
344
362
|
readonly content: readonly ({
|
|
@@ -366,7 +384,7 @@ export declare const routes: (Route<{
|
|
|
366
384
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
367
385
|
} | undefined;
|
|
368
386
|
readonly transformations?: {
|
|
369
|
-
readonly oversized_image?: "
|
|
387
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
370
388
|
} | undefined;
|
|
371
389
|
} | {
|
|
372
390
|
readonly type: "document";
|
|
@@ -385,17 +403,18 @@ export declare const routes: (Route<{
|
|
|
385
403
|
readonly type: "file";
|
|
386
404
|
readonly file_id: string;
|
|
387
405
|
};
|
|
388
|
-
readonly title?: string | undefined;
|
|
389
|
-
readonly context?: string | undefined;
|
|
390
406
|
readonly cache_control?: {
|
|
391
407
|
readonly type: "ephemeral";
|
|
392
408
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
393
409
|
} | undefined;
|
|
410
|
+
readonly title?: string | undefined;
|
|
411
|
+
readonly context?: string | undefined;
|
|
394
412
|
readonly citations?: {
|
|
395
413
|
readonly enabled: boolean;
|
|
396
414
|
} | undefined;
|
|
397
415
|
} | {
|
|
398
416
|
readonly type: "tool_result";
|
|
417
|
+
readonly tool_use_id: string;
|
|
399
418
|
readonly content: string | readonly ({
|
|
400
419
|
readonly type: "text";
|
|
401
420
|
readonly text: string;
|
|
@@ -421,7 +440,7 @@ export declare const routes: (Route<{
|
|
|
421
440
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
422
441
|
} | undefined;
|
|
423
442
|
readonly transformations?: {
|
|
424
|
-
readonly oversized_image?: "
|
|
443
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
425
444
|
} | undefined;
|
|
426
445
|
} | {
|
|
427
446
|
readonly type: "document";
|
|
@@ -440,22 +459,21 @@ export declare const routes: (Route<{
|
|
|
440
459
|
readonly type: "file";
|
|
441
460
|
readonly file_id: string;
|
|
442
461
|
};
|
|
443
|
-
readonly title?: string | undefined;
|
|
444
|
-
readonly context?: string | undefined;
|
|
445
462
|
readonly cache_control?: {
|
|
446
463
|
readonly type: "ephemeral";
|
|
447
464
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
448
465
|
} | undefined;
|
|
466
|
+
readonly title?: string | undefined;
|
|
467
|
+
readonly context?: string | undefined;
|
|
449
468
|
readonly citations?: {
|
|
450
469
|
readonly enabled: boolean;
|
|
451
470
|
} | undefined;
|
|
452
471
|
})[];
|
|
453
|
-
readonly
|
|
472
|
+
readonly is_error?: boolean | undefined;
|
|
454
473
|
readonly cache_control?: {
|
|
455
474
|
readonly type: "ephemeral";
|
|
456
475
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
457
476
|
} | undefined;
|
|
458
|
-
readonly is_error?: boolean | undefined;
|
|
459
477
|
})[];
|
|
460
478
|
} | {
|
|
461
479
|
readonly role: "assistant";
|
|
@@ -467,8 +485,8 @@ export declare const routes: (Route<{
|
|
|
467
485
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
468
486
|
} | undefined;
|
|
469
487
|
} | {
|
|
470
|
-
readonly id: string;
|
|
471
488
|
readonly type: "tool_use";
|
|
489
|
+
readonly id: string;
|
|
472
490
|
readonly name: string;
|
|
473
491
|
readonly input: unknown;
|
|
474
492
|
readonly cache_control?: {
|
|
@@ -476,8 +494,8 @@ export declare const routes: (Route<{
|
|
|
476
494
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
477
495
|
} | undefined;
|
|
478
496
|
} | {
|
|
479
|
-
readonly id: string;
|
|
480
497
|
readonly type: "server_tool_use";
|
|
498
|
+
readonly id: string;
|
|
481
499
|
readonly name: string;
|
|
482
500
|
readonly input: unknown;
|
|
483
501
|
readonly cache_control?: {
|
|
@@ -485,13 +503,16 @@ export declare const routes: (Route<{
|
|
|
485
503
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
486
504
|
} | undefined;
|
|
487
505
|
} | {
|
|
488
|
-
readonly type: "
|
|
489
|
-
readonly content: unknown;
|
|
506
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
490
507
|
readonly tool_use_id: string;
|
|
508
|
+
readonly content: unknown;
|
|
491
509
|
readonly cache_control?: {
|
|
492
510
|
readonly type: "ephemeral";
|
|
493
511
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
494
512
|
} | undefined;
|
|
513
|
+
} | {
|
|
514
|
+
readonly type: "compaction";
|
|
515
|
+
readonly content: string | null;
|
|
495
516
|
} | {
|
|
496
517
|
readonly type: "thinking";
|
|
497
518
|
readonly thinking: string;
|
|
@@ -501,17 +522,15 @@ export declare const routes: (Route<{
|
|
|
501
522
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
502
523
|
} | undefined;
|
|
503
524
|
} | {
|
|
504
|
-
readonly data: string;
|
|
505
525
|
readonly type: "redacted_thinking";
|
|
526
|
+
readonly data: string;
|
|
506
527
|
readonly cache_control?: {
|
|
507
528
|
readonly type: "ephemeral";
|
|
508
529
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
509
530
|
} | undefined;
|
|
510
|
-
} | {
|
|
511
|
-
readonly type: "compaction";
|
|
512
|
-
readonly content: string | null;
|
|
513
531
|
})[];
|
|
514
532
|
} | {
|
|
533
|
+
readonly role: "system";
|
|
515
534
|
readonly content: readonly {
|
|
516
535
|
readonly type: "text";
|
|
517
536
|
readonly text: string;
|
|
@@ -520,104 +539,85 @@ export declare const routes: (Route<{
|
|
|
520
539
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
521
540
|
} | undefined;
|
|
522
541
|
}[];
|
|
523
|
-
readonly role: "system";
|
|
524
542
|
readonly output_config?: {
|
|
525
543
|
readonly effort: string;
|
|
526
544
|
} | undefined;
|
|
527
545
|
})[];
|
|
528
|
-
readonly
|
|
529
|
-
|
|
530
|
-
readonly
|
|
531
|
-
} | undefined;
|
|
532
|
-
readonly temperature?: number | undefined;
|
|
533
|
-
readonly tools?: readonly ({
|
|
534
|
-
readonly type: "web_search";
|
|
535
|
-
readonly name: "web_search";
|
|
536
|
-
readonly user_location?: {
|
|
537
|
-
readonly type: "approximate";
|
|
538
|
-
readonly region?: string | undefined;
|
|
539
|
-
readonly city?: string | undefined;
|
|
540
|
-
readonly country?: string | undefined;
|
|
541
|
-
readonly timezone?: string | undefined;
|
|
542
|
-
} | undefined;
|
|
546
|
+
readonly tool_choice?: {
|
|
547
|
+
readonly type: "any" | "auto" | "none";
|
|
548
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
543
549
|
} | {
|
|
544
|
-
readonly
|
|
550
|
+
readonly type: "tool";
|
|
545
551
|
readonly name: string;
|
|
546
|
-
readonly
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
readonly system?: readonly {
|
|
555
|
-
readonly type: "text";
|
|
556
|
-
readonly text: string;
|
|
557
|
-
readonly cache_control?: {
|
|
558
|
-
readonly type: "ephemeral";
|
|
559
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
560
|
-
} | undefined;
|
|
561
|
-
}[] | undefined;
|
|
552
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
553
|
+
} | undefined;
|
|
554
|
+
readonly stream: true;
|
|
555
|
+
readonly max_tokens: number;
|
|
556
|
+
readonly temperature?: number | undefined;
|
|
557
|
+
readonly top_p?: number | undefined;
|
|
558
|
+
readonly top_k?: number | undefined;
|
|
559
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
562
560
|
readonly thinking?: {
|
|
563
|
-
readonly
|
|
564
|
-
readonly budget_tokens: number;
|
|
565
|
-
readonly display?: OpenString<"summarized" | "omitted"> | undefined;
|
|
561
|
+
readonly display?: OpenString<"omitted" | "summarized"> | undefined;
|
|
566
562
|
readonly block_binding?: {
|
|
567
|
-
readonly prefix_mismatch_behavior?: OpenString<"
|
|
563
|
+
readonly prefix_mismatch_behavior?: OpenString<"drop_block" | "error"> | undefined;
|
|
568
564
|
} | undefined;
|
|
565
|
+
readonly type: "enabled";
|
|
566
|
+
readonly budget_tokens: number;
|
|
569
567
|
} | {
|
|
570
|
-
readonly
|
|
571
|
-
readonly display?: OpenString<"summarized" | "omitted"> | undefined;
|
|
568
|
+
readonly display?: OpenString<"omitted" | "summarized"> | undefined;
|
|
572
569
|
readonly block_binding?: {
|
|
573
|
-
readonly prefix_mismatch_behavior?: OpenString<"
|
|
570
|
+
readonly prefix_mismatch_behavior?: OpenString<"drop_block" | "error"> | undefined;
|
|
574
571
|
} | undefined;
|
|
572
|
+
readonly type: "adaptive";
|
|
575
573
|
} | {
|
|
576
|
-
readonly type: "
|
|
577
|
-
} | undefined;
|
|
578
|
-
readonly service_tier?: OpenString<"auto" | "standard_only"> | undefined;
|
|
579
|
-
readonly container?: string | {
|
|
580
|
-
readonly id?: string | null | undefined;
|
|
581
|
-
readonly skills?: readonly {
|
|
582
|
-
readonly [x: string]: unknown;
|
|
583
|
-
}[] | null | undefined;
|
|
584
|
-
} | null | undefined;
|
|
585
|
-
readonly inference_geo?: string | null | undefined;
|
|
586
|
-
readonly cache_control?: {
|
|
587
|
-
readonly type: "ephemeral";
|
|
588
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
574
|
+
readonly type: "between_tools" | "disabled";
|
|
589
575
|
} | undefined;
|
|
590
576
|
readonly output_config?: {
|
|
577
|
+
readonly effort?: string | undefined;
|
|
591
578
|
readonly format?: {
|
|
592
579
|
readonly type: "json_schema";
|
|
593
580
|
readonly schema: {
|
|
594
581
|
readonly [x: string]: unknown;
|
|
595
582
|
};
|
|
596
583
|
} | null | undefined;
|
|
597
|
-
readonly effort?: string | undefined;
|
|
598
584
|
} | undefined;
|
|
599
|
-
readonly
|
|
600
|
-
readonly
|
|
601
|
-
|
|
602
|
-
readonly instructions?: string | undefined;
|
|
603
|
-
readonly trigger?: {
|
|
604
|
-
readonly type: "input_tokens";
|
|
605
|
-
readonly value: number;
|
|
606
|
-
} | undefined;
|
|
607
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
608
|
-
}[];
|
|
585
|
+
readonly cache_control?: {
|
|
586
|
+
readonly type: "ephemeral";
|
|
587
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
609
588
|
} | undefined;
|
|
610
|
-
readonly
|
|
611
|
-
readonly
|
|
612
|
-
readonly
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
589
|
+
readonly container?: string | {
|
|
590
|
+
readonly id?: string | null | undefined;
|
|
591
|
+
readonly skills?: readonly {
|
|
592
|
+
readonly [x: string]: unknown;
|
|
593
|
+
}[] | null | undefined;
|
|
594
|
+
} | null | undefined;
|
|
595
|
+
readonly inference_geo?: string | null | undefined;
|
|
596
|
+
readonly metadata?: {
|
|
597
|
+
readonly user_id?: string | null | undefined;
|
|
617
598
|
} | undefined;
|
|
618
|
-
readonly
|
|
619
|
-
readonly
|
|
620
|
-
|
|
599
|
+
readonly service_tier?: OpenString<"auto" | "standard_only"> | undefined;
|
|
600
|
+
readonly tools?: readonly ({
|
|
601
|
+
readonly name: string;
|
|
602
|
+
readonly description: string;
|
|
603
|
+
readonly input_schema: {
|
|
604
|
+
readonly [x: string]: unknown;
|
|
605
|
+
};
|
|
606
|
+
readonly cache_control?: {
|
|
607
|
+
readonly type: "ephemeral";
|
|
608
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
609
|
+
} | undefined;
|
|
610
|
+
} | {
|
|
611
|
+
readonly type: "web_search";
|
|
612
|
+
readonly name: "web_search";
|
|
613
|
+
readonly user_location?: {
|
|
614
|
+
readonly type: "approximate";
|
|
615
|
+
readonly city?: string | undefined;
|
|
616
|
+
readonly region?: string | undefined;
|
|
617
|
+
readonly country?: string | undefined;
|
|
618
|
+
readonly timezone?: string | undefined;
|
|
619
|
+
} | undefined;
|
|
620
|
+
})[] | undefined;
|
|
621
621
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
622
622
|
export declare const configure: (input?: LanguageModelOptions) => {
|
|
623
623
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -626,7 +626,7 @@ export declare const configure: (input?: LanguageModelOptions) => {
|
|
|
626
626
|
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
627
627
|
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
628
628
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<MetaImages.ImageOptions>;
|
|
629
|
-
configure:
|
|
629
|
+
configure: typeof configure;
|
|
630
630
|
};
|
|
631
631
|
export declare const provider: {
|
|
632
632
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -635,15 +635,7 @@ export declare const provider: {
|
|
|
635
635
|
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
636
636
|
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
637
637
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<MetaImages.ImageOptions>;
|
|
638
|
-
configure:
|
|
639
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
640
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
641
|
-
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
642
|
-
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
643
|
-
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
644
|
-
image: (modelID: string | ModelID) => import("../image.js").ImageModel<MetaImages.ImageOptions>;
|
|
645
|
-
configure: /*elided*/ any;
|
|
646
|
-
};
|
|
638
|
+
configure: typeof configure;
|
|
647
639
|
};
|
|
648
640
|
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
649
641
|
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|