@codeworksh/aikit 0.7.1 → 0.7.2-dev.20260825090340
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/cli.mjs +2 -2
- package/failure-C0lCOdFE.d.mts +240 -0
- package/failure-xra3YPdY.mjs +281 -0
- package/failure-xra3YPdY.mjs.map +1 -0
- package/index.d.mts +2656 -2
- package/index.mjs +12 -4
- package/index.mjs.map +1 -1
- package/llm/failure.d.mts +2 -0
- package/llm/failure.mjs +2 -0
- package/model-CKKq3s4y.d.mts +1138 -0
- package/{modelgen-BcsqB44a.mjs → modelgen-xolcfdfT.mjs} +2 -2
- package/{modelgen-BcsqB44a.mjs.map → modelgen-xolcfdfT.mjs.map} +1 -1
- package/modelgen.d.mts +1 -1
- package/modelgen.mjs +1 -1
- package/package.json +10 -1
- package/{registry-CMkIE_B4.mjs → registry-DHskX4NP.mjs} +42 -5
- package/registry-DHskX4NP.mjs.map +1 -0
- package/model-En2JLLXC.d.mts +0 -328
- package/registry-CMkIE_B4.mjs.map +0 -1
|
@@ -0,0 +1,1138 @@
|
|
|
1
|
+
import Type$1, { Static, TSchema } from "typebox";
|
|
2
|
+
//#region src/model/catalog.d.ts
|
|
3
|
+
declare const KnownProviderEnum$1: {
|
|
4
|
+
readonly anthropic: "anthropic";
|
|
5
|
+
readonly google: "google";
|
|
6
|
+
readonly googleVertex: "google-vertex";
|
|
7
|
+
readonly googleVertexAnthropic: "google-vertex-anthropic";
|
|
8
|
+
readonly openai: "openai";
|
|
9
|
+
readonly openaiCompatible: "openai-compatible";
|
|
10
|
+
readonly openaiCodex: "openai-codex";
|
|
11
|
+
readonly openrouter: "openrouter";
|
|
12
|
+
readonly xai: "xai";
|
|
13
|
+
};
|
|
14
|
+
declare const KnownProviderEnumSchema$1: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
15
|
+
type KnownProviderEnum$1 = Static<typeof KnownProviderEnumSchema$1>;
|
|
16
|
+
declare const ModelCatalogLoadError$1: {
|
|
17
|
+
new (data: {
|
|
18
|
+
path: string;
|
|
19
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
20
|
+
message: string;
|
|
21
|
+
}, options?: ErrorOptions): {
|
|
22
|
+
cause?: unknown;
|
|
23
|
+
readonly name: "ModelCatalogLoadError";
|
|
24
|
+
readonly data: {
|
|
25
|
+
path: string;
|
|
26
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
schema(): {
|
|
30
|
+
readonly $id: "ModelCatalogLoadError";
|
|
31
|
+
readonly type: "object";
|
|
32
|
+
readonly required: readonly ["name", "data"];
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly name: {
|
|
35
|
+
readonly const: "ModelCatalogLoadError";
|
|
36
|
+
};
|
|
37
|
+
readonly data: Type$1.TObject<{
|
|
38
|
+
path: Type$1.TString;
|
|
39
|
+
reason: Type$1.TUnion<[Type$1.TLiteral<"missing">, Type$1.TLiteral<"unreadable">, Type$1.TLiteral<"empty">, Type$1.TLiteral<"invalid">]>;
|
|
40
|
+
message: Type$1.TString;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
toObject(): {
|
|
45
|
+
name: "ModelCatalogLoadError";
|
|
46
|
+
data: {
|
|
47
|
+
path: string;
|
|
48
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
49
|
+
message: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
message: string;
|
|
53
|
+
stack?: string;
|
|
54
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
55
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
56
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
57
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
58
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
59
|
+
};
|
|
60
|
+
readonly Schema: {
|
|
61
|
+
readonly $id: "ModelCatalogLoadError";
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly required: readonly ["name", "data"];
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly name: {
|
|
66
|
+
readonly const: "ModelCatalogLoadError";
|
|
67
|
+
};
|
|
68
|
+
readonly data: Type$1.TObject<{
|
|
69
|
+
path: Type$1.TString;
|
|
70
|
+
reason: Type$1.TUnion<[Type$1.TLiteral<"missing">, Type$1.TLiteral<"unreadable">, Type$1.TLiteral<"empty">, Type$1.TLiteral<"invalid">]>;
|
|
71
|
+
message: Type$1.TString;
|
|
72
|
+
}>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
isInstance(input: unknown): input is {
|
|
76
|
+
cause?: unknown;
|
|
77
|
+
readonly name: "ModelCatalogLoadError";
|
|
78
|
+
readonly data: {
|
|
79
|
+
path: string;
|
|
80
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
81
|
+
message: string;
|
|
82
|
+
};
|
|
83
|
+
schema(): {
|
|
84
|
+
readonly $id: "ModelCatalogLoadError";
|
|
85
|
+
readonly type: "object";
|
|
86
|
+
readonly required: readonly ["name", "data"];
|
|
87
|
+
readonly properties: {
|
|
88
|
+
readonly name: {
|
|
89
|
+
readonly const: "ModelCatalogLoadError";
|
|
90
|
+
};
|
|
91
|
+
readonly data: Type$1.TObject<{
|
|
92
|
+
path: Type$1.TString;
|
|
93
|
+
reason: Type$1.TUnion<[Type$1.TLiteral<"missing">, Type$1.TLiteral<"unreadable">, Type$1.TLiteral<"empty">, Type$1.TLiteral<"invalid">]>;
|
|
94
|
+
message: Type$1.TString;
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
toObject(): {
|
|
99
|
+
name: "ModelCatalogLoadError";
|
|
100
|
+
data: {
|
|
101
|
+
path: string;
|
|
102
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
message: string;
|
|
107
|
+
stack?: string;
|
|
108
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
109
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
110
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
111
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
112
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
113
|
+
};
|
|
114
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): {
|
|
115
|
+
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
116
|
+
cause?: unknown;
|
|
117
|
+
readonly name: Name;
|
|
118
|
+
readonly data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
119
|
+
schema(): {
|
|
120
|
+
readonly $id: Name;
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly required: readonly ["name", "data"];
|
|
123
|
+
readonly properties: {
|
|
124
|
+
readonly name: {
|
|
125
|
+
readonly const: Name;
|
|
126
|
+
};
|
|
127
|
+
readonly data: Data;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
toObject(): {
|
|
131
|
+
name: Name;
|
|
132
|
+
data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
133
|
+
};
|
|
134
|
+
message: string;
|
|
135
|
+
stack?: string;
|
|
136
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
137
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
138
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
139
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
140
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
141
|
+
};
|
|
142
|
+
readonly Schema: {
|
|
143
|
+
readonly $id: Name;
|
|
144
|
+
readonly type: "object";
|
|
145
|
+
readonly required: readonly ["name", "data"];
|
|
146
|
+
readonly properties: {
|
|
147
|
+
readonly name: {
|
|
148
|
+
readonly const: Name;
|
|
149
|
+
};
|
|
150
|
+
readonly data: Data;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
154
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): /*elided*/ any;
|
|
155
|
+
readonly Unknown: {
|
|
156
|
+
new (data: {
|
|
157
|
+
message?: unknown;
|
|
158
|
+
}, options?: ErrorOptions): {
|
|
159
|
+
cause?: unknown;
|
|
160
|
+
readonly name: "UnknownError";
|
|
161
|
+
readonly data: {
|
|
162
|
+
message?: unknown;
|
|
163
|
+
};
|
|
164
|
+
schema(): {
|
|
165
|
+
readonly $id: "UnknownError";
|
|
166
|
+
readonly type: "object";
|
|
167
|
+
readonly required: readonly ["name", "data"];
|
|
168
|
+
readonly properties: {
|
|
169
|
+
readonly name: {
|
|
170
|
+
readonly const: "UnknownError";
|
|
171
|
+
};
|
|
172
|
+
readonly data: {
|
|
173
|
+
type: string;
|
|
174
|
+
required: string[];
|
|
175
|
+
properties: {
|
|
176
|
+
message: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
toObject(): {
|
|
184
|
+
name: "UnknownError";
|
|
185
|
+
data: {
|
|
186
|
+
message?: unknown;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
message: string;
|
|
190
|
+
stack?: string;
|
|
191
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
192
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
193
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
194
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
195
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
196
|
+
};
|
|
197
|
+
readonly Schema: {
|
|
198
|
+
readonly $id: "UnknownError";
|
|
199
|
+
readonly type: "object";
|
|
200
|
+
readonly required: readonly ["name", "data"];
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly name: {
|
|
203
|
+
readonly const: "UnknownError";
|
|
204
|
+
};
|
|
205
|
+
readonly data: {
|
|
206
|
+
type: string;
|
|
207
|
+
required: string[];
|
|
208
|
+
properties: {
|
|
209
|
+
message: {
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
isInstance(input: unknown): input is {
|
|
217
|
+
cause?: unknown;
|
|
218
|
+
readonly name: "UnknownError";
|
|
219
|
+
readonly data: {
|
|
220
|
+
message?: unknown;
|
|
221
|
+
};
|
|
222
|
+
schema(): {
|
|
223
|
+
readonly $id: "UnknownError";
|
|
224
|
+
readonly type: "object";
|
|
225
|
+
readonly required: readonly ["name", "data"];
|
|
226
|
+
readonly properties: {
|
|
227
|
+
readonly name: {
|
|
228
|
+
readonly const: "UnknownError";
|
|
229
|
+
};
|
|
230
|
+
readonly data: {
|
|
231
|
+
type: string;
|
|
232
|
+
required: string[];
|
|
233
|
+
properties: {
|
|
234
|
+
message: {
|
|
235
|
+
type: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
toObject(): {
|
|
242
|
+
name: "UnknownError";
|
|
243
|
+
data: {
|
|
244
|
+
message?: unknown;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
message: string;
|
|
248
|
+
stack?: string;
|
|
249
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
250
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
251
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
252
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
253
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
254
|
+
};
|
|
255
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): /*elided*/ any;
|
|
256
|
+
readonly Unknown: /*elided*/ any;
|
|
257
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
258
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
259
|
+
stackTraceLimit: number;
|
|
260
|
+
};
|
|
261
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
262
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
263
|
+
stackTraceLimit: number;
|
|
264
|
+
};
|
|
265
|
+
readonly Unknown: {
|
|
266
|
+
new (data: {
|
|
267
|
+
message?: unknown;
|
|
268
|
+
}, options?: ErrorOptions): {
|
|
269
|
+
cause?: unknown;
|
|
270
|
+
readonly name: "UnknownError";
|
|
271
|
+
readonly data: {
|
|
272
|
+
message?: unknown;
|
|
273
|
+
};
|
|
274
|
+
schema(): {
|
|
275
|
+
readonly $id: "UnknownError";
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly required: readonly ["name", "data"];
|
|
278
|
+
readonly properties: {
|
|
279
|
+
readonly name: {
|
|
280
|
+
readonly const: "UnknownError";
|
|
281
|
+
};
|
|
282
|
+
readonly data: {
|
|
283
|
+
type: string;
|
|
284
|
+
required: string[];
|
|
285
|
+
properties: {
|
|
286
|
+
message: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
toObject(): {
|
|
294
|
+
name: "UnknownError";
|
|
295
|
+
data: {
|
|
296
|
+
message?: unknown;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
message: string;
|
|
300
|
+
stack?: string;
|
|
301
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
302
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
303
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
304
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
305
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
306
|
+
};
|
|
307
|
+
readonly Schema: {
|
|
308
|
+
readonly $id: "UnknownError";
|
|
309
|
+
readonly type: "object";
|
|
310
|
+
readonly required: readonly ["name", "data"];
|
|
311
|
+
readonly properties: {
|
|
312
|
+
readonly name: {
|
|
313
|
+
readonly const: "UnknownError";
|
|
314
|
+
};
|
|
315
|
+
readonly data: {
|
|
316
|
+
type: string;
|
|
317
|
+
required: string[];
|
|
318
|
+
properties: {
|
|
319
|
+
message: {
|
|
320
|
+
type: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
isInstance(input: unknown): input is {
|
|
327
|
+
cause?: unknown;
|
|
328
|
+
readonly name: "UnknownError";
|
|
329
|
+
readonly data: {
|
|
330
|
+
message?: unknown;
|
|
331
|
+
};
|
|
332
|
+
schema(): {
|
|
333
|
+
readonly $id: "UnknownError";
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly required: readonly ["name", "data"];
|
|
336
|
+
readonly properties: {
|
|
337
|
+
readonly name: {
|
|
338
|
+
readonly const: "UnknownError";
|
|
339
|
+
};
|
|
340
|
+
readonly data: {
|
|
341
|
+
type: string;
|
|
342
|
+
required: string[];
|
|
343
|
+
properties: {
|
|
344
|
+
message: {
|
|
345
|
+
type: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
toObject(): {
|
|
352
|
+
name: "UnknownError";
|
|
353
|
+
data: {
|
|
354
|
+
message?: unknown;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
message: string;
|
|
358
|
+
stack?: string;
|
|
359
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
360
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
361
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
362
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
363
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
364
|
+
};
|
|
365
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): {
|
|
366
|
+
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
367
|
+
cause?: unknown;
|
|
368
|
+
readonly name: Name;
|
|
369
|
+
readonly data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
370
|
+
schema(): {
|
|
371
|
+
readonly $id: Name;
|
|
372
|
+
readonly type: "object";
|
|
373
|
+
readonly required: readonly ["name", "data"];
|
|
374
|
+
readonly properties: {
|
|
375
|
+
readonly name: {
|
|
376
|
+
readonly const: Name;
|
|
377
|
+
};
|
|
378
|
+
readonly data: Data;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
toObject(): {
|
|
382
|
+
name: Name;
|
|
383
|
+
data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
384
|
+
};
|
|
385
|
+
message: string;
|
|
386
|
+
stack?: string;
|
|
387
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
388
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
389
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
390
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
391
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
392
|
+
};
|
|
393
|
+
readonly Schema: {
|
|
394
|
+
readonly $id: Name;
|
|
395
|
+
readonly type: "object";
|
|
396
|
+
readonly required: readonly ["name", "data"];
|
|
397
|
+
readonly properties: {
|
|
398
|
+
readonly name: {
|
|
399
|
+
readonly const: Name;
|
|
400
|
+
};
|
|
401
|
+
readonly data: Data;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
405
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): /*elided*/ any;
|
|
406
|
+
readonly Unknown: /*elided*/ any;
|
|
407
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
408
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
409
|
+
stackTraceLimit: number;
|
|
410
|
+
};
|
|
411
|
+
readonly Unknown: /*elided*/ any;
|
|
412
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
413
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
414
|
+
stackTraceLimit: number;
|
|
415
|
+
};
|
|
416
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
417
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
418
|
+
stackTraceLimit: number;
|
|
419
|
+
};
|
|
420
|
+
type ModelCatalogLoadError$1 = InstanceType<typeof ModelCatalogLoadError$1>;
|
|
421
|
+
declare namespace model_d_exports {
|
|
422
|
+
export { APIMetadata, APIMetadataSchema, APIMethodEnum, APIMethodEnumSchema, ActiveThinkingLevel, BuiltInModels, Compatibility, CompatibilitySchema, ExtrasSchema, Info, KnownProviderEnum, KnownProviderEnumSchema, ModelCatalogLoadError, ProviderInfo, ProviderToProtocol, Schema, TModel, ThinkingLevel, ThinkingLevelEnum, ThinkingLevelMap, ThinkingLevelMapSchema, calculateCost, clampThinkingLevel, getBuiltInModels, getModel, getModels, getProviders, getSupportedThinkingLevels, modelsAreEqual, normalizeInput, registry, supportsProtocol };
|
|
423
|
+
}
|
|
424
|
+
declare const KnownProviderEnum: {
|
|
425
|
+
readonly anthropic: "anthropic";
|
|
426
|
+
readonly google: "google";
|
|
427
|
+
readonly googleVertex: "google-vertex";
|
|
428
|
+
readonly googleVertexAnthropic: "google-vertex-anthropic";
|
|
429
|
+
readonly openai: "openai";
|
|
430
|
+
readonly openaiCompatible: "openai-compatible";
|
|
431
|
+
readonly openaiCodex: "openai-codex";
|
|
432
|
+
readonly openrouter: "openrouter";
|
|
433
|
+
readonly xai: "xai";
|
|
434
|
+
};
|
|
435
|
+
declare const KnownProviderEnumSchema: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
436
|
+
type KnownProviderEnum = KnownProviderEnum$1;
|
|
437
|
+
declare const ModelCatalogLoadError: {
|
|
438
|
+
new (data: {
|
|
439
|
+
path: string;
|
|
440
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
441
|
+
message: string;
|
|
442
|
+
}, options?: ErrorOptions): {
|
|
443
|
+
cause?: unknown;
|
|
444
|
+
readonly name: "ModelCatalogLoadError";
|
|
445
|
+
readonly data: {
|
|
446
|
+
path: string;
|
|
447
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
448
|
+
message: string;
|
|
449
|
+
};
|
|
450
|
+
schema(): {
|
|
451
|
+
readonly $id: "ModelCatalogLoadError";
|
|
452
|
+
readonly type: "object";
|
|
453
|
+
readonly required: readonly ["name", "data"];
|
|
454
|
+
readonly properties: {
|
|
455
|
+
readonly name: {
|
|
456
|
+
readonly const: "ModelCatalogLoadError";
|
|
457
|
+
};
|
|
458
|
+
readonly data: Type$1.TObject<{
|
|
459
|
+
path: Type$1.TString;
|
|
460
|
+
reason: Type$1.TUnion<[Type$1.TLiteral<"missing">, Type$1.TLiteral<"unreadable">, Type$1.TLiteral<"empty">, Type$1.TLiteral<"invalid">]>;
|
|
461
|
+
message: Type$1.TString;
|
|
462
|
+
}>;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
toObject(): {
|
|
466
|
+
name: "ModelCatalogLoadError";
|
|
467
|
+
data: {
|
|
468
|
+
path: string;
|
|
469
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
470
|
+
message: string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
message: string;
|
|
474
|
+
stack?: string;
|
|
475
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
476
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
477
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
478
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
479
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
480
|
+
};
|
|
481
|
+
readonly Schema: {
|
|
482
|
+
readonly $id: "ModelCatalogLoadError";
|
|
483
|
+
readonly type: "object";
|
|
484
|
+
readonly required: readonly ["name", "data"];
|
|
485
|
+
readonly properties: {
|
|
486
|
+
readonly name: {
|
|
487
|
+
readonly const: "ModelCatalogLoadError";
|
|
488
|
+
};
|
|
489
|
+
readonly data: Type$1.TObject<{
|
|
490
|
+
path: Type$1.TString;
|
|
491
|
+
reason: Type$1.TUnion<[Type$1.TLiteral<"missing">, Type$1.TLiteral<"unreadable">, Type$1.TLiteral<"empty">, Type$1.TLiteral<"invalid">]>;
|
|
492
|
+
message: Type$1.TString;
|
|
493
|
+
}>;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
isInstance(input: unknown): input is {
|
|
497
|
+
cause?: unknown;
|
|
498
|
+
readonly name: "ModelCatalogLoadError";
|
|
499
|
+
readonly data: {
|
|
500
|
+
path: string;
|
|
501
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
502
|
+
message: string;
|
|
503
|
+
};
|
|
504
|
+
schema(): {
|
|
505
|
+
readonly $id: "ModelCatalogLoadError";
|
|
506
|
+
readonly type: "object";
|
|
507
|
+
readonly required: readonly ["name", "data"];
|
|
508
|
+
readonly properties: {
|
|
509
|
+
readonly name: {
|
|
510
|
+
readonly const: "ModelCatalogLoadError";
|
|
511
|
+
};
|
|
512
|
+
readonly data: Type$1.TObject<{
|
|
513
|
+
path: Type$1.TString;
|
|
514
|
+
reason: Type$1.TUnion<[Type$1.TLiteral<"missing">, Type$1.TLiteral<"unreadable">, Type$1.TLiteral<"empty">, Type$1.TLiteral<"invalid">]>;
|
|
515
|
+
message: Type$1.TString;
|
|
516
|
+
}>;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
toObject(): {
|
|
520
|
+
name: "ModelCatalogLoadError";
|
|
521
|
+
data: {
|
|
522
|
+
path: string;
|
|
523
|
+
reason: "empty" | "invalid" | "missing" | "unreadable";
|
|
524
|
+
message: string;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
message: string;
|
|
528
|
+
stack?: string;
|
|
529
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
530
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
531
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
532
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
533
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
534
|
+
};
|
|
535
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): {
|
|
536
|
+
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
537
|
+
cause?: unknown;
|
|
538
|
+
readonly name: Name;
|
|
539
|
+
readonly data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
540
|
+
schema(): {
|
|
541
|
+
readonly $id: Name;
|
|
542
|
+
readonly type: "object";
|
|
543
|
+
readonly required: readonly ["name", "data"];
|
|
544
|
+
readonly properties: {
|
|
545
|
+
readonly name: {
|
|
546
|
+
readonly const: Name;
|
|
547
|
+
};
|
|
548
|
+
readonly data: Data;
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
toObject(): {
|
|
552
|
+
name: Name;
|
|
553
|
+
data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
554
|
+
};
|
|
555
|
+
message: string;
|
|
556
|
+
stack?: string;
|
|
557
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
558
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
559
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
560
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
561
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
562
|
+
};
|
|
563
|
+
readonly Schema: {
|
|
564
|
+
readonly $id: Name;
|
|
565
|
+
readonly type: "object";
|
|
566
|
+
readonly required: readonly ["name", "data"];
|
|
567
|
+
readonly properties: {
|
|
568
|
+
readonly name: {
|
|
569
|
+
readonly const: Name;
|
|
570
|
+
};
|
|
571
|
+
readonly data: Data;
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
575
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): /*elided*/ any;
|
|
576
|
+
readonly Unknown: {
|
|
577
|
+
new (data: {
|
|
578
|
+
message?: unknown;
|
|
579
|
+
}, options?: ErrorOptions): {
|
|
580
|
+
cause?: unknown;
|
|
581
|
+
readonly name: "UnknownError";
|
|
582
|
+
readonly data: {
|
|
583
|
+
message?: unknown;
|
|
584
|
+
};
|
|
585
|
+
schema(): {
|
|
586
|
+
readonly $id: "UnknownError";
|
|
587
|
+
readonly type: "object";
|
|
588
|
+
readonly required: readonly ["name", "data"];
|
|
589
|
+
readonly properties: {
|
|
590
|
+
readonly name: {
|
|
591
|
+
readonly const: "UnknownError";
|
|
592
|
+
};
|
|
593
|
+
readonly data: {
|
|
594
|
+
type: string;
|
|
595
|
+
required: string[];
|
|
596
|
+
properties: {
|
|
597
|
+
message: {
|
|
598
|
+
type: string;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
toObject(): {
|
|
605
|
+
name: "UnknownError";
|
|
606
|
+
data: {
|
|
607
|
+
message?: unknown;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
message: string;
|
|
611
|
+
stack?: string;
|
|
612
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
613
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
614
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
615
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
616
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
617
|
+
};
|
|
618
|
+
readonly Schema: {
|
|
619
|
+
readonly $id: "UnknownError";
|
|
620
|
+
readonly type: "object";
|
|
621
|
+
readonly required: readonly ["name", "data"];
|
|
622
|
+
readonly properties: {
|
|
623
|
+
readonly name: {
|
|
624
|
+
readonly const: "UnknownError";
|
|
625
|
+
};
|
|
626
|
+
readonly data: {
|
|
627
|
+
type: string;
|
|
628
|
+
required: string[];
|
|
629
|
+
properties: {
|
|
630
|
+
message: {
|
|
631
|
+
type: string;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
isInstance(input: unknown): input is {
|
|
638
|
+
cause?: unknown;
|
|
639
|
+
readonly name: "UnknownError";
|
|
640
|
+
readonly data: {
|
|
641
|
+
message?: unknown;
|
|
642
|
+
};
|
|
643
|
+
schema(): {
|
|
644
|
+
readonly $id: "UnknownError";
|
|
645
|
+
readonly type: "object";
|
|
646
|
+
readonly required: readonly ["name", "data"];
|
|
647
|
+
readonly properties: {
|
|
648
|
+
readonly name: {
|
|
649
|
+
readonly const: "UnknownError";
|
|
650
|
+
};
|
|
651
|
+
readonly data: {
|
|
652
|
+
type: string;
|
|
653
|
+
required: string[];
|
|
654
|
+
properties: {
|
|
655
|
+
message: {
|
|
656
|
+
type: string;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
toObject(): {
|
|
663
|
+
name: "UnknownError";
|
|
664
|
+
data: {
|
|
665
|
+
message?: unknown;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
message: string;
|
|
669
|
+
stack?: string;
|
|
670
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
671
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
672
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
673
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
674
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
675
|
+
};
|
|
676
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): /*elided*/ any;
|
|
677
|
+
readonly Unknown: /*elided*/ any;
|
|
678
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
679
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
680
|
+
stackTraceLimit: number;
|
|
681
|
+
};
|
|
682
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
683
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
684
|
+
stackTraceLimit: number;
|
|
685
|
+
};
|
|
686
|
+
readonly Unknown: {
|
|
687
|
+
new (data: {
|
|
688
|
+
message?: unknown;
|
|
689
|
+
}, options?: ErrorOptions): {
|
|
690
|
+
cause?: unknown;
|
|
691
|
+
readonly name: "UnknownError";
|
|
692
|
+
readonly data: {
|
|
693
|
+
message?: unknown;
|
|
694
|
+
};
|
|
695
|
+
schema(): {
|
|
696
|
+
readonly $id: "UnknownError";
|
|
697
|
+
readonly type: "object";
|
|
698
|
+
readonly required: readonly ["name", "data"];
|
|
699
|
+
readonly properties: {
|
|
700
|
+
readonly name: {
|
|
701
|
+
readonly const: "UnknownError";
|
|
702
|
+
};
|
|
703
|
+
readonly data: {
|
|
704
|
+
type: string;
|
|
705
|
+
required: string[];
|
|
706
|
+
properties: {
|
|
707
|
+
message: {
|
|
708
|
+
type: string;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
toObject(): {
|
|
715
|
+
name: "UnknownError";
|
|
716
|
+
data: {
|
|
717
|
+
message?: unknown;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
message: string;
|
|
721
|
+
stack?: string;
|
|
722
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
723
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
724
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
725
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
726
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
727
|
+
};
|
|
728
|
+
readonly Schema: {
|
|
729
|
+
readonly $id: "UnknownError";
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly required: readonly ["name", "data"];
|
|
732
|
+
readonly properties: {
|
|
733
|
+
readonly name: {
|
|
734
|
+
readonly const: "UnknownError";
|
|
735
|
+
};
|
|
736
|
+
readonly data: {
|
|
737
|
+
type: string;
|
|
738
|
+
required: string[];
|
|
739
|
+
properties: {
|
|
740
|
+
message: {
|
|
741
|
+
type: string;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
isInstance(input: unknown): input is {
|
|
748
|
+
cause?: unknown;
|
|
749
|
+
readonly name: "UnknownError";
|
|
750
|
+
readonly data: {
|
|
751
|
+
message?: unknown;
|
|
752
|
+
};
|
|
753
|
+
schema(): {
|
|
754
|
+
readonly $id: "UnknownError";
|
|
755
|
+
readonly type: "object";
|
|
756
|
+
readonly required: readonly ["name", "data"];
|
|
757
|
+
readonly properties: {
|
|
758
|
+
readonly name: {
|
|
759
|
+
readonly const: "UnknownError";
|
|
760
|
+
};
|
|
761
|
+
readonly data: {
|
|
762
|
+
type: string;
|
|
763
|
+
required: string[];
|
|
764
|
+
properties: {
|
|
765
|
+
message: {
|
|
766
|
+
type: string;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
toObject(): {
|
|
773
|
+
name: "UnknownError";
|
|
774
|
+
data: {
|
|
775
|
+
message?: unknown;
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
message: string;
|
|
779
|
+
stack?: string;
|
|
780
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
781
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
782
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
783
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
784
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
785
|
+
};
|
|
786
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): {
|
|
787
|
+
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
788
|
+
cause?: unknown;
|
|
789
|
+
readonly name: Name;
|
|
790
|
+
readonly data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
791
|
+
schema(): {
|
|
792
|
+
readonly $id: Name;
|
|
793
|
+
readonly type: "object";
|
|
794
|
+
readonly required: readonly ["name", "data"];
|
|
795
|
+
readonly properties: {
|
|
796
|
+
readonly name: {
|
|
797
|
+
readonly const: Name;
|
|
798
|
+
};
|
|
799
|
+
readonly data: Data;
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
toObject(): {
|
|
803
|
+
name: Name;
|
|
804
|
+
data: import("typebox").StaticType<[], "Encode", {}, {}, Data>;
|
|
805
|
+
};
|
|
806
|
+
message: string;
|
|
807
|
+
stack?: string;
|
|
808
|
+
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
809
|
+
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
810
|
+
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
811
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
812
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
813
|
+
};
|
|
814
|
+
readonly Schema: {
|
|
815
|
+
readonly $id: Name;
|
|
816
|
+
readonly type: "object";
|
|
817
|
+
readonly required: readonly ["name", "data"];
|
|
818
|
+
readonly properties: {
|
|
819
|
+
readonly name: {
|
|
820
|
+
readonly const: Name;
|
|
821
|
+
};
|
|
822
|
+
readonly data: Data;
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
826
|
+
create<Name extends string, Data extends import("typebox").TSchema>(name: Name, data: Data): /*elided*/ any;
|
|
827
|
+
readonly Unknown: /*elided*/ any;
|
|
828
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
829
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
830
|
+
stackTraceLimit: number;
|
|
831
|
+
};
|
|
832
|
+
readonly Unknown: /*elided*/ any;
|
|
833
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
834
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
835
|
+
stackTraceLimit: number;
|
|
836
|
+
};
|
|
837
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
838
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
839
|
+
stackTraceLimit: number;
|
|
840
|
+
};
|
|
841
|
+
type ModelCatalogLoadError = ModelCatalogLoadError$1;
|
|
842
|
+
declare const ThinkingLevelEnum: {
|
|
843
|
+
readonly off: "off";
|
|
844
|
+
readonly minimal: "minimal";
|
|
845
|
+
readonly low: "low";
|
|
846
|
+
readonly medium: "medium";
|
|
847
|
+
readonly high: "high";
|
|
848
|
+
readonly xhigh: "xhigh";
|
|
849
|
+
readonly max: "max";
|
|
850
|
+
};
|
|
851
|
+
declare const ThinkingLevel: Type$1.TUnion<[Type$1.TLiteral<"off">, Type$1.TLiteral<"minimal">, Type$1.TLiteral<"low">, Type$1.TLiteral<"medium">, Type$1.TLiteral<"high">, Type$1.TLiteral<"xhigh">, Type$1.TLiteral<"max">]>;
|
|
852
|
+
type ThinkingLevel = Static<typeof ThinkingLevel>;
|
|
853
|
+
declare const ActiveThinkingLevel: Type$1.TUnion<[Type$1.TLiteral<"minimal">, Type$1.TLiteral<"low">, Type$1.TLiteral<"medium">, Type$1.TLiteral<"high">, Type$1.TLiteral<"xhigh">, Type$1.TLiteral<"max">]>;
|
|
854
|
+
type ActiveThinkingLevel = Static<typeof ActiveThinkingLevel>;
|
|
855
|
+
declare const ProviderInfo: Type$1.TObject<{
|
|
856
|
+
id: Type$1.TString;
|
|
857
|
+
name: Type$1.TString;
|
|
858
|
+
source: Type$1.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
859
|
+
env: Type$1.TArray<Type$1.TString>;
|
|
860
|
+
key: Type$1.TOptional<Type$1.TString>;
|
|
861
|
+
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TAny>>;
|
|
862
|
+
}>;
|
|
863
|
+
type ProviderInfo = Static<typeof ProviderInfo>;
|
|
864
|
+
declare const APIMethodEnum: {
|
|
865
|
+
readonly languageModel: "languageModel";
|
|
866
|
+
readonly chat: "chat";
|
|
867
|
+
readonly completion: "completion";
|
|
868
|
+
readonly completionModel: "completionModel";
|
|
869
|
+
readonly messages: "messages";
|
|
870
|
+
readonly responses: "responses";
|
|
871
|
+
};
|
|
872
|
+
declare const APIMethodEnumSchema: Type$1.TUnion<[Type$1.TLiteral<"languageModel">, Type$1.TLiteral<"chat">, Type$1.TLiteral<"completion">, Type$1.TLiteral<"completionModel">, Type$1.TLiteral<"messages">, Type$1.TLiteral<"responses">]>;
|
|
873
|
+
type APIMethodEnum = Static<typeof APIMethodEnumSchema>;
|
|
874
|
+
declare const APIMetadataSchema: Type$1.TObject<{
|
|
875
|
+
id: Type$1.TOptional<Type$1.TString>;
|
|
876
|
+
url: Type$1.TOptional<Type$1.TString>;
|
|
877
|
+
method: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"languageModel">, Type$1.TLiteral<"chat">, Type$1.TLiteral<"completion">, Type$1.TLiteral<"completionModel">, Type$1.TLiteral<"messages">, Type$1.TLiteral<"responses">]>>;
|
|
878
|
+
}>;
|
|
879
|
+
type APIMetadata = Static<typeof APIMetadataSchema>;
|
|
880
|
+
declare const ThinkingLevelMapSchema: Type$1.TObject<{
|
|
881
|
+
high: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
882
|
+
low: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
883
|
+
max: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
884
|
+
medium: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
885
|
+
minimal: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
886
|
+
off: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
887
|
+
xhigh: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
888
|
+
}>;
|
|
889
|
+
type ThinkingLevelMap = Static<typeof ThinkingLevelMapSchema>;
|
|
890
|
+
declare const CompatibilitySchema: Type$1.TObject<{
|
|
891
|
+
supportsToolSearch: Type$1.TOptional<Type$1.TBoolean>;
|
|
892
|
+
supportsAdditionalTools: Type$1.TOptional<Type$1.TBoolean>;
|
|
893
|
+
supportsStrictMode: Type$1.TOptional<Type$1.TBoolean>;
|
|
894
|
+
supportsOpenAIGrammarTools: Type$1.TOptional<Type$1.TBoolean>;
|
|
895
|
+
}>;
|
|
896
|
+
type Compatibility = Static<typeof CompatibilitySchema>;
|
|
897
|
+
declare const Schema: Type$1.TObject<{
|
|
898
|
+
id: Type$1.TString;
|
|
899
|
+
name: Type$1.TString;
|
|
900
|
+
provider: Type$1.TObject<{
|
|
901
|
+
id: Type$1.TString;
|
|
902
|
+
name: Type$1.TString;
|
|
903
|
+
source: Type$1.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
904
|
+
env: Type$1.TArray<Type$1.TString>;
|
|
905
|
+
key: Type$1.TOptional<Type$1.TString>;
|
|
906
|
+
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TAny>>;
|
|
907
|
+
}>;
|
|
908
|
+
baseUrl: Type$1.TString;
|
|
909
|
+
reasoning: Type$1.TBoolean;
|
|
910
|
+
thinkingLevelMap: Type$1.TOptional<Type$1.TObject<{
|
|
911
|
+
high: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
912
|
+
low: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
913
|
+
max: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
914
|
+
medium: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
915
|
+
minimal: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
916
|
+
off: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
917
|
+
xhigh: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
918
|
+
}>>;
|
|
919
|
+
input: Type$1.TArray<Type$1.TUnion<[Type$1.TLiteral<"text">, Type$1.TLiteral<"image">]>>;
|
|
920
|
+
cost: Type$1.TObject<{
|
|
921
|
+
input: Type$1.TNumber;
|
|
922
|
+
output: Type$1.TNumber;
|
|
923
|
+
cacheRead: Type$1.TNumber;
|
|
924
|
+
cacheWrite: Type$1.TNumber;
|
|
925
|
+
tiers: Type$1.TOptional<Type$1.TArray<Type$1.TObject<{
|
|
926
|
+
input: Type$1.TNumber;
|
|
927
|
+
output: Type$1.TNumber;
|
|
928
|
+
cacheRead: Type$1.TNumber;
|
|
929
|
+
cacheWrite: Type$1.TNumber;
|
|
930
|
+
inputTokensAbove: Type$1.TNumber;
|
|
931
|
+
}>>>;
|
|
932
|
+
}>;
|
|
933
|
+
contextWindow: Type$1.TNumber;
|
|
934
|
+
maxTokens: Type$1.TNumber;
|
|
935
|
+
headers: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TString>>;
|
|
936
|
+
npm: Type$1.TOptional<Type$1.TString>;
|
|
937
|
+
api: Type$1.TOptional<Type$1.TObject<{
|
|
938
|
+
id: Type$1.TOptional<Type$1.TString>;
|
|
939
|
+
url: Type$1.TOptional<Type$1.TString>;
|
|
940
|
+
method: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"languageModel">, Type$1.TLiteral<"chat">, Type$1.TLiteral<"completion">, Type$1.TLiteral<"completionModel">, Type$1.TLiteral<"messages">, Type$1.TLiteral<"responses">]>>;
|
|
941
|
+
}>>;
|
|
942
|
+
providerOptionsKey: Type$1.TOptional<Type$1.TString>;
|
|
943
|
+
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
944
|
+
providerOptions: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
945
|
+
compat: Type$1.TOptional<Type$1.TObject<{
|
|
946
|
+
supportsToolSearch: Type$1.TOptional<Type$1.TBoolean>;
|
|
947
|
+
supportsAdditionalTools: Type$1.TOptional<Type$1.TBoolean>;
|
|
948
|
+
supportsStrictMode: Type$1.TOptional<Type$1.TBoolean>;
|
|
949
|
+
supportsOpenAIGrammarTools: Type$1.TOptional<Type$1.TBoolean>;
|
|
950
|
+
}>>;
|
|
951
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
952
|
+
supportedProtocols: Type$1.TOptional<Type$1.TObject<{
|
|
953
|
+
anthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
954
|
+
google: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
955
|
+
googleVertex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
956
|
+
googleVertexAnthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
957
|
+
openai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
958
|
+
openaiCompatible: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
959
|
+
openaiCodex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
960
|
+
openrouter: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
961
|
+
xai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
962
|
+
}>>;
|
|
963
|
+
}>;
|
|
964
|
+
declare const ExtrasSchema: Type$1.TObject<{}>;
|
|
965
|
+
declare const Info: Type$1.TObject<{
|
|
966
|
+
id: Type$1.TString;
|
|
967
|
+
name: Type$1.TString;
|
|
968
|
+
provider: Type$1.TObject<{
|
|
969
|
+
id: Type$1.TString;
|
|
970
|
+
name: Type$1.TString;
|
|
971
|
+
source: Type$1.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
972
|
+
env: Type$1.TArray<Type$1.TString>;
|
|
973
|
+
key: Type$1.TOptional<Type$1.TString>;
|
|
974
|
+
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TAny>>;
|
|
975
|
+
}>;
|
|
976
|
+
baseUrl: Type$1.TString;
|
|
977
|
+
reasoning: Type$1.TBoolean;
|
|
978
|
+
thinkingLevelMap: Type$1.TOptional<Type$1.TObject<{
|
|
979
|
+
high: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
980
|
+
low: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
981
|
+
max: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
982
|
+
medium: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
983
|
+
minimal: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
984
|
+
off: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
985
|
+
xhigh: Type$1.TOptional<Type$1.TUnion<[Type$1.TString, Type$1.TNull]>>;
|
|
986
|
+
}>>;
|
|
987
|
+
input: Type$1.TArray<Type$1.TUnion<[Type$1.TLiteral<"text">, Type$1.TLiteral<"image">]>>;
|
|
988
|
+
cost: Type$1.TObject<{
|
|
989
|
+
input: Type$1.TNumber;
|
|
990
|
+
output: Type$1.TNumber;
|
|
991
|
+
cacheRead: Type$1.TNumber;
|
|
992
|
+
cacheWrite: Type$1.TNumber;
|
|
993
|
+
tiers: Type$1.TOptional<Type$1.TArray<Type$1.TObject<{
|
|
994
|
+
input: Type$1.TNumber;
|
|
995
|
+
output: Type$1.TNumber;
|
|
996
|
+
cacheRead: Type$1.TNumber;
|
|
997
|
+
cacheWrite: Type$1.TNumber;
|
|
998
|
+
inputTokensAbove: Type$1.TNumber;
|
|
999
|
+
}>>>;
|
|
1000
|
+
}>;
|
|
1001
|
+
contextWindow: Type$1.TNumber;
|
|
1002
|
+
maxTokens: Type$1.TNumber;
|
|
1003
|
+
headers: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TString>>;
|
|
1004
|
+
npm: Type$1.TOptional<Type$1.TString>;
|
|
1005
|
+
api: Type$1.TOptional<Type$1.TObject<{
|
|
1006
|
+
id: Type$1.TOptional<Type$1.TString>;
|
|
1007
|
+
url: Type$1.TOptional<Type$1.TString>;
|
|
1008
|
+
method: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"languageModel">, Type$1.TLiteral<"chat">, Type$1.TLiteral<"completion">, Type$1.TLiteral<"completionModel">, Type$1.TLiteral<"messages">, Type$1.TLiteral<"responses">]>>;
|
|
1009
|
+
}>>;
|
|
1010
|
+
providerOptionsKey: Type$1.TOptional<Type$1.TString>;
|
|
1011
|
+
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
1012
|
+
providerOptions: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
1013
|
+
compat: Type$1.TOptional<Type$1.TObject<{
|
|
1014
|
+
supportsToolSearch: Type$1.TOptional<Type$1.TBoolean>;
|
|
1015
|
+
supportsAdditionalTools: Type$1.TOptional<Type$1.TBoolean>;
|
|
1016
|
+
supportsStrictMode: Type$1.TOptional<Type$1.TBoolean>;
|
|
1017
|
+
supportsOpenAIGrammarTools: Type$1.TOptional<Type$1.TBoolean>;
|
|
1018
|
+
}>>;
|
|
1019
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1020
|
+
supportedProtocols: Type$1.TOptional<Type$1.TObject<{
|
|
1021
|
+
anthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1022
|
+
google: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1023
|
+
googleVertex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1024
|
+
googleVertexAnthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1025
|
+
openai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1026
|
+
openaiCompatible: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1027
|
+
openaiCodex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1028
|
+
openrouter: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1029
|
+
xai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
1030
|
+
}>>;
|
|
1031
|
+
}>;
|
|
1032
|
+
type Info = Static<typeof Info>;
|
|
1033
|
+
type TModel<TProtocol extends KnownProviderEnum> = Omit<Info, "protocol"> & {
|
|
1034
|
+
protocol: TProtocol;
|
|
1035
|
+
};
|
|
1036
|
+
declare function calculateCost(model: Info, usage: {
|
|
1037
|
+
input: number;
|
|
1038
|
+
output: number;
|
|
1039
|
+
cacheRead: number;
|
|
1040
|
+
cacheWrite: number;
|
|
1041
|
+
cost: {
|
|
1042
|
+
input: number;
|
|
1043
|
+
output: number;
|
|
1044
|
+
cacheRead: number;
|
|
1045
|
+
cacheWrite: number;
|
|
1046
|
+
total: number;
|
|
1047
|
+
};
|
|
1048
|
+
}): void;
|
|
1049
|
+
type BuiltInModels = Partial<Record<string, Record<string, Info>>>;
|
|
1050
|
+
declare function normalizeInput(input?: string[]): Array<"text" | "image">;
|
|
1051
|
+
declare function getBuiltInModels(): Promise<BuiltInModels>;
|
|
1052
|
+
declare const registry: {
|
|
1053
|
+
(): Promise<Map<string, Map<string, {
|
|
1054
|
+
id: string;
|
|
1055
|
+
name: string;
|
|
1056
|
+
provider: {
|
|
1057
|
+
id: string;
|
|
1058
|
+
name: string;
|
|
1059
|
+
source: "api" | "config" | "custom" | "env" | "unknown";
|
|
1060
|
+
env: string[];
|
|
1061
|
+
key?: string;
|
|
1062
|
+
options?: Record<string, any>;
|
|
1063
|
+
};
|
|
1064
|
+
baseUrl: string;
|
|
1065
|
+
reasoning: boolean;
|
|
1066
|
+
thinkingLevelMap?: {
|
|
1067
|
+
high?: string | null;
|
|
1068
|
+
low?: string | null;
|
|
1069
|
+
max?: string | null;
|
|
1070
|
+
medium?: string | null;
|
|
1071
|
+
minimal?: string | null;
|
|
1072
|
+
off?: string | null;
|
|
1073
|
+
xhigh?: string | null;
|
|
1074
|
+
};
|
|
1075
|
+
input: ("image" | "text")[];
|
|
1076
|
+
cost: {
|
|
1077
|
+
input: number;
|
|
1078
|
+
output: number;
|
|
1079
|
+
cacheRead: number;
|
|
1080
|
+
cacheWrite: number;
|
|
1081
|
+
tiers?: {
|
|
1082
|
+
input: number;
|
|
1083
|
+
output: number;
|
|
1084
|
+
cacheRead: number;
|
|
1085
|
+
cacheWrite: number;
|
|
1086
|
+
inputTokensAbove: number;
|
|
1087
|
+
}[];
|
|
1088
|
+
};
|
|
1089
|
+
contextWindow: number;
|
|
1090
|
+
maxTokens: number;
|
|
1091
|
+
headers?: Record<string, string>;
|
|
1092
|
+
npm?: string;
|
|
1093
|
+
api?: {
|
|
1094
|
+
id?: string;
|
|
1095
|
+
url?: string;
|
|
1096
|
+
method?: "chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses";
|
|
1097
|
+
};
|
|
1098
|
+
providerOptionsKey?: string;
|
|
1099
|
+
options?: Record<string, unknown>;
|
|
1100
|
+
providerOptions?: Record<string, unknown>;
|
|
1101
|
+
compat?: {
|
|
1102
|
+
supportsToolSearch?: boolean;
|
|
1103
|
+
supportsAdditionalTools?: boolean;
|
|
1104
|
+
supportsStrictMode?: boolean;
|
|
1105
|
+
supportsOpenAIGrammarTools?: boolean;
|
|
1106
|
+
};
|
|
1107
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1108
|
+
supportedProtocols?: {
|
|
1109
|
+
anthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1110
|
+
google?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1111
|
+
googleVertex?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1112
|
+
googleVertexAnthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1113
|
+
openai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1114
|
+
openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1115
|
+
openaiCodex?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1116
|
+
openrouter?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1117
|
+
xai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1118
|
+
};
|
|
1119
|
+
}>>>;
|
|
1120
|
+
reset: () => void;
|
|
1121
|
+
};
|
|
1122
|
+
declare function supportsProtocol(model: Info, protocol: KnownProviderEnum): boolean;
|
|
1123
|
+
type ProviderToProtocol<TProvider extends string> = TProvider extends KnownProviderEnum ? TProvider : KnownProviderEnum;
|
|
1124
|
+
declare function getModel<TProvider extends string, TProtocol extends KnownProviderEnum = ProviderToProtocol<TProvider>>(provider: TProvider, model: string, overrides?: Partial<Info> & {
|
|
1125
|
+
protocol?: TProtocol;
|
|
1126
|
+
}): Promise<TModel<TProtocol> | undefined>;
|
|
1127
|
+
declare function getProviders(): Promise<string[]>;
|
|
1128
|
+
declare function getModels<TProvider extends string>(provider: TProvider): Promise<Info[]>;
|
|
1129
|
+
/**
|
|
1130
|
+
* Check if two models are equal by comparing both their id and provider id.
|
|
1131
|
+
* Returns false if either model is null or undefined.
|
|
1132
|
+
*/
|
|
1133
|
+
declare function modelsAreEqual(a: Info | null | undefined, b: Info | null | undefined): boolean;
|
|
1134
|
+
declare function getSupportedThinkingLevels<TProtocol extends KnownProviderEnum>(model: TModel<TProtocol>): ThinkingLevel[];
|
|
1135
|
+
declare function clampThinkingLevel<TProtocol extends KnownProviderEnum>(model: TModel<TProtocol>, level: ThinkingLevel): ThinkingLevel;
|
|
1136
|
+
//#endregion
|
|
1137
|
+
export { ProviderToProtocol as a, getModels as c, modelsAreEqual as d, registry as f, KnownProviderEnum as i, getProviders as l, ActiveThinkingLevel as n, TModel as o, Info as r, getModel as s, APIMethodEnum as t, model_d_exports as u };
|
|
1138
|
+
//# sourceMappingURL=model-CKKq3s4y.d.mts.map
|