@opencode/ai 2.0.32 → 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 +6 -14
- package/dist/experimental/realtime.js +28 -3
- package/dist/experimental/system-one.d.ts +1 -1
- 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/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
|
@@ -21,24 +21,18 @@ export type Settings = ProviderPackage.Settings & AnthropicMessages.ProviderOpti
|
|
|
21
21
|
readonly project?: string;
|
|
22
22
|
};
|
|
23
23
|
export declare const routes: Route<{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
readonly context_management?: {
|
|
25
|
+
readonly edits: readonly {
|
|
26
|
+
readonly type: "compact_20260112";
|
|
27
|
+
readonly trigger?: {
|
|
28
|
+
readonly type: "input_tokens";
|
|
29
|
+
readonly value: number;
|
|
30
|
+
} | undefined;
|
|
31
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
32
|
+
readonly instructions?: string | undefined;
|
|
33
|
+
}[];
|
|
27
34
|
} | undefined;
|
|
28
|
-
|
|
29
|
-
temperature?: number | undefined;
|
|
30
|
-
tools?: readonly {
|
|
31
|
-
readonly description: string;
|
|
32
|
-
readonly name: string;
|
|
33
|
-
readonly input_schema: {
|
|
34
|
-
readonly [x: string]: unknown;
|
|
35
|
-
};
|
|
36
|
-
readonly cache_control?: {
|
|
37
|
-
readonly type: "ephemeral";
|
|
38
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
system?: readonly {
|
|
35
|
+
readonly system?: readonly {
|
|
42
36
|
readonly type: "text";
|
|
43
37
|
readonly text: string;
|
|
44
38
|
readonly cache_control?: {
|
|
@@ -46,7 +40,7 @@ export declare const routes: Route<{
|
|
|
46
40
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
47
41
|
} | undefined;
|
|
48
42
|
}[] | undefined;
|
|
49
|
-
messages: readonly ({
|
|
43
|
+
readonly messages: readonly ({
|
|
50
44
|
readonly role: "user";
|
|
51
45
|
readonly content: readonly ({
|
|
52
46
|
readonly type: "text";
|
|
@@ -73,7 +67,7 @@ export declare const routes: Route<{
|
|
|
73
67
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
74
68
|
} | undefined;
|
|
75
69
|
readonly transformations?: {
|
|
76
|
-
readonly oversized_image?: "
|
|
70
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
77
71
|
} | undefined;
|
|
78
72
|
} | {
|
|
79
73
|
readonly type: "document";
|
|
@@ -92,17 +86,18 @@ export declare const routes: Route<{
|
|
|
92
86
|
readonly type: "file";
|
|
93
87
|
readonly file_id: string;
|
|
94
88
|
};
|
|
95
|
-
readonly title?: string | undefined;
|
|
96
|
-
readonly context?: string | undefined;
|
|
97
89
|
readonly cache_control?: {
|
|
98
90
|
readonly type: "ephemeral";
|
|
99
91
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
100
92
|
} | undefined;
|
|
93
|
+
readonly title?: string | undefined;
|
|
94
|
+
readonly context?: string | undefined;
|
|
101
95
|
readonly citations?: {
|
|
102
96
|
readonly enabled: boolean;
|
|
103
97
|
} | undefined;
|
|
104
98
|
} | {
|
|
105
99
|
readonly type: "tool_result";
|
|
100
|
+
readonly tool_use_id: string;
|
|
106
101
|
readonly content: string | readonly ({
|
|
107
102
|
readonly type: "text";
|
|
108
103
|
readonly text: string;
|
|
@@ -128,7 +123,7 @@ export declare const routes: Route<{
|
|
|
128
123
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
129
124
|
} | undefined;
|
|
130
125
|
readonly transformations?: {
|
|
131
|
-
readonly oversized_image?: "
|
|
126
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
132
127
|
} | undefined;
|
|
133
128
|
} | {
|
|
134
129
|
readonly type: "document";
|
|
@@ -147,22 +142,21 @@ export declare const routes: Route<{
|
|
|
147
142
|
readonly type: "file";
|
|
148
143
|
readonly file_id: string;
|
|
149
144
|
};
|
|
150
|
-
readonly title?: string | undefined;
|
|
151
|
-
readonly context?: string | undefined;
|
|
152
145
|
readonly cache_control?: {
|
|
153
146
|
readonly type: "ephemeral";
|
|
154
147
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
155
148
|
} | undefined;
|
|
149
|
+
readonly title?: string | undefined;
|
|
150
|
+
readonly context?: string | undefined;
|
|
156
151
|
readonly citations?: {
|
|
157
152
|
readonly enabled: boolean;
|
|
158
153
|
} | undefined;
|
|
159
154
|
})[];
|
|
160
|
-
readonly
|
|
155
|
+
readonly is_error?: boolean | undefined;
|
|
161
156
|
readonly cache_control?: {
|
|
162
157
|
readonly type: "ephemeral";
|
|
163
158
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
164
159
|
} | undefined;
|
|
165
|
-
readonly is_error?: boolean | undefined;
|
|
166
160
|
})[];
|
|
167
161
|
} | {
|
|
168
162
|
readonly role: "assistant";
|
|
@@ -174,8 +168,8 @@ export declare const routes: Route<{
|
|
|
174
168
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
175
169
|
} | undefined;
|
|
176
170
|
} | {
|
|
177
|
-
readonly id: string;
|
|
178
171
|
readonly type: "tool_use";
|
|
172
|
+
readonly id: string;
|
|
179
173
|
readonly name: string;
|
|
180
174
|
readonly input: unknown;
|
|
181
175
|
readonly cache_control?: {
|
|
@@ -183,8 +177,8 @@ export declare const routes: Route<{
|
|
|
183
177
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
184
178
|
} | undefined;
|
|
185
179
|
} | {
|
|
186
|
-
readonly id: string;
|
|
187
180
|
readonly type: "server_tool_use";
|
|
181
|
+
readonly id: string;
|
|
188
182
|
readonly name: string;
|
|
189
183
|
readonly input: unknown;
|
|
190
184
|
readonly cache_control?: {
|
|
@@ -192,13 +186,16 @@ export declare const routes: Route<{
|
|
|
192
186
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
193
187
|
} | undefined;
|
|
194
188
|
} | {
|
|
195
|
-
readonly type: "
|
|
196
|
-
readonly content: unknown;
|
|
189
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
197
190
|
readonly tool_use_id: string;
|
|
191
|
+
readonly content: unknown;
|
|
198
192
|
readonly cache_control?: {
|
|
199
193
|
readonly type: "ephemeral";
|
|
200
194
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
201
195
|
} | undefined;
|
|
196
|
+
} | {
|
|
197
|
+
readonly type: "compaction";
|
|
198
|
+
readonly content: string | null;
|
|
202
199
|
} | {
|
|
203
200
|
readonly type: "thinking";
|
|
204
201
|
readonly thinking: string;
|
|
@@ -208,17 +205,15 @@ export declare const routes: Route<{
|
|
|
208
205
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
209
206
|
} | undefined;
|
|
210
207
|
} | {
|
|
211
|
-
readonly data: string;
|
|
212
208
|
readonly type: "redacted_thinking";
|
|
209
|
+
readonly data: string;
|
|
213
210
|
readonly cache_control?: {
|
|
214
211
|
readonly type: "ephemeral";
|
|
215
212
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
216
213
|
} | undefined;
|
|
217
|
-
} | {
|
|
218
|
-
readonly type: "compaction";
|
|
219
|
-
readonly content: string | null;
|
|
220
214
|
})[];
|
|
221
215
|
} | {
|
|
216
|
+
readonly role: "system";
|
|
222
217
|
readonly content: readonly {
|
|
223
218
|
readonly type: "text";
|
|
224
219
|
readonly text: string;
|
|
@@ -227,83 +222,84 @@ export declare const routes: Route<{
|
|
|
227
222
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
228
223
|
} | undefined;
|
|
229
224
|
}[];
|
|
230
|
-
readonly role: "system";
|
|
231
225
|
readonly output_config?: {
|
|
232
226
|
readonly effort: string;
|
|
233
227
|
} | undefined;
|
|
234
228
|
})[];
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
239
|
-
|
|
229
|
+
readonly tools?: readonly {
|
|
230
|
+
readonly name: string;
|
|
231
|
+
readonly description: string;
|
|
232
|
+
readonly input_schema: {
|
|
233
|
+
readonly [x: string]: unknown;
|
|
234
|
+
};
|
|
235
|
+
readonly cache_control?: {
|
|
236
|
+
readonly type: "ephemeral";
|
|
237
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
}[] | undefined;
|
|
240
|
+
readonly tool_choice?: {
|
|
241
|
+
readonly type: "any" | "auto" | "none";
|
|
242
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
243
|
+
} | {
|
|
244
|
+
readonly type: "tool";
|
|
245
|
+
readonly name: string;
|
|
246
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
readonly stream: true;
|
|
249
|
+
readonly max_tokens: number;
|
|
250
|
+
readonly temperature?: number | undefined;
|
|
251
|
+
readonly top_p?: number | undefined;
|
|
252
|
+
readonly top_k?: number | undefined;
|
|
253
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
254
|
+
readonly thinking?: {
|
|
255
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
240
256
|
readonly block_binding?: {
|
|
241
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
257
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
242
258
|
} | undefined;
|
|
259
|
+
readonly type: "enabled";
|
|
260
|
+
readonly budget_tokens: number;
|
|
243
261
|
} | {
|
|
244
|
-
readonly
|
|
245
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
262
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
246
263
|
readonly block_binding?: {
|
|
247
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
264
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
248
265
|
} | undefined;
|
|
266
|
+
readonly type: "adaptive";
|
|
249
267
|
} | {
|
|
250
|
-
readonly type: "
|
|
268
|
+
readonly type: "between_tools" | "disabled";
|
|
251
269
|
} | undefined;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
readonly id?: string | null | undefined;
|
|
255
|
-
readonly skills?: readonly {
|
|
256
|
-
readonly [x: string]: unknown;
|
|
257
|
-
}[] | null | undefined;
|
|
258
|
-
} | null | undefined;
|
|
259
|
-
inference_geo?: string | null | undefined;
|
|
260
|
-
cache_control?: {
|
|
261
|
-
readonly type: "ephemeral";
|
|
262
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
263
|
-
} | undefined;
|
|
264
|
-
output_config?: {
|
|
270
|
+
readonly output_config?: {
|
|
271
|
+
readonly effort?: string | undefined;
|
|
265
272
|
readonly format?: {
|
|
266
273
|
readonly type: "json_schema";
|
|
267
274
|
readonly schema: {
|
|
268
275
|
readonly [x: string]: unknown;
|
|
269
276
|
};
|
|
270
277
|
} | null | undefined;
|
|
271
|
-
readonly effort?: string | undefined;
|
|
272
278
|
} | undefined;
|
|
273
|
-
|
|
274
|
-
readonly
|
|
275
|
-
|
|
276
|
-
readonly instructions?: string | undefined;
|
|
277
|
-
readonly trigger?: {
|
|
278
|
-
readonly type: "input_tokens";
|
|
279
|
-
readonly value: number;
|
|
280
|
-
} | undefined;
|
|
281
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
282
|
-
}[];
|
|
279
|
+
readonly cache_control?: {
|
|
280
|
+
readonly type: "ephemeral";
|
|
281
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
283
282
|
} | undefined;
|
|
284
|
-
|
|
285
|
-
readonly
|
|
286
|
-
readonly
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
283
|
+
readonly container?: string | {
|
|
284
|
+
readonly id?: string | null | undefined;
|
|
285
|
+
readonly skills?: readonly {
|
|
286
|
+
readonly [x: string]: unknown;
|
|
287
|
+
}[] | null | undefined;
|
|
288
|
+
} | null | undefined;
|
|
289
|
+
readonly inference_geo?: string | null | undefined;
|
|
290
|
+
readonly metadata?: {
|
|
291
|
+
readonly user_id?: string | null | undefined;
|
|
291
292
|
} | undefined;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
stop_sequences?: readonly string[] | undefined;
|
|
293
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
294
|
+
readonly anthropic_version: "vertex-2023-10-16";
|
|
295
295
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
296
296
|
export declare const configure: (input?: Config) => {
|
|
297
297
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
298
298
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
299
|
-
configure:
|
|
299
|
+
configure: typeof configure;
|
|
300
300
|
};
|
|
301
301
|
export declare const provider: {
|
|
302
302
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
303
|
-
configure:
|
|
304
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
305
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
306
|
-
configure: /*elided*/ any;
|
|
307
|
-
};
|
|
303
|
+
configure: typeof configure;
|
|
308
304
|
};
|
|
309
305
|
export declare const model: ProviderPackage.Definition<Settings, AnthropicMessages.ProviderOptionsInput>["model"];
|
|
@@ -19,21 +19,7 @@ export type Settings = ProviderPackage.Settings & MistralChat.ProviderOptionsInp
|
|
|
19
19
|
readonly project?: string;
|
|
20
20
|
};
|
|
21
21
|
export declare const routes: Route<{
|
|
22
|
-
readonly max_tokens?: number | undefined;
|
|
23
|
-
readonly temperature?: number | undefined;
|
|
24
|
-
readonly tools?: readonly {
|
|
25
|
-
readonly type: "function";
|
|
26
|
-
readonly function: {
|
|
27
|
-
readonly name: string;
|
|
28
|
-
readonly description: string;
|
|
29
|
-
readonly parameters: {
|
|
30
|
-
readonly [x: string]: unknown;
|
|
31
|
-
};
|
|
32
|
-
readonly strict: false;
|
|
33
|
-
};
|
|
34
|
-
}[] | undefined;
|
|
35
22
|
readonly model: string;
|
|
36
|
-
readonly stop?: readonly string[] | undefined;
|
|
37
23
|
readonly messages: readonly ({
|
|
38
24
|
readonly role: "system";
|
|
39
25
|
readonly content: string | readonly {
|
|
@@ -53,7 +39,11 @@ export declare const routes: Route<{
|
|
|
53
39
|
readonly document_url: string;
|
|
54
40
|
})[];
|
|
55
41
|
} | {
|
|
42
|
+
readonly role: "assistant";
|
|
56
43
|
readonly content: string | readonly ({
|
|
44
|
+
readonly type: "text";
|
|
45
|
+
readonly text: string;
|
|
46
|
+
} | {
|
|
57
47
|
readonly [x: string]: unknown;
|
|
58
48
|
readonly type: "thinking";
|
|
59
49
|
readonly thinking: readonly {
|
|
@@ -61,11 +51,7 @@ export declare const routes: Route<{
|
|
|
61
51
|
readonly type?: string | undefined;
|
|
62
52
|
readonly text?: string | undefined;
|
|
63
53
|
}[];
|
|
64
|
-
} | {
|
|
65
|
-
readonly type: "text";
|
|
66
|
-
readonly text: string;
|
|
67
54
|
})[];
|
|
68
|
-
readonly role: "assistant";
|
|
69
55
|
readonly tool_calls?: readonly {
|
|
70
56
|
readonly id: string;
|
|
71
57
|
readonly type: "function";
|
|
@@ -90,17 +76,31 @@ export declare const routes: Route<{
|
|
|
90
76
|
readonly document_url: string;
|
|
91
77
|
})[];
|
|
92
78
|
})[];
|
|
93
|
-
readonly
|
|
94
|
-
|
|
79
|
+
readonly tools?: readonly {
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
readonly function: {
|
|
82
|
+
readonly name: string;
|
|
83
|
+
readonly description: string;
|
|
84
|
+
readonly parameters: {
|
|
85
|
+
readonly [x: string]: unknown;
|
|
86
|
+
};
|
|
87
|
+
readonly strict: false;
|
|
88
|
+
};
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
readonly tool_choice?: "any" | "auto" | "none" | {
|
|
95
91
|
readonly type: "function";
|
|
96
92
|
readonly function: {
|
|
97
93
|
readonly name: string;
|
|
98
94
|
};
|
|
99
95
|
} | undefined;
|
|
96
|
+
readonly stream: true;
|
|
97
|
+
readonly max_tokens?: number | undefined;
|
|
98
|
+
readonly random_seed?: number | undefined;
|
|
99
|
+
readonly temperature?: number | undefined;
|
|
100
100
|
readonly top_p?: number | undefined;
|
|
101
101
|
readonly frequency_penalty?: number | undefined;
|
|
102
102
|
readonly presence_penalty?: number | undefined;
|
|
103
|
-
readonly
|
|
103
|
+
readonly stop?: readonly string[] | undefined;
|
|
104
104
|
readonly safe_prompt?: boolean | undefined;
|
|
105
105
|
readonly document_image_limit?: number | undefined;
|
|
106
106
|
readonly document_page_limit?: number | undefined;
|
|
@@ -111,14 +111,10 @@ export declare const routes: Route<{
|
|
|
111
111
|
export declare const configure: (input?: Config) => {
|
|
112
112
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
113
113
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MistralChat.ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
114
|
-
configure:
|
|
114
|
+
configure: typeof configure;
|
|
115
115
|
};
|
|
116
116
|
export declare const provider: {
|
|
117
117
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
118
|
-
configure:
|
|
119
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
120
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MistralChat.ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
121
|
-
configure: /*elided*/ any;
|
|
122
|
-
};
|
|
118
|
+
configure: typeof configure;
|
|
123
119
|
};
|
|
124
120
|
export declare const model: ProviderPackage.Definition<Settings, MistralChat.ProviderOptionsInput>["model"];
|
|
@@ -18,64 +18,16 @@ export type Settings = ProviderPackage.Settings & OpenResponsesProviderOptionsIn
|
|
|
18
18
|
readonly project?: string;
|
|
19
19
|
};
|
|
20
20
|
export declare const routes: Route<{
|
|
21
|
+
readonly model: string;
|
|
21
22
|
readonly input: readonly ({
|
|
22
|
-
readonly
|
|
23
|
-
readonly id
|
|
24
|
-
readonly
|
|
25
|
-
readonly status?: string | undefined;
|
|
26
|
-
readonly action?: {
|
|
27
|
-
readonly [x: string]: unknown;
|
|
28
|
-
} | null | undefined;
|
|
29
|
-
} | {
|
|
30
|
-
readonly [x: string]: unknown;
|
|
31
|
-
readonly id: string;
|
|
32
|
-
readonly type: "file_search_call";
|
|
33
|
-
readonly status?: string | undefined;
|
|
34
|
-
readonly queries?: readonly string[] | undefined;
|
|
35
|
-
readonly results?: readonly {
|
|
36
|
-
readonly [x: string]: unknown;
|
|
37
|
-
}[] | null | undefined;
|
|
38
|
-
} | {
|
|
39
|
-
readonly [x: string]: unknown;
|
|
40
|
-
readonly id: string;
|
|
41
|
-
readonly type: "code_interpreter_call";
|
|
42
|
-
readonly status?: string | undefined;
|
|
43
|
-
readonly code?: string | null | undefined;
|
|
44
|
-
readonly container_id?: string | null | undefined;
|
|
45
|
-
readonly outputs?: readonly {
|
|
46
|
-
readonly [x: string]: unknown;
|
|
47
|
-
}[] | null | undefined;
|
|
48
|
-
} | {
|
|
49
|
-
readonly [x: string]: unknown;
|
|
50
|
-
readonly id: string;
|
|
51
|
-
readonly type: "mcp_call";
|
|
52
|
-
readonly status?: string | undefined;
|
|
53
|
-
readonly name?: string | undefined;
|
|
54
|
-
readonly output?: string | null | undefined;
|
|
55
|
-
readonly error?: unknown;
|
|
56
|
-
readonly arguments?: string | undefined;
|
|
57
|
-
readonly server_label?: string | undefined;
|
|
23
|
+
readonly type: "compaction";
|
|
24
|
+
readonly id?: string | null | undefined;
|
|
25
|
+
readonly encrypted_content: string;
|
|
58
26
|
} | {
|
|
59
27
|
readonly type: "configuration_update";
|
|
60
28
|
readonly reasoning: {
|
|
61
29
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
62
30
|
};
|
|
63
|
-
} | {
|
|
64
|
-
readonly [x: string]: unknown;
|
|
65
|
-
readonly type: string;
|
|
66
|
-
readonly id: string;
|
|
67
|
-
} | {
|
|
68
|
-
readonly type: "reasoning";
|
|
69
|
-
readonly summary: readonly {
|
|
70
|
-
readonly type: "summary_text";
|
|
71
|
-
readonly text: string;
|
|
72
|
-
}[];
|
|
73
|
-
readonly id?: string | undefined;
|
|
74
|
-
readonly encrypted_content?: string | null | undefined;
|
|
75
|
-
} | {
|
|
76
|
-
readonly type: "compaction";
|
|
77
|
-
readonly encrypted_content: string;
|
|
78
|
-
readonly id?: string | null | undefined;
|
|
79
31
|
} | {
|
|
80
32
|
readonly type: "message";
|
|
81
33
|
readonly role: "system";
|
|
@@ -86,6 +38,7 @@ export declare const routes: Route<{
|
|
|
86
38
|
readonly content: string;
|
|
87
39
|
} | {
|
|
88
40
|
readonly type: "message";
|
|
41
|
+
readonly role: "user";
|
|
89
42
|
readonly content: readonly ({
|
|
90
43
|
readonly type: "input_image";
|
|
91
44
|
readonly image_url: string;
|
|
@@ -100,26 +53,33 @@ export declare const routes: Route<{
|
|
|
100
53
|
readonly type: "input_text";
|
|
101
54
|
readonly text: string;
|
|
102
55
|
})[];
|
|
103
|
-
readonly role: "user";
|
|
104
56
|
readonly id?: string | undefined;
|
|
105
57
|
readonly status?: string | undefined;
|
|
106
58
|
} | {
|
|
107
59
|
readonly type: "message";
|
|
60
|
+
readonly id?: string | undefined;
|
|
61
|
+
readonly role: "assistant";
|
|
108
62
|
readonly content: readonly {
|
|
109
63
|
readonly type: "output_text";
|
|
110
64
|
readonly text: string;
|
|
111
65
|
}[];
|
|
112
|
-
readonly role: "assistant";
|
|
113
|
-
readonly id?: string | undefined;
|
|
114
|
-
readonly status?: string | undefined;
|
|
115
66
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
67
|
+
readonly status?: string | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
readonly type: "reasoning";
|
|
70
|
+
readonly id?: string | undefined;
|
|
71
|
+
readonly summary: readonly {
|
|
72
|
+
readonly type: "summary_text";
|
|
73
|
+
readonly text: string;
|
|
74
|
+
}[];
|
|
75
|
+
readonly encrypted_content?: string | null | undefined;
|
|
116
76
|
} | {
|
|
117
77
|
readonly type: "function_call";
|
|
118
|
-
readonly name: string;
|
|
119
|
-
readonly arguments: string;
|
|
120
|
-
readonly call_id: string;
|
|
121
78
|
readonly id?: string | undefined;
|
|
79
|
+
readonly call_id: string;
|
|
80
|
+
readonly name: string;
|
|
122
81
|
readonly namespace?: string | undefined;
|
|
82
|
+
readonly arguments: string;
|
|
123
83
|
} | {
|
|
124
84
|
readonly type: "function_call_output";
|
|
125
85
|
readonly call_id: string;
|
|
@@ -140,72 +100,108 @@ export declare const routes: Route<{
|
|
|
140
100
|
readonly type: "input_video";
|
|
141
101
|
readonly video_url: string;
|
|
142
102
|
})[];
|
|
103
|
+
} | {
|
|
104
|
+
readonly [x: string]: unknown;
|
|
105
|
+
readonly type: "web_search_call";
|
|
106
|
+
readonly id: string;
|
|
107
|
+
readonly status?: string | undefined;
|
|
108
|
+
readonly action?: {
|
|
109
|
+
readonly [x: string]: unknown;
|
|
110
|
+
} | null | undefined;
|
|
111
|
+
} | {
|
|
112
|
+
readonly [x: string]: unknown;
|
|
113
|
+
readonly type: "file_search_call";
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly status?: string | undefined;
|
|
116
|
+
readonly queries?: readonly string[] | undefined;
|
|
117
|
+
readonly results?: readonly {
|
|
118
|
+
readonly [x: string]: unknown;
|
|
119
|
+
}[] | null | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
readonly [x: string]: unknown;
|
|
122
|
+
readonly type: "code_interpreter_call";
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly status?: string | undefined;
|
|
125
|
+
readonly code?: string | null | undefined;
|
|
126
|
+
readonly container_id?: string | null | undefined;
|
|
127
|
+
readonly outputs?: readonly {
|
|
128
|
+
readonly [x: string]: unknown;
|
|
129
|
+
}[] | null | undefined;
|
|
130
|
+
} | {
|
|
131
|
+
readonly [x: string]: unknown;
|
|
132
|
+
readonly type: "mcp_call";
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly status?: string | undefined;
|
|
135
|
+
readonly server_label?: string | undefined;
|
|
136
|
+
readonly name?: string | undefined;
|
|
137
|
+
readonly arguments?: string | undefined;
|
|
138
|
+
readonly output?: string | null | undefined;
|
|
139
|
+
readonly error?: unknown;
|
|
140
|
+
} | {
|
|
141
|
+
readonly [x: string]: unknown;
|
|
142
|
+
readonly type: string;
|
|
143
|
+
readonly id: string;
|
|
143
144
|
})[];
|
|
144
|
-
readonly model: string;
|
|
145
|
-
readonly stream: true;
|
|
146
|
-
readonly metadata?: {
|
|
147
|
-
readonly [x: string]: string;
|
|
148
|
-
} | undefined;
|
|
149
145
|
readonly instructions?: string | undefined;
|
|
150
|
-
readonly reasoning?: {
|
|
151
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
152
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
readonly temperature?: number | undefined;
|
|
155
146
|
readonly tools?: readonly ({
|
|
156
|
-
readonly [x: string]: unknown;
|
|
157
|
-
readonly type: string;
|
|
158
|
-
} | {
|
|
159
147
|
readonly type: "function";
|
|
160
|
-
readonly description: string;
|
|
161
148
|
readonly name: string;
|
|
149
|
+
readonly description: string;
|
|
162
150
|
readonly parameters: {
|
|
163
151
|
readonly [x: string]: unknown;
|
|
164
152
|
};
|
|
165
153
|
readonly strict?: boolean | undefined;
|
|
154
|
+
} | {
|
|
155
|
+
readonly [x: string]: unknown;
|
|
156
|
+
readonly type: string;
|
|
166
157
|
})[] | undefined;
|
|
167
|
-
readonly
|
|
168
|
-
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
171
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
158
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
172
159
|
readonly type: "function";
|
|
173
160
|
readonly name: string;
|
|
174
161
|
} | {
|
|
175
162
|
readonly type: "allowed_tools";
|
|
176
|
-
readonly mode: "
|
|
163
|
+
readonly mode: "auto" | "none" | "required";
|
|
177
164
|
readonly tools: readonly {
|
|
178
165
|
readonly type: "function";
|
|
179
166
|
readonly name: string;
|
|
180
167
|
}[];
|
|
181
168
|
} | undefined;
|
|
182
|
-
readonly top_p?: number | undefined;
|
|
183
|
-
readonly frequency_penalty?: number | undefined;
|
|
184
|
-
readonly presence_penalty?: number | undefined;
|
|
185
169
|
readonly store?: boolean | undefined;
|
|
186
|
-
readonly
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
readonly
|
|
190
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
170
|
+
readonly metadata?: {
|
|
171
|
+
readonly [x: string]: string;
|
|
172
|
+
} | undefined;
|
|
173
|
+
readonly safety_identifier?: string | undefined;
|
|
191
174
|
readonly stream_options?: {
|
|
192
175
|
readonly include_obfuscation?: boolean | undefined;
|
|
193
176
|
} | undefined;
|
|
194
|
-
readonly safety_identifier?: string | undefined;
|
|
195
177
|
readonly top_logprobs?: number | undefined;
|
|
178
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
179
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
180
|
+
readonly prompt_cache_key?: string | undefined;
|
|
181
|
+
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
182
|
+
readonly reasoning?: {
|
|
183
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
184
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
readonly text?: {
|
|
187
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
readonly max_output_tokens?: number | undefined;
|
|
196
190
|
readonly max_tool_calls?: number | undefined;
|
|
191
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
192
|
+
readonly temperature?: number | undefined;
|
|
193
|
+
readonly top_p?: number | undefined;
|
|
194
|
+
readonly presence_penalty?: number | undefined;
|
|
195
|
+
readonly frequency_penalty?: number | undefined;
|
|
196
|
+
readonly stream: true;
|
|
197
197
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
198
198
|
export declare const configure: (input?: Config) => {
|
|
199
199
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
200
200
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
201
|
-
configure:
|
|
201
|
+
configure: typeof configure;
|
|
202
202
|
};
|
|
203
203
|
export declare const provider: {
|
|
204
204
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
205
|
-
configure:
|
|
206
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
207
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
208
|
-
configure: /*elided*/ any;
|
|
209
|
-
};
|
|
205
|
+
configure: typeof configure;
|
|
210
206
|
};
|
|
211
207
|
export declare const model: ProviderPackage.Definition<Settings, OpenResponsesProviderOptionsInput>["model"];
|