@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
|
@@ -56,8 +56,20 @@ export declare const route: Route<{
|
|
|
56
56
|
readonly file_data: string;
|
|
57
57
|
};
|
|
58
58
|
})[];
|
|
59
|
+
} | {
|
|
60
|
+
readonly role: "tool";
|
|
61
|
+
readonly tool_call_id: string;
|
|
62
|
+
readonly content: string | readonly {
|
|
63
|
+
readonly type: "text";
|
|
64
|
+
readonly text: string;
|
|
65
|
+
readonly cache_control?: {
|
|
66
|
+
readonly type: "ephemeral";
|
|
67
|
+
readonly ttl?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}[];
|
|
59
70
|
} | {
|
|
60
71
|
readonly [x: string]: unknown;
|
|
72
|
+
readonly role: "assistant";
|
|
61
73
|
readonly content: string | readonly {
|
|
62
74
|
readonly type: "text";
|
|
63
75
|
readonly text: string;
|
|
@@ -66,73 +78,61 @@ export declare const route: Route<{
|
|
|
66
78
|
readonly ttl?: string | undefined;
|
|
67
79
|
} | undefined;
|
|
68
80
|
}[] | null;
|
|
69
|
-
readonly role: "assistant";
|
|
70
|
-
readonly reasoning?: string | undefined;
|
|
71
|
-
readonly reasoning_content?: string | undefined;
|
|
72
|
-
readonly reasoning_text?: string | undefined;
|
|
73
81
|
readonly tool_calls?: readonly {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly type: "function";
|
|
74
84
|
readonly function: {
|
|
75
85
|
readonly name: string;
|
|
76
86
|
readonly arguments: string;
|
|
77
87
|
};
|
|
78
|
-
readonly id: string;
|
|
79
|
-
readonly type: "function";
|
|
80
88
|
readonly extra_content?: {
|
|
81
89
|
readonly google: {
|
|
82
90
|
readonly thought_signature: string;
|
|
83
91
|
};
|
|
84
92
|
} | undefined;
|
|
85
93
|
}[] | undefined;
|
|
94
|
+
readonly reasoning_content?: string | undefined;
|
|
95
|
+
readonly reasoning?: string | undefined;
|
|
96
|
+
readonly reasoning_text?: string | undefined;
|
|
86
97
|
readonly reasoning_details?: unknown;
|
|
87
|
-
} | {
|
|
88
|
-
readonly role: "tool";
|
|
89
|
-
readonly tool_call_id: string;
|
|
90
|
-
readonly content: string | readonly {
|
|
91
|
-
readonly type: "text";
|
|
92
|
-
readonly text: string;
|
|
93
|
-
readonly cache_control?: {
|
|
94
|
-
readonly type: "ephemeral";
|
|
95
|
-
readonly ttl?: string | undefined;
|
|
96
|
-
} | undefined;
|
|
97
|
-
}[];
|
|
98
98
|
})[];
|
|
99
|
-
readonly stream: true;
|
|
100
|
-
readonly max_completion_tokens?: number | undefined;
|
|
101
|
-
readonly max_tokens?: number | undefined;
|
|
102
|
-
readonly temperature?: number | undefined;
|
|
103
99
|
readonly tools?: readonly {
|
|
100
|
+
readonly type: "function";
|
|
104
101
|
readonly function: {
|
|
105
|
-
readonly description: string;
|
|
106
102
|
readonly name: string;
|
|
103
|
+
readonly description: string;
|
|
107
104
|
readonly parameters: {
|
|
108
105
|
readonly [x: string]: unknown;
|
|
109
106
|
};
|
|
110
107
|
readonly strict?: boolean | undefined;
|
|
111
108
|
};
|
|
112
|
-
readonly type: "function";
|
|
113
109
|
readonly cache_control?: {
|
|
114
110
|
readonly type: "ephemeral";
|
|
115
111
|
readonly ttl?: string | undefined;
|
|
116
112
|
} | undefined;
|
|
117
113
|
}[] | undefined;
|
|
118
|
-
readonly
|
|
119
|
-
readonly seed?: number | undefined;
|
|
120
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
114
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
121
115
|
readonly type: "function";
|
|
122
116
|
readonly function: {
|
|
123
117
|
readonly name: string;
|
|
124
118
|
};
|
|
125
119
|
} | undefined;
|
|
126
|
-
readonly
|
|
127
|
-
readonly frequency_penalty?: number | undefined;
|
|
128
|
-
readonly presence_penalty?: number | undefined;
|
|
129
|
-
readonly store?: boolean | undefined;
|
|
130
|
-
readonly prompt_cache_key?: string | undefined;
|
|
131
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
120
|
+
readonly stream: true;
|
|
132
121
|
readonly stream_options?: {
|
|
133
122
|
readonly include_usage: boolean;
|
|
134
123
|
} | undefined;
|
|
124
|
+
readonly store?: boolean | undefined;
|
|
125
|
+
readonly prompt_cache_key?: string | undefined;
|
|
126
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
135
127
|
readonly tool_stream?: boolean | undefined;
|
|
128
|
+
readonly max_completion_tokens?: number | undefined;
|
|
129
|
+
readonly max_tokens?: number | undefined;
|
|
130
|
+
readonly temperature?: number | undefined;
|
|
131
|
+
readonly top_p?: number | undefined;
|
|
132
|
+
readonly frequency_penalty?: number | undefined;
|
|
133
|
+
readonly presence_penalty?: number | undefined;
|
|
134
|
+
readonly seed?: number | undefined;
|
|
135
|
+
readonly stop?: readonly string[] | undefined;
|
|
136
136
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
|
|
137
137
|
export declare const routes: Route<{
|
|
138
138
|
readonly model: string;
|
|
@@ -178,8 +178,20 @@ export declare const routes: Route<{
|
|
|
178
178
|
readonly file_data: string;
|
|
179
179
|
};
|
|
180
180
|
})[];
|
|
181
|
+
} | {
|
|
182
|
+
readonly role: "tool";
|
|
183
|
+
readonly tool_call_id: string;
|
|
184
|
+
readonly content: string | readonly {
|
|
185
|
+
readonly type: "text";
|
|
186
|
+
readonly text: string;
|
|
187
|
+
readonly cache_control?: {
|
|
188
|
+
readonly type: "ephemeral";
|
|
189
|
+
readonly ttl?: string | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
}[];
|
|
181
192
|
} | {
|
|
182
193
|
readonly [x: string]: unknown;
|
|
194
|
+
readonly role: "assistant";
|
|
183
195
|
readonly content: string | readonly {
|
|
184
196
|
readonly type: "text";
|
|
185
197
|
readonly text: string;
|
|
@@ -188,87 +200,71 @@ export declare const routes: Route<{
|
|
|
188
200
|
readonly ttl?: string | undefined;
|
|
189
201
|
} | undefined;
|
|
190
202
|
}[] | null;
|
|
191
|
-
readonly role: "assistant";
|
|
192
|
-
readonly reasoning?: string | undefined;
|
|
193
|
-
readonly reasoning_content?: string | undefined;
|
|
194
|
-
readonly reasoning_text?: string | undefined;
|
|
195
203
|
readonly tool_calls?: readonly {
|
|
204
|
+
readonly id: string;
|
|
205
|
+
readonly type: "function";
|
|
196
206
|
readonly function: {
|
|
197
207
|
readonly name: string;
|
|
198
208
|
readonly arguments: string;
|
|
199
209
|
};
|
|
200
|
-
readonly id: string;
|
|
201
|
-
readonly type: "function";
|
|
202
210
|
readonly extra_content?: {
|
|
203
211
|
readonly google: {
|
|
204
212
|
readonly thought_signature: string;
|
|
205
213
|
};
|
|
206
214
|
} | undefined;
|
|
207
215
|
}[] | undefined;
|
|
216
|
+
readonly reasoning_content?: string | undefined;
|
|
217
|
+
readonly reasoning?: string | undefined;
|
|
218
|
+
readonly reasoning_text?: string | undefined;
|
|
208
219
|
readonly reasoning_details?: unknown;
|
|
209
|
-
} | {
|
|
210
|
-
readonly role: "tool";
|
|
211
|
-
readonly tool_call_id: string;
|
|
212
|
-
readonly content: string | readonly {
|
|
213
|
-
readonly type: "text";
|
|
214
|
-
readonly text: string;
|
|
215
|
-
readonly cache_control?: {
|
|
216
|
-
readonly type: "ephemeral";
|
|
217
|
-
readonly ttl?: string | undefined;
|
|
218
|
-
} | undefined;
|
|
219
|
-
}[];
|
|
220
220
|
})[];
|
|
221
|
-
readonly stream: true;
|
|
222
|
-
readonly max_completion_tokens?: number | undefined;
|
|
223
|
-
readonly max_tokens?: number | undefined;
|
|
224
|
-
readonly temperature?: number | undefined;
|
|
225
221
|
readonly tools?: readonly {
|
|
222
|
+
readonly type: "function";
|
|
226
223
|
readonly function: {
|
|
227
|
-
readonly description: string;
|
|
228
224
|
readonly name: string;
|
|
225
|
+
readonly description: string;
|
|
229
226
|
readonly parameters: {
|
|
230
227
|
readonly [x: string]: unknown;
|
|
231
228
|
};
|
|
232
229
|
readonly strict?: boolean | undefined;
|
|
233
230
|
};
|
|
234
|
-
readonly type: "function";
|
|
235
231
|
readonly cache_control?: {
|
|
236
232
|
readonly type: "ephemeral";
|
|
237
233
|
readonly ttl?: string | undefined;
|
|
238
234
|
} | undefined;
|
|
239
235
|
}[] | undefined;
|
|
240
|
-
readonly
|
|
241
|
-
readonly seed?: number | undefined;
|
|
242
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
236
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
243
237
|
readonly type: "function";
|
|
244
238
|
readonly function: {
|
|
245
239
|
readonly name: string;
|
|
246
240
|
};
|
|
247
241
|
} | undefined;
|
|
248
|
-
readonly
|
|
249
|
-
readonly frequency_penalty?: number | undefined;
|
|
250
|
-
readonly presence_penalty?: number | undefined;
|
|
251
|
-
readonly store?: boolean | undefined;
|
|
252
|
-
readonly prompt_cache_key?: string | undefined;
|
|
253
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
242
|
+
readonly stream: true;
|
|
254
243
|
readonly stream_options?: {
|
|
255
244
|
readonly include_usage: boolean;
|
|
256
245
|
} | undefined;
|
|
246
|
+
readonly store?: boolean | undefined;
|
|
247
|
+
readonly prompt_cache_key?: string | undefined;
|
|
248
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
257
249
|
readonly tool_stream?: boolean | undefined;
|
|
250
|
+
readonly max_completion_tokens?: number | undefined;
|
|
251
|
+
readonly max_tokens?: number | undefined;
|
|
252
|
+
readonly temperature?: number | undefined;
|
|
253
|
+
readonly top_p?: number | undefined;
|
|
254
|
+
readonly frequency_penalty?: number | undefined;
|
|
255
|
+
readonly presence_penalty?: number | undefined;
|
|
256
|
+
readonly seed?: number | undefined;
|
|
257
|
+
readonly stop?: readonly string[] | undefined;
|
|
258
258
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
259
259
|
export declare const configure: (input?: LanguageModelOptions) => {
|
|
260
260
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
261
261
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
262
|
-
configure:
|
|
262
|
+
configure: typeof configure;
|
|
263
263
|
};
|
|
264
264
|
export declare const provider: {
|
|
265
265
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
266
266
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
267
|
-
configure:
|
|
268
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
269
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
270
|
-
configure: /*elided*/ any;
|
|
271
|
-
};
|
|
267
|
+
configure: typeof configure;
|
|
272
268
|
};
|
|
273
269
|
export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
274
270
|
export * as Fireworks from "./fireworks.js";
|
|
@@ -61,8 +61,20 @@ export declare const routes: Route<{
|
|
|
61
61
|
readonly file_data: string;
|
|
62
62
|
};
|
|
63
63
|
})[];
|
|
64
|
+
} | {
|
|
65
|
+
readonly role: "tool";
|
|
66
|
+
readonly tool_call_id: string;
|
|
67
|
+
readonly content: string | readonly {
|
|
68
|
+
readonly type: "text";
|
|
69
|
+
readonly text: string;
|
|
70
|
+
readonly cache_control?: {
|
|
71
|
+
readonly type: "ephemeral";
|
|
72
|
+
readonly ttl?: string | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
}[];
|
|
64
75
|
} | {
|
|
65
76
|
readonly [x: string]: unknown;
|
|
77
|
+
readonly role: "assistant";
|
|
66
78
|
readonly content: string | readonly {
|
|
67
79
|
readonly type: "text";
|
|
68
80
|
readonly text: string;
|
|
@@ -71,85 +83,69 @@ export declare const routes: Route<{
|
|
|
71
83
|
readonly ttl?: string | undefined;
|
|
72
84
|
} | undefined;
|
|
73
85
|
}[] | null;
|
|
74
|
-
readonly role: "assistant";
|
|
75
|
-
readonly reasoning?: string | undefined;
|
|
76
|
-
readonly reasoning_content?: string | undefined;
|
|
77
|
-
readonly reasoning_text?: string | undefined;
|
|
78
86
|
readonly tool_calls?: readonly {
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly type: "function";
|
|
79
89
|
readonly function: {
|
|
80
90
|
readonly name: string;
|
|
81
91
|
readonly arguments: string;
|
|
82
92
|
};
|
|
83
|
-
readonly id: string;
|
|
84
|
-
readonly type: "function";
|
|
85
93
|
readonly extra_content?: {
|
|
86
94
|
readonly google: {
|
|
87
95
|
readonly thought_signature: string;
|
|
88
96
|
};
|
|
89
97
|
} | undefined;
|
|
90
98
|
}[] | undefined;
|
|
99
|
+
readonly reasoning_content?: string | undefined;
|
|
100
|
+
readonly reasoning?: string | undefined;
|
|
101
|
+
readonly reasoning_text?: string | undefined;
|
|
91
102
|
readonly reasoning_details?: unknown;
|
|
92
|
-
} | {
|
|
93
|
-
readonly role: "tool";
|
|
94
|
-
readonly tool_call_id: string;
|
|
95
|
-
readonly content: string | readonly {
|
|
96
|
-
readonly type: "text";
|
|
97
|
-
readonly text: string;
|
|
98
|
-
readonly cache_control?: {
|
|
99
|
-
readonly type: "ephemeral";
|
|
100
|
-
readonly ttl?: string | undefined;
|
|
101
|
-
} | undefined;
|
|
102
|
-
}[];
|
|
103
103
|
})[];
|
|
104
|
-
readonly stream: true;
|
|
105
|
-
readonly max_completion_tokens?: number | undefined;
|
|
106
|
-
readonly max_tokens?: number | undefined;
|
|
107
|
-
readonly temperature?: number | undefined;
|
|
108
104
|
readonly tools?: readonly {
|
|
105
|
+
readonly type: "function";
|
|
109
106
|
readonly function: {
|
|
110
|
-
readonly description: string;
|
|
111
107
|
readonly name: string;
|
|
108
|
+
readonly description: string;
|
|
112
109
|
readonly parameters: {
|
|
113
110
|
readonly [x: string]: unknown;
|
|
114
111
|
};
|
|
115
112
|
readonly strict?: boolean | undefined;
|
|
116
113
|
};
|
|
117
|
-
readonly type: "function";
|
|
118
114
|
readonly cache_control?: {
|
|
119
115
|
readonly type: "ephemeral";
|
|
120
116
|
readonly ttl?: string | undefined;
|
|
121
117
|
} | undefined;
|
|
122
118
|
}[] | undefined;
|
|
123
|
-
readonly
|
|
124
|
-
readonly seed?: number | undefined;
|
|
125
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
119
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
126
120
|
readonly type: "function";
|
|
127
121
|
readonly function: {
|
|
128
122
|
readonly name: string;
|
|
129
123
|
};
|
|
130
124
|
} | undefined;
|
|
131
|
-
readonly
|
|
132
|
-
readonly frequency_penalty?: number | undefined;
|
|
133
|
-
readonly presence_penalty?: number | undefined;
|
|
134
|
-
readonly store?: boolean | undefined;
|
|
135
|
-
readonly prompt_cache_key?: string | undefined;
|
|
136
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
125
|
+
readonly stream: true;
|
|
137
126
|
readonly stream_options?: {
|
|
138
127
|
readonly include_usage: boolean;
|
|
139
128
|
} | undefined;
|
|
129
|
+
readonly store?: boolean | undefined;
|
|
130
|
+
readonly prompt_cache_key?: string | undefined;
|
|
131
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
140
132
|
readonly tool_stream?: boolean | undefined;
|
|
133
|
+
readonly max_completion_tokens?: number | undefined;
|
|
134
|
+
readonly max_tokens?: number | undefined;
|
|
135
|
+
readonly temperature?: number | undefined;
|
|
136
|
+
readonly top_p?: number | undefined;
|
|
137
|
+
readonly frequency_penalty?: number | undefined;
|
|
138
|
+
readonly presence_penalty?: number | undefined;
|
|
139
|
+
readonly seed?: number | undefined;
|
|
140
|
+
readonly stop?: readonly string[] | undefined;
|
|
141
141
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
142
142
|
export declare const configure: (input?: Config) => {
|
|
143
143
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
144
144
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
145
|
-
configure:
|
|
145
|
+
configure: typeof configure;
|
|
146
146
|
};
|
|
147
147
|
export declare const provider: {
|
|
148
148
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
149
|
-
configure:
|
|
150
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
151
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
152
|
-
configure: /*elided*/ any;
|
|
153
|
-
};
|
|
149
|
+
configure: typeof configure;
|
|
154
150
|
};
|
|
155
151
|
export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
@@ -23,90 +23,80 @@ export type Settings = ProviderPackage.Settings & GoogleInteractions.ProviderOpt
|
|
|
23
23
|
readonly project?: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const routes: Route<{
|
|
26
|
+
readonly model: string;
|
|
26
27
|
readonly input: readonly ({
|
|
27
|
-
readonly type: "
|
|
28
|
+
readonly type: "model_output" | "user_input";
|
|
28
29
|
readonly content: readonly ({
|
|
29
|
-
readonly type: "
|
|
30
|
-
readonly text: string;
|
|
31
|
-
} | {
|
|
32
|
-
readonly type: "image" | "document" | "video" | "audio";
|
|
33
|
-
readonly mime_type: string;
|
|
30
|
+
readonly type: "audio" | "document" | "image" | "video";
|
|
34
31
|
readonly data?: string | undefined;
|
|
35
32
|
readonly uri?: string | undefined;
|
|
33
|
+
readonly mime_type: string;
|
|
34
|
+
} | {
|
|
35
|
+
readonly type: "text";
|
|
36
|
+
readonly text: string;
|
|
36
37
|
})[];
|
|
37
38
|
} | {
|
|
38
39
|
readonly type: "thought";
|
|
40
|
+
readonly signature?: string | undefined;
|
|
39
41
|
readonly summary?: readonly {
|
|
40
42
|
readonly type: "text";
|
|
41
43
|
readonly text: string;
|
|
42
44
|
}[] | undefined;
|
|
43
|
-
readonly signature?: string | undefined;
|
|
44
45
|
} | {
|
|
45
|
-
readonly id: string;
|
|
46
46
|
readonly type: "function_call";
|
|
47
|
+
readonly id: string;
|
|
47
48
|
readonly name: string;
|
|
48
49
|
readonly arguments: unknown;
|
|
49
50
|
readonly signature?: string | undefined;
|
|
50
51
|
} | {
|
|
51
52
|
readonly type: "function_result";
|
|
53
|
+
readonly call_id: string;
|
|
52
54
|
readonly name: string;
|
|
53
55
|
readonly result: unknown;
|
|
54
|
-
readonly call_id: string;
|
|
55
56
|
readonly is_error?: boolean | undefined;
|
|
56
57
|
})[];
|
|
57
|
-
readonly model: string;
|
|
58
58
|
readonly stream: true;
|
|
59
59
|
readonly store: boolean;
|
|
60
|
+
readonly previous_interaction_id?: string | undefined;
|
|
61
|
+
readonly system_instruction?: string | undefined;
|
|
62
|
+
readonly service_tier?: string | undefined;
|
|
63
|
+
readonly tools?: readonly {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly description: string;
|
|
67
|
+
readonly parameters: {
|
|
68
|
+
readonly [x: string]: unknown;
|
|
69
|
+
};
|
|
70
|
+
}[] | undefined;
|
|
60
71
|
readonly generation_config: {
|
|
72
|
+
readonly max_output_tokens?: number | undefined;
|
|
61
73
|
readonly temperature?: number | undefined;
|
|
74
|
+
readonly top_p?: number | undefined;
|
|
62
75
|
readonly seed?: number | undefined;
|
|
63
|
-
readonly
|
|
76
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
77
|
+
readonly thinking_level?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
|
|
78
|
+
readonly thinking_summaries?: string | undefined;
|
|
79
|
+
readonly tool_choice?: "any" | "auto" | "none" | {
|
|
64
80
|
readonly allowed_tools: {
|
|
65
81
|
readonly mode: "any";
|
|
66
82
|
readonly tools: readonly string[];
|
|
67
83
|
};
|
|
68
84
|
} | undefined;
|
|
69
|
-
readonly top_p?: number | undefined;
|
|
70
|
-
readonly stop_sequences?: readonly string[] | undefined;
|
|
71
|
-
readonly max_output_tokens?: number | undefined;
|
|
72
|
-
readonly thinking_level?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
73
|
-
readonly thinking_summaries?: string | undefined;
|
|
74
85
|
};
|
|
75
|
-
readonly tools?: readonly {
|
|
76
|
-
readonly type: "function";
|
|
77
|
-
readonly name: string;
|
|
78
|
-
readonly description: string;
|
|
79
|
-
readonly parameters: {
|
|
80
|
-
readonly [x: string]: unknown;
|
|
81
|
-
};
|
|
82
|
-
}[] | undefined;
|
|
83
|
-
readonly service_tier?: string | undefined;
|
|
84
|
-
readonly previous_interaction_id?: string | undefined;
|
|
85
|
-
readonly system_instruction?: string | undefined;
|
|
86
86
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
87
87
|
export declare const configure: (input?: Config) => {
|
|
88
88
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
89
89
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
90
|
-
readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority" | "deferred"> | undefined;
|
|
91
|
-
readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
92
90
|
readonly previousInteractionId?: string | undefined;
|
|
93
91
|
readonly store?: boolean | undefined;
|
|
92
|
+
readonly thinkingLevel?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
|
|
94
93
|
readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
|
|
94
|
+
readonly serviceTier?: import("../schema/options.js").OpenString<"deferred" | "flex" | "priority" | "standard"> | undefined;
|
|
95
95
|
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
96
|
-
configure:
|
|
96
|
+
configure: typeof configure;
|
|
97
97
|
};
|
|
98
98
|
export declare const provider: {
|
|
99
99
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
100
|
-
configure:
|
|
101
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
102
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
103
|
-
readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority" | "deferred"> | undefined;
|
|
104
|
-
readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
105
|
-
readonly previousInteractionId?: string | undefined;
|
|
106
|
-
readonly store?: boolean | undefined;
|
|
107
|
-
readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
|
|
108
|
-
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
109
|
-
configure: /*elided*/ any;
|
|
110
|
-
};
|
|
100
|
+
configure: typeof configure;
|
|
111
101
|
};
|
|
112
102
|
export declare const model: ProviderPackage.Definition<Settings, GoogleInteractions.ProviderOptionsInput>["model"];
|