@adaline/anthropic 0.26.0 → 0.28.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/index.d.mts +657 -2
- package/dist/index.d.ts +657 -2
- package/dist/index.js +120 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { ChatModelV1, ChatModelSchemaType, UrlType, HeadersType, ParamsType, EmbeddingModelSchemaType, EmbeddingModelV1, ProviderV1 } from '@adaline/provider';
|
|
4
|
-
import { MessageType, ConfigType, ToolType, ChatResponseType, PartialChatResponseType, EmbeddingRequestsType, EmbeddingResponseType } from '@adaline/types';
|
|
4
|
+
import { MessageType, ConfigType, ToolType, ChatResponseType, PartialChatResponseType, ChatModelPriceType, EmbeddingRequestsType, EmbeddingResponseType } from '@adaline/types';
|
|
5
5
|
|
|
6
6
|
declare const ChatModelBaseConfigSchema: (maxOutputTokens: number, maxSequences: number) => z.ZodObject<{
|
|
7
7
|
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -157,6 +157,110 @@ declare const toolChoice: {
|
|
|
157
157
|
schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
+
declare const ChatModelReasoningConfigDef: (maxOutputTokens: number, maxSequences: number, minReasoningToken: number, maxReasoningToken: number) => {
|
|
161
|
+
reasoningEnabled: {
|
|
162
|
+
type: "select-boolean";
|
|
163
|
+
param: string;
|
|
164
|
+
title: string;
|
|
165
|
+
description: string;
|
|
166
|
+
default: boolean | null;
|
|
167
|
+
};
|
|
168
|
+
maxReasoningTokens: {
|
|
169
|
+
type: "range";
|
|
170
|
+
param: string;
|
|
171
|
+
title: string;
|
|
172
|
+
description: string;
|
|
173
|
+
max: number;
|
|
174
|
+
default: number;
|
|
175
|
+
min: number;
|
|
176
|
+
step: number;
|
|
177
|
+
};
|
|
178
|
+
temperature: {
|
|
179
|
+
type: "range";
|
|
180
|
+
param: string;
|
|
181
|
+
title: string;
|
|
182
|
+
description: string;
|
|
183
|
+
max: number;
|
|
184
|
+
default: number;
|
|
185
|
+
min: number;
|
|
186
|
+
step: number;
|
|
187
|
+
};
|
|
188
|
+
maxTokens: {
|
|
189
|
+
type: "range";
|
|
190
|
+
param: string;
|
|
191
|
+
title: string;
|
|
192
|
+
description: string;
|
|
193
|
+
max: number;
|
|
194
|
+
default: number;
|
|
195
|
+
min: number;
|
|
196
|
+
step: number;
|
|
197
|
+
};
|
|
198
|
+
stop: {
|
|
199
|
+
type: "multi-string";
|
|
200
|
+
param: string;
|
|
201
|
+
title: string;
|
|
202
|
+
description: string;
|
|
203
|
+
max: number;
|
|
204
|
+
};
|
|
205
|
+
topP: {
|
|
206
|
+
type: "range";
|
|
207
|
+
param: string;
|
|
208
|
+
title: string;
|
|
209
|
+
description: string;
|
|
210
|
+
max: number;
|
|
211
|
+
default: number;
|
|
212
|
+
min: number;
|
|
213
|
+
step: number;
|
|
214
|
+
};
|
|
215
|
+
topK: {
|
|
216
|
+
type: "range";
|
|
217
|
+
param: string;
|
|
218
|
+
title: string;
|
|
219
|
+
description: string;
|
|
220
|
+
max: number;
|
|
221
|
+
default: number;
|
|
222
|
+
min: number;
|
|
223
|
+
step: number;
|
|
224
|
+
};
|
|
225
|
+
toolChoice: {
|
|
226
|
+
type: "select-string";
|
|
227
|
+
param: string;
|
|
228
|
+
title: string;
|
|
229
|
+
description: string;
|
|
230
|
+
default: string;
|
|
231
|
+
choices: string[];
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
declare const ChatModelReasoningConfigSchema: (maxOutputTokens: number, maxSequences: number, minReasoningToken: number, maxReasoningToken: number) => zod.ZodObject<zod.objectUtil.extendShape<{
|
|
235
|
+
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
236
|
+
maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
237
|
+
stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
|
|
238
|
+
topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
239
|
+
topK: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
240
|
+
toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
241
|
+
}, {
|
|
242
|
+
reasoningEnabled: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
|
|
243
|
+
maxReasoningTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
244
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
245
|
+
temperature?: number | undefined;
|
|
246
|
+
maxTokens?: number | undefined;
|
|
247
|
+
stop?: string[] | undefined;
|
|
248
|
+
topP?: number | undefined;
|
|
249
|
+
topK?: number | undefined;
|
|
250
|
+
toolChoice?: string | null | undefined;
|
|
251
|
+
reasoningEnabled?: boolean | null | undefined;
|
|
252
|
+
maxReasoningTokens?: number | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
temperature?: number | undefined;
|
|
255
|
+
maxTokens?: number | undefined;
|
|
256
|
+
stop?: string[] | undefined;
|
|
257
|
+
topP?: number | undefined;
|
|
258
|
+
topK?: number | undefined;
|
|
259
|
+
toolChoice?: string | null | undefined;
|
|
260
|
+
reasoningEnabled?: boolean | null | undefined;
|
|
261
|
+
maxReasoningTokens?: number | undefined;
|
|
262
|
+
}>;
|
|
263
|
+
|
|
160
264
|
declare const AnthropicChatModelConfigs: {
|
|
161
265
|
readonly base: (maxOutputTokens: number, maxSequences: number) => {
|
|
162
266
|
def: {
|
|
@@ -239,6 +343,111 @@ declare const AnthropicChatModelConfigs: {
|
|
|
239
343
|
toolChoice?: string | null | undefined;
|
|
240
344
|
}>;
|
|
241
345
|
};
|
|
346
|
+
readonly extendedThinking: (maxOutputTokens: number, maxSequences: number, minReasoningToken: number, maxReasoningTokens: number) => {
|
|
347
|
+
def: {
|
|
348
|
+
reasoningEnabled: {
|
|
349
|
+
type: "select-boolean";
|
|
350
|
+
param: string;
|
|
351
|
+
title: string;
|
|
352
|
+
description: string;
|
|
353
|
+
default: boolean | null;
|
|
354
|
+
};
|
|
355
|
+
maxReasoningTokens: {
|
|
356
|
+
type: "range";
|
|
357
|
+
param: string;
|
|
358
|
+
title: string;
|
|
359
|
+
description: string;
|
|
360
|
+
max: number;
|
|
361
|
+
default: number;
|
|
362
|
+
min: number;
|
|
363
|
+
step: number;
|
|
364
|
+
};
|
|
365
|
+
temperature: {
|
|
366
|
+
type: "range";
|
|
367
|
+
param: string;
|
|
368
|
+
title: string;
|
|
369
|
+
description: string;
|
|
370
|
+
max: number;
|
|
371
|
+
default: number;
|
|
372
|
+
min: number;
|
|
373
|
+
step: number;
|
|
374
|
+
};
|
|
375
|
+
maxTokens: {
|
|
376
|
+
type: "range";
|
|
377
|
+
param: string;
|
|
378
|
+
title: string;
|
|
379
|
+
description: string;
|
|
380
|
+
max: number;
|
|
381
|
+
default: number;
|
|
382
|
+
min: number;
|
|
383
|
+
step: number;
|
|
384
|
+
};
|
|
385
|
+
stop: {
|
|
386
|
+
type: "multi-string";
|
|
387
|
+
param: string;
|
|
388
|
+
title: string;
|
|
389
|
+
description: string;
|
|
390
|
+
max: number;
|
|
391
|
+
};
|
|
392
|
+
topP: {
|
|
393
|
+
type: "range";
|
|
394
|
+
param: string;
|
|
395
|
+
title: string;
|
|
396
|
+
description: string;
|
|
397
|
+
max: number;
|
|
398
|
+
default: number;
|
|
399
|
+
min: number;
|
|
400
|
+
step: number;
|
|
401
|
+
};
|
|
402
|
+
topK: {
|
|
403
|
+
type: "range";
|
|
404
|
+
param: string;
|
|
405
|
+
title: string;
|
|
406
|
+
description: string;
|
|
407
|
+
max: number;
|
|
408
|
+
default: number;
|
|
409
|
+
min: number;
|
|
410
|
+
step: number;
|
|
411
|
+
};
|
|
412
|
+
toolChoice: {
|
|
413
|
+
type: "select-string";
|
|
414
|
+
param: string;
|
|
415
|
+
title: string;
|
|
416
|
+
description: string;
|
|
417
|
+
default: string;
|
|
418
|
+
choices: string[];
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
422
|
+
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
423
|
+
maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
424
|
+
stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
|
|
425
|
+
topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
426
|
+
topK: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
427
|
+
toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
428
|
+
}, {
|
|
429
|
+
reasoningEnabled: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
|
|
430
|
+
maxReasoningTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
431
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
432
|
+
temperature?: number | undefined;
|
|
433
|
+
maxTokens?: number | undefined;
|
|
434
|
+
stop?: string[] | undefined;
|
|
435
|
+
topP?: number | undefined;
|
|
436
|
+
topK?: number | undefined;
|
|
437
|
+
toolChoice?: string | null | undefined;
|
|
438
|
+
reasoningEnabled?: boolean | null | undefined;
|
|
439
|
+
maxReasoningTokens?: number | undefined;
|
|
440
|
+
}, {
|
|
441
|
+
temperature?: number | undefined;
|
|
442
|
+
maxTokens?: number | undefined;
|
|
443
|
+
stop?: string[] | undefined;
|
|
444
|
+
topP?: number | undefined;
|
|
445
|
+
topK?: number | undefined;
|
|
446
|
+
toolChoice?: string | null | undefined;
|
|
447
|
+
reasoningEnabled?: boolean | null | undefined;
|
|
448
|
+
maxReasoningTokens?: number | undefined;
|
|
449
|
+
}>;
|
|
450
|
+
};
|
|
242
451
|
};
|
|
243
452
|
declare const AnthropicEmbeddingModelConfigs: {
|
|
244
453
|
readonly base: () => {
|
|
@@ -417,6 +626,7 @@ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
|
|
|
417
626
|
getProxyCompleteChatUrl(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<UrlType>;
|
|
418
627
|
getProxyCompleteChatHeaders(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<HeadersType>;
|
|
419
628
|
getProxyStreamChatHeaders(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<HeadersType>;
|
|
629
|
+
getModelPricing(): ChatModelPriceType;
|
|
420
630
|
}
|
|
421
631
|
|
|
422
632
|
declare const Claude3_5Sonnet20240620Literal = "claude-3-5-sonnet-20240620";
|
|
@@ -465,6 +675,21 @@ declare const Claude3_5Sonnet20240620Schema: {
|
|
|
465
675
|
}>;
|
|
466
676
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
467
677
|
};
|
|
678
|
+
price: {
|
|
679
|
+
modelName: string;
|
|
680
|
+
currency: string;
|
|
681
|
+
tokenRanges: {
|
|
682
|
+
minTokens: number;
|
|
683
|
+
prices: {
|
|
684
|
+
base: {
|
|
685
|
+
inputPricePerMillion: number;
|
|
686
|
+
outputPricePerMillion: number;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
maxTokens?: number | null | undefined;
|
|
690
|
+
}[];
|
|
691
|
+
};
|
|
692
|
+
maxReasoningTokens?: number | undefined;
|
|
468
693
|
};
|
|
469
694
|
declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
|
|
470
695
|
modelName: z.ZodString;
|
|
@@ -533,6 +758,21 @@ declare const Claude3_5Sonnet20241022Schema: {
|
|
|
533
758
|
}>;
|
|
534
759
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
535
760
|
};
|
|
761
|
+
price: {
|
|
762
|
+
modelName: string;
|
|
763
|
+
currency: string;
|
|
764
|
+
tokenRanges: {
|
|
765
|
+
minTokens: number;
|
|
766
|
+
prices: {
|
|
767
|
+
base: {
|
|
768
|
+
inputPricePerMillion: number;
|
|
769
|
+
outputPricePerMillion: number;
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
maxTokens?: number | null | undefined;
|
|
773
|
+
}[];
|
|
774
|
+
};
|
|
775
|
+
maxReasoningTokens?: number | undefined;
|
|
536
776
|
};
|
|
537
777
|
declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
|
|
538
778
|
modelName: z.ZodString;
|
|
@@ -601,6 +841,21 @@ declare const Claude3_5SonnetLatestSchema: {
|
|
|
601
841
|
}>;
|
|
602
842
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
603
843
|
};
|
|
844
|
+
price: {
|
|
845
|
+
modelName: string;
|
|
846
|
+
currency: string;
|
|
847
|
+
tokenRanges: {
|
|
848
|
+
minTokens: number;
|
|
849
|
+
prices: {
|
|
850
|
+
base: {
|
|
851
|
+
inputPricePerMillion: number;
|
|
852
|
+
outputPricePerMillion: number;
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
maxTokens?: number | null | undefined;
|
|
856
|
+
}[];
|
|
857
|
+
};
|
|
858
|
+
maxReasoningTokens?: number | undefined;
|
|
604
859
|
};
|
|
605
860
|
declare const Claude3_5SonnetLatestOptions: z.ZodObject<{
|
|
606
861
|
modelName: z.ZodString;
|
|
@@ -623,6 +878,90 @@ declare class Claude3_5SonnetLatest extends BaseChatModel {
|
|
|
623
878
|
constructor(options: Claude3_5SonnetLatestOptionsType);
|
|
624
879
|
}
|
|
625
880
|
|
|
881
|
+
declare const Claude3_7Sonnet20250219Literal = "claude-3-7-sonnet-20250219";
|
|
882
|
+
declare const Claude3_7Sonnet20250219Schema: {
|
|
883
|
+
description: string;
|
|
884
|
+
name: string;
|
|
885
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
886
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
887
|
+
maxInputTokens: number;
|
|
888
|
+
maxOutputTokens: number;
|
|
889
|
+
config: {
|
|
890
|
+
def: Record<string, {
|
|
891
|
+
type: "multi-string";
|
|
892
|
+
param: string;
|
|
893
|
+
title: string;
|
|
894
|
+
description: string;
|
|
895
|
+
max: number;
|
|
896
|
+
} | {
|
|
897
|
+
type: "object-schema";
|
|
898
|
+
param: string;
|
|
899
|
+
title: string;
|
|
900
|
+
description: string;
|
|
901
|
+
objectSchema?: any;
|
|
902
|
+
} | {
|
|
903
|
+
type: "range";
|
|
904
|
+
param: string;
|
|
905
|
+
title: string;
|
|
906
|
+
description: string;
|
|
907
|
+
max: number;
|
|
908
|
+
default: number;
|
|
909
|
+
min: number;
|
|
910
|
+
step: number;
|
|
911
|
+
} | {
|
|
912
|
+
type: "select-boolean";
|
|
913
|
+
param: string;
|
|
914
|
+
title: string;
|
|
915
|
+
description: string;
|
|
916
|
+
default: boolean | null;
|
|
917
|
+
} | {
|
|
918
|
+
type: "select-string";
|
|
919
|
+
param: string;
|
|
920
|
+
title: string;
|
|
921
|
+
description: string;
|
|
922
|
+
default: string;
|
|
923
|
+
choices: string[];
|
|
924
|
+
}>;
|
|
925
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
926
|
+
};
|
|
927
|
+
price: {
|
|
928
|
+
modelName: string;
|
|
929
|
+
currency: string;
|
|
930
|
+
tokenRanges: {
|
|
931
|
+
minTokens: number;
|
|
932
|
+
prices: {
|
|
933
|
+
base: {
|
|
934
|
+
inputPricePerMillion: number;
|
|
935
|
+
outputPricePerMillion: number;
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
maxTokens?: number | null | undefined;
|
|
939
|
+
}[];
|
|
940
|
+
};
|
|
941
|
+
maxReasoningTokens?: number | undefined;
|
|
942
|
+
};
|
|
943
|
+
declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
|
|
944
|
+
modelName: z.ZodString;
|
|
945
|
+
apiKey: z.ZodString;
|
|
946
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
947
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
948
|
+
}, "strip", z.ZodTypeAny, {
|
|
949
|
+
modelName: string;
|
|
950
|
+
apiKey: string;
|
|
951
|
+
completeChatUrl?: string | undefined;
|
|
952
|
+
streamChatUrl?: string | undefined;
|
|
953
|
+
}, {
|
|
954
|
+
modelName: string;
|
|
955
|
+
apiKey: string;
|
|
956
|
+
completeChatUrl?: string | undefined;
|
|
957
|
+
streamChatUrl?: string | undefined;
|
|
958
|
+
}>;
|
|
959
|
+
type Claude3_7Sonnet20250219OptionsType = z.infer<typeof Claude3_7Sonnet20250219Options>;
|
|
960
|
+
declare class Claude3_7Sonnet20250219 extends BaseChatModel {
|
|
961
|
+
constructor(options: Claude3_7Sonnet20250219OptionsType);
|
|
962
|
+
getDefaultHeaders(): HeadersType;
|
|
963
|
+
}
|
|
964
|
+
|
|
626
965
|
declare const Claude3Haiku20240307Literal = "claude-3-haiku-20240307";
|
|
627
966
|
declare const Claude3Haiku20240307Schema: {
|
|
628
967
|
description: string;
|
|
@@ -669,6 +1008,21 @@ declare const Claude3Haiku20240307Schema: {
|
|
|
669
1008
|
}>;
|
|
670
1009
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
671
1010
|
};
|
|
1011
|
+
price: {
|
|
1012
|
+
modelName: string;
|
|
1013
|
+
currency: string;
|
|
1014
|
+
tokenRanges: {
|
|
1015
|
+
minTokens: number;
|
|
1016
|
+
prices: {
|
|
1017
|
+
base: {
|
|
1018
|
+
inputPricePerMillion: number;
|
|
1019
|
+
outputPricePerMillion: number;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
maxTokens?: number | null | undefined;
|
|
1023
|
+
}[];
|
|
1024
|
+
};
|
|
1025
|
+
maxReasoningTokens?: number | undefined;
|
|
672
1026
|
};
|
|
673
1027
|
declare const Claude3Haiku20240307Options: z.ZodObject<{
|
|
674
1028
|
modelName: z.ZodString;
|
|
@@ -737,6 +1091,21 @@ declare const Claude3_5Haiku20241022Schema: {
|
|
|
737
1091
|
}>;
|
|
738
1092
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
739
1093
|
};
|
|
1094
|
+
price: {
|
|
1095
|
+
modelName: string;
|
|
1096
|
+
currency: string;
|
|
1097
|
+
tokenRanges: {
|
|
1098
|
+
minTokens: number;
|
|
1099
|
+
prices: {
|
|
1100
|
+
base: {
|
|
1101
|
+
inputPricePerMillion: number;
|
|
1102
|
+
outputPricePerMillion: number;
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
maxTokens?: number | null | undefined;
|
|
1106
|
+
}[];
|
|
1107
|
+
};
|
|
1108
|
+
maxReasoningTokens?: number | undefined;
|
|
740
1109
|
};
|
|
741
1110
|
declare const Claude3_5Haiku20241022Options: z.ZodObject<{
|
|
742
1111
|
modelName: z.ZodString;
|
|
@@ -805,6 +1174,21 @@ declare const Claude3_5HaikuLatestSchema: {
|
|
|
805
1174
|
}>;
|
|
806
1175
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
807
1176
|
};
|
|
1177
|
+
price: {
|
|
1178
|
+
modelName: string;
|
|
1179
|
+
currency: string;
|
|
1180
|
+
tokenRanges: {
|
|
1181
|
+
minTokens: number;
|
|
1182
|
+
prices: {
|
|
1183
|
+
base: {
|
|
1184
|
+
inputPricePerMillion: number;
|
|
1185
|
+
outputPricePerMillion: number;
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
maxTokens?: number | null | undefined;
|
|
1189
|
+
}[];
|
|
1190
|
+
};
|
|
1191
|
+
maxReasoningTokens?: number | undefined;
|
|
808
1192
|
};
|
|
809
1193
|
declare const Claude3_5HaikuLatestOptions: z.ZodObject<{
|
|
810
1194
|
modelName: z.ZodString;
|
|
@@ -873,6 +1257,21 @@ declare const Claude3Opus20240229Schema: {
|
|
|
873
1257
|
}>;
|
|
874
1258
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
875
1259
|
};
|
|
1260
|
+
price: {
|
|
1261
|
+
modelName: string;
|
|
1262
|
+
currency: string;
|
|
1263
|
+
tokenRanges: {
|
|
1264
|
+
minTokens: number;
|
|
1265
|
+
prices: {
|
|
1266
|
+
base: {
|
|
1267
|
+
inputPricePerMillion: number;
|
|
1268
|
+
outputPricePerMillion: number;
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
maxTokens?: number | null | undefined;
|
|
1272
|
+
}[];
|
|
1273
|
+
};
|
|
1274
|
+
maxReasoningTokens?: number | undefined;
|
|
876
1275
|
};
|
|
877
1276
|
declare const Claude3Opus20240229Options: z.ZodObject<{
|
|
878
1277
|
modelName: z.ZodString;
|
|
@@ -941,6 +1340,21 @@ declare const Claude3Sonnet20240229Schema: {
|
|
|
941
1340
|
}>;
|
|
942
1341
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
943
1342
|
};
|
|
1343
|
+
price: {
|
|
1344
|
+
modelName: string;
|
|
1345
|
+
currency: string;
|
|
1346
|
+
tokenRanges: {
|
|
1347
|
+
minTokens: number;
|
|
1348
|
+
prices: {
|
|
1349
|
+
base: {
|
|
1350
|
+
inputPricePerMillion: number;
|
|
1351
|
+
outputPricePerMillion: number;
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
maxTokens?: number | null | undefined;
|
|
1355
|
+
}[];
|
|
1356
|
+
};
|
|
1357
|
+
maxReasoningTokens?: number | undefined;
|
|
944
1358
|
};
|
|
945
1359
|
declare const Claude3Sonnet20240229Options: z.ZodObject<{
|
|
946
1360
|
modelName: z.ZodString;
|
|
@@ -973,6 +1387,8 @@ declare const AnthropicChatModelRolesMap: {
|
|
|
973
1387
|
|
|
974
1388
|
declare const AnthropicChatModelModalities: ChatModelSchemaType["modalities"];
|
|
975
1389
|
declare const AnthropicChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response"]>;
|
|
1390
|
+
declare const AnthropicThinkingChatModelModalities: ChatModelSchemaType["modalities"];
|
|
1391
|
+
declare const AnthropicThinkingChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response", "reasoning"]>;
|
|
976
1392
|
|
|
977
1393
|
declare const AnthropicCompleteChatResponse: z.ZodObject<{
|
|
978
1394
|
content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -999,6 +1415,27 @@ declare const AnthropicCompleteChatResponse: z.ZodObject<{
|
|
|
999
1415
|
name: string;
|
|
1000
1416
|
id: string;
|
|
1001
1417
|
input: Record<string, any>;
|
|
1418
|
+
}>, z.ZodObject<{
|
|
1419
|
+
type: z.ZodLiteral<"thinking">;
|
|
1420
|
+
thinking: z.ZodString;
|
|
1421
|
+
signature: z.ZodString;
|
|
1422
|
+
}, "strip", z.ZodTypeAny, {
|
|
1423
|
+
type: "thinking";
|
|
1424
|
+
thinking: string;
|
|
1425
|
+
signature: string;
|
|
1426
|
+
}, {
|
|
1427
|
+
type: "thinking";
|
|
1428
|
+
thinking: string;
|
|
1429
|
+
signature: string;
|
|
1430
|
+
}>, z.ZodObject<{
|
|
1431
|
+
type: z.ZodLiteral<"redacted_thinking">;
|
|
1432
|
+
data: z.ZodString;
|
|
1433
|
+
}, "strip", z.ZodTypeAny, {
|
|
1434
|
+
type: "redacted_thinking";
|
|
1435
|
+
data: string;
|
|
1436
|
+
}, {
|
|
1437
|
+
type: "redacted_thinking";
|
|
1438
|
+
data: string;
|
|
1002
1439
|
}>]>, "many">;
|
|
1003
1440
|
id: z.ZodString;
|
|
1004
1441
|
model: z.ZodString;
|
|
@@ -1033,6 +1470,13 @@ declare const AnthropicCompleteChatResponse: z.ZodObject<{
|
|
|
1033
1470
|
name: string;
|
|
1034
1471
|
id: string;
|
|
1035
1472
|
input: Record<string, any>;
|
|
1473
|
+
} | {
|
|
1474
|
+
type: "thinking";
|
|
1475
|
+
thinking: string;
|
|
1476
|
+
signature: string;
|
|
1477
|
+
} | {
|
|
1478
|
+
type: "redacted_thinking";
|
|
1479
|
+
data: string;
|
|
1036
1480
|
})[];
|
|
1037
1481
|
id: string;
|
|
1038
1482
|
model: string;
|
|
@@ -1055,6 +1499,13 @@ declare const AnthropicCompleteChatResponse: z.ZodObject<{
|
|
|
1055
1499
|
name: string;
|
|
1056
1500
|
id: string;
|
|
1057
1501
|
input: Record<string, any>;
|
|
1502
|
+
} | {
|
|
1503
|
+
type: "thinking";
|
|
1504
|
+
thinking: string;
|
|
1505
|
+
signature: string;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: "redacted_thinking";
|
|
1508
|
+
data: string;
|
|
1058
1509
|
})[];
|
|
1059
1510
|
id: string;
|
|
1060
1511
|
model: string;
|
|
@@ -1209,6 +1660,24 @@ declare const AnthropicStreamChatContentBlockStartResponse: z.ZodObject<{
|
|
|
1209
1660
|
name: string;
|
|
1210
1661
|
id: string;
|
|
1211
1662
|
input: {};
|
|
1663
|
+
}>, z.ZodObject<{
|
|
1664
|
+
type: z.ZodLiteral<"thinking">;
|
|
1665
|
+
thinking: z.ZodString;
|
|
1666
|
+
}, "strip", z.ZodTypeAny, {
|
|
1667
|
+
type: "thinking";
|
|
1668
|
+
thinking: string;
|
|
1669
|
+
}, {
|
|
1670
|
+
type: "thinking";
|
|
1671
|
+
thinking: string;
|
|
1672
|
+
}>, z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"redacted_thinking">;
|
|
1674
|
+
data: z.ZodString;
|
|
1675
|
+
}, "strip", z.ZodTypeAny, {
|
|
1676
|
+
type: "redacted_thinking";
|
|
1677
|
+
data: string;
|
|
1678
|
+
}, {
|
|
1679
|
+
type: "redacted_thinking";
|
|
1680
|
+
data: string;
|
|
1212
1681
|
}>]>;
|
|
1213
1682
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1683
|
type: "content_block_start";
|
|
@@ -1221,6 +1690,12 @@ declare const AnthropicStreamChatContentBlockStartResponse: z.ZodObject<{
|
|
|
1221
1690
|
name: string;
|
|
1222
1691
|
id: string;
|
|
1223
1692
|
input: {};
|
|
1693
|
+
} | {
|
|
1694
|
+
type: "thinking";
|
|
1695
|
+
thinking: string;
|
|
1696
|
+
} | {
|
|
1697
|
+
type: "redacted_thinking";
|
|
1698
|
+
data: string;
|
|
1224
1699
|
};
|
|
1225
1700
|
}, {
|
|
1226
1701
|
type: "content_block_start";
|
|
@@ -1233,6 +1708,12 @@ declare const AnthropicStreamChatContentBlockStartResponse: z.ZodObject<{
|
|
|
1233
1708
|
name: string;
|
|
1234
1709
|
id: string;
|
|
1235
1710
|
input: {};
|
|
1711
|
+
} | {
|
|
1712
|
+
type: "thinking";
|
|
1713
|
+
thinking: string;
|
|
1714
|
+
} | {
|
|
1715
|
+
type: "redacted_thinking";
|
|
1716
|
+
data: string;
|
|
1236
1717
|
};
|
|
1237
1718
|
}>;
|
|
1238
1719
|
declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
|
|
@@ -1256,6 +1737,24 @@ declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
|
|
|
1256
1737
|
}, {
|
|
1257
1738
|
type: "input_json_delta";
|
|
1258
1739
|
partial_json: string;
|
|
1740
|
+
}>, z.ZodObject<{
|
|
1741
|
+
type: z.ZodLiteral<"thinking_delta">;
|
|
1742
|
+
thinking: z.ZodString;
|
|
1743
|
+
}, "strip", z.ZodTypeAny, {
|
|
1744
|
+
type: "thinking_delta";
|
|
1745
|
+
thinking: string;
|
|
1746
|
+
}, {
|
|
1747
|
+
type: "thinking_delta";
|
|
1748
|
+
thinking: string;
|
|
1749
|
+
}>, z.ZodObject<{
|
|
1750
|
+
type: z.ZodLiteral<"signature_delta">;
|
|
1751
|
+
signature: z.ZodString;
|
|
1752
|
+
}, "strip", z.ZodTypeAny, {
|
|
1753
|
+
type: "signature_delta";
|
|
1754
|
+
signature: string;
|
|
1755
|
+
}, {
|
|
1756
|
+
type: "signature_delta";
|
|
1757
|
+
signature: string;
|
|
1259
1758
|
}>]>;
|
|
1260
1759
|
}, "strip", z.ZodTypeAny, {
|
|
1261
1760
|
type: "content_block_delta";
|
|
@@ -1266,6 +1765,12 @@ declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
|
|
|
1266
1765
|
} | {
|
|
1267
1766
|
type: "input_json_delta";
|
|
1268
1767
|
partial_json: string;
|
|
1768
|
+
} | {
|
|
1769
|
+
type: "thinking_delta";
|
|
1770
|
+
thinking: string;
|
|
1771
|
+
} | {
|
|
1772
|
+
type: "signature_delta";
|
|
1773
|
+
signature: string;
|
|
1269
1774
|
};
|
|
1270
1775
|
}, {
|
|
1271
1776
|
type: "content_block_delta";
|
|
@@ -1276,9 +1781,40 @@ declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
|
|
|
1276
1781
|
} | {
|
|
1277
1782
|
type: "input_json_delta";
|
|
1278
1783
|
partial_json: string;
|
|
1784
|
+
} | {
|
|
1785
|
+
type: "thinking_delta";
|
|
1786
|
+
thinking: string;
|
|
1787
|
+
} | {
|
|
1788
|
+
type: "signature_delta";
|
|
1789
|
+
signature: string;
|
|
1279
1790
|
};
|
|
1280
1791
|
}>;
|
|
1281
1792
|
|
|
1793
|
+
declare const AnthropicRequestThinkingContent: z.ZodObject<{
|
|
1794
|
+
type: z.ZodLiteral<"thinking">;
|
|
1795
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1796
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
}, "strip", z.ZodTypeAny, {
|
|
1798
|
+
type: "thinking";
|
|
1799
|
+
thinking?: string | undefined;
|
|
1800
|
+
signature?: string | undefined;
|
|
1801
|
+
}, {
|
|
1802
|
+
type: "thinking";
|
|
1803
|
+
thinking?: string | undefined;
|
|
1804
|
+
signature?: string | undefined;
|
|
1805
|
+
}>;
|
|
1806
|
+
type AnthropicRequestThinkingContentType = z.infer<typeof AnthropicRequestThinkingContent>;
|
|
1807
|
+
declare const AnthropicRequestRedactedThinkingContent: z.ZodObject<{
|
|
1808
|
+
type: z.ZodLiteral<"redacted_thinking">;
|
|
1809
|
+
data: z.ZodString;
|
|
1810
|
+
}, "strip", z.ZodTypeAny, {
|
|
1811
|
+
type: "redacted_thinking";
|
|
1812
|
+
data: string;
|
|
1813
|
+
}, {
|
|
1814
|
+
type: "redacted_thinking";
|
|
1815
|
+
data: string;
|
|
1816
|
+
}>;
|
|
1817
|
+
type AnthropicRequestRedactedThinkingContentType = z.infer<typeof AnthropicRequestRedactedThinkingContent>;
|
|
1282
1818
|
declare const AnthropicRequestTool: z.ZodObject<{
|
|
1283
1819
|
name: z.ZodString;
|
|
1284
1820
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1691,10 +2227,38 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
|
|
|
1691
2227
|
};
|
|
1692
2228
|
})[];
|
|
1693
2229
|
tool_use_id: string;
|
|
2230
|
+
}>, z.ZodObject<{
|
|
2231
|
+
type: z.ZodLiteral<"thinking">;
|
|
2232
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
2233
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2234
|
+
}, "strip", z.ZodTypeAny, {
|
|
2235
|
+
type: "thinking";
|
|
2236
|
+
thinking?: string | undefined;
|
|
2237
|
+
signature?: string | undefined;
|
|
2238
|
+
}, {
|
|
2239
|
+
type: "thinking";
|
|
2240
|
+
thinking?: string | undefined;
|
|
2241
|
+
signature?: string | undefined;
|
|
2242
|
+
}>, z.ZodObject<{
|
|
2243
|
+
type: z.ZodLiteral<"redacted_thinking">;
|
|
2244
|
+
data: z.ZodString;
|
|
2245
|
+
}, "strip", z.ZodTypeAny, {
|
|
2246
|
+
type: "redacted_thinking";
|
|
2247
|
+
data: string;
|
|
2248
|
+
}, {
|
|
2249
|
+
type: "redacted_thinking";
|
|
2250
|
+
data: string;
|
|
1694
2251
|
}>]>, "many">]>;
|
|
1695
2252
|
}, "strip", z.ZodTypeAny, {
|
|
1696
2253
|
role: "assistant";
|
|
1697
2254
|
content: string | ({
|
|
2255
|
+
type: "thinking";
|
|
2256
|
+
thinking?: string | undefined;
|
|
2257
|
+
signature?: string | undefined;
|
|
2258
|
+
} | {
|
|
2259
|
+
type: "redacted_thinking";
|
|
2260
|
+
data: string;
|
|
2261
|
+
} | {
|
|
1698
2262
|
type: "text";
|
|
1699
2263
|
text: string;
|
|
1700
2264
|
} | {
|
|
@@ -1715,6 +2279,13 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
|
|
|
1715
2279
|
}, {
|
|
1716
2280
|
role: "assistant";
|
|
1717
2281
|
content: string | ({
|
|
2282
|
+
type: "thinking";
|
|
2283
|
+
thinking?: string | undefined;
|
|
2284
|
+
signature?: string | undefined;
|
|
2285
|
+
} | {
|
|
2286
|
+
type: "redacted_thinking";
|
|
2287
|
+
data: string;
|
|
2288
|
+
} | {
|
|
1718
2289
|
type: "text";
|
|
1719
2290
|
text: string;
|
|
1720
2291
|
} | {
|
|
@@ -1980,10 +2551,38 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
1980
2551
|
};
|
|
1981
2552
|
})[];
|
|
1982
2553
|
tool_use_id: string;
|
|
2554
|
+
}>, z.ZodObject<{
|
|
2555
|
+
type: z.ZodLiteral<"thinking">;
|
|
2556
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
2557
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2558
|
+
}, "strip", z.ZodTypeAny, {
|
|
2559
|
+
type: "thinking";
|
|
2560
|
+
thinking?: string | undefined;
|
|
2561
|
+
signature?: string | undefined;
|
|
2562
|
+
}, {
|
|
2563
|
+
type: "thinking";
|
|
2564
|
+
thinking?: string | undefined;
|
|
2565
|
+
signature?: string | undefined;
|
|
2566
|
+
}>, z.ZodObject<{
|
|
2567
|
+
type: z.ZodLiteral<"redacted_thinking">;
|
|
2568
|
+
data: z.ZodString;
|
|
2569
|
+
}, "strip", z.ZodTypeAny, {
|
|
2570
|
+
type: "redacted_thinking";
|
|
2571
|
+
data: string;
|
|
2572
|
+
}, {
|
|
2573
|
+
type: "redacted_thinking";
|
|
2574
|
+
data: string;
|
|
1983
2575
|
}>]>, "many">]>;
|
|
1984
2576
|
}, "strip", z.ZodTypeAny, {
|
|
1985
2577
|
role: "assistant";
|
|
1986
2578
|
content: string | ({
|
|
2579
|
+
type: "thinking";
|
|
2580
|
+
thinking?: string | undefined;
|
|
2581
|
+
signature?: string | undefined;
|
|
2582
|
+
} | {
|
|
2583
|
+
type: "redacted_thinking";
|
|
2584
|
+
data: string;
|
|
2585
|
+
} | {
|
|
1987
2586
|
type: "text";
|
|
1988
2587
|
text: string;
|
|
1989
2588
|
} | {
|
|
@@ -2004,6 +2603,13 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
2004
2603
|
}, {
|
|
2005
2604
|
role: "assistant";
|
|
2006
2605
|
content: string | ({
|
|
2606
|
+
type: "thinking";
|
|
2607
|
+
thinking?: string | undefined;
|
|
2608
|
+
signature?: string | undefined;
|
|
2609
|
+
} | {
|
|
2610
|
+
type: "redacted_thinking";
|
|
2611
|
+
data: string;
|
|
2612
|
+
} | {
|
|
2007
2613
|
type: "text";
|
|
2008
2614
|
text: string;
|
|
2009
2615
|
} | {
|
|
@@ -2271,10 +2877,38 @@ declare const AnthropicRequest: z.ZodObject<{
|
|
|
2271
2877
|
};
|
|
2272
2878
|
})[];
|
|
2273
2879
|
tool_use_id: string;
|
|
2880
|
+
}>, z.ZodObject<{
|
|
2881
|
+
type: z.ZodLiteral<"thinking">;
|
|
2882
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2884
|
+
}, "strip", z.ZodTypeAny, {
|
|
2885
|
+
type: "thinking";
|
|
2886
|
+
thinking?: string | undefined;
|
|
2887
|
+
signature?: string | undefined;
|
|
2888
|
+
}, {
|
|
2889
|
+
type: "thinking";
|
|
2890
|
+
thinking?: string | undefined;
|
|
2891
|
+
signature?: string | undefined;
|
|
2892
|
+
}>, z.ZodObject<{
|
|
2893
|
+
type: z.ZodLiteral<"redacted_thinking">;
|
|
2894
|
+
data: z.ZodString;
|
|
2895
|
+
}, "strip", z.ZodTypeAny, {
|
|
2896
|
+
type: "redacted_thinking";
|
|
2897
|
+
data: string;
|
|
2898
|
+
}, {
|
|
2899
|
+
type: "redacted_thinking";
|
|
2900
|
+
data: string;
|
|
2274
2901
|
}>]>, "many">]>;
|
|
2275
2902
|
}, "strip", z.ZodTypeAny, {
|
|
2276
2903
|
role: "assistant";
|
|
2277
2904
|
content: string | ({
|
|
2905
|
+
type: "thinking";
|
|
2906
|
+
thinking?: string | undefined;
|
|
2907
|
+
signature?: string | undefined;
|
|
2908
|
+
} | {
|
|
2909
|
+
type: "redacted_thinking";
|
|
2910
|
+
data: string;
|
|
2911
|
+
} | {
|
|
2278
2912
|
type: "text";
|
|
2279
2913
|
text: string;
|
|
2280
2914
|
} | {
|
|
@@ -2295,6 +2929,13 @@ declare const AnthropicRequest: z.ZodObject<{
|
|
|
2295
2929
|
}, {
|
|
2296
2930
|
role: "assistant";
|
|
2297
2931
|
content: string | ({
|
|
2932
|
+
type: "thinking";
|
|
2933
|
+
thinking?: string | undefined;
|
|
2934
|
+
signature?: string | undefined;
|
|
2935
|
+
} | {
|
|
2936
|
+
type: "redacted_thinking";
|
|
2937
|
+
data: string;
|
|
2938
|
+
} | {
|
|
2298
2939
|
type: "text";
|
|
2299
2940
|
text: string;
|
|
2300
2941
|
} | {
|
|
@@ -2379,6 +3020,13 @@ declare const AnthropicRequest: z.ZodObject<{
|
|
|
2379
3020
|
} | {
|
|
2380
3021
|
role: "assistant";
|
|
2381
3022
|
content: string | ({
|
|
3023
|
+
type: "thinking";
|
|
3024
|
+
thinking?: string | undefined;
|
|
3025
|
+
signature?: string | undefined;
|
|
3026
|
+
} | {
|
|
3027
|
+
type: "redacted_thinking";
|
|
3028
|
+
data: string;
|
|
3029
|
+
} | {
|
|
2382
3030
|
type: "text";
|
|
2383
3031
|
text: string;
|
|
2384
3032
|
} | {
|
|
@@ -2446,6 +3094,13 @@ declare const AnthropicRequest: z.ZodObject<{
|
|
|
2446
3094
|
} | {
|
|
2447
3095
|
role: "assistant";
|
|
2448
3096
|
content: string | ({
|
|
3097
|
+
type: "thinking";
|
|
3098
|
+
thinking?: string | undefined;
|
|
3099
|
+
signature?: string | undefined;
|
|
3100
|
+
} | {
|
|
3101
|
+
type: "redacted_thinking";
|
|
3102
|
+
data: string;
|
|
3103
|
+
} | {
|
|
2449
3104
|
type: "text";
|
|
2450
3105
|
text: string;
|
|
2451
3106
|
} | {
|
|
@@ -3001,4 +3656,4 @@ declare class Anthropic<C extends BaseChatModelOptionsType, E extends BaseEmbedd
|
|
|
3001
3656
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
3002
3657
|
}
|
|
3003
3658
|
|
|
3004
|
-
export { Anthropic, AnthropicChatModelConfigs, AnthropicChatModelModalities, AnthropicChatModelModalitiesEnum, AnthropicChatModelRoles, AnthropicChatModelRolesMap, AnthropicCompleteChatResponse, type AnthropicCompleteChatResponseType, AnthropicEmbeddingModelConfigs, AnthropicEmbeddingModelModalities, AnthropicEmbeddingModelModalitiesEnum, AnthropicEmbeddingRequest, AnthropicEmbeddingRequestInput, type AnthropicEmbeddingRequestInputType, type AnthropicEmbeddingRequestType, AnthropicGetEmbeddingsResponse, AnthropicRequest, AnthropicRequestAssistantMessage, type AnthropicRequestAssistantMessageType, AnthropicRequestImageContent, type AnthropicRequestImageContentType, AnthropicRequestMessage, type AnthropicRequestMessageType, AnthropicRequestTextContent, type AnthropicRequestTextContentType, AnthropicRequestTool, AnthropicRequestToolCallContent, type AnthropicRequestToolCallContentType, AnthropicRequestToolChoiceEnum, type AnthropicRequestToolChoiceEnumType, AnthropicRequestToolChoiceTool, type AnthropicRequestToolChoiceToolType, AnthropicRequestToolResponseContent, type AnthropicRequestToolResponseContentType, type AnthropicRequestToolType, type AnthropicRequestType, AnthropicRequestUserMessage, type AnthropicRequestUserMessageType, AnthropicStreamChatContentBlockDeltaResponse, AnthropicStreamChatContentBlockStartResponse, AnthropicStreamChatMessageDeltaResponse, AnthropicStreamChatMessageStartResponse, BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, Claude3Haiku20240307, Claude3Haiku20240307Literal, Claude3Haiku20240307Options, type Claude3Haiku20240307OptionsType, Claude3Haiku20240307Schema, Claude3Opus20240229, Claude3Opus20240229Literal, Claude3Opus20240229Options, type Claude3Opus20240229OptionsType, Claude3Opus20240229Schema, Claude3Sonnet20240229, Claude3Sonnet20240229Literal, Claude3Sonnet20240229Options, type Claude3Sonnet20240229OptionsType, Claude3Sonnet20240229Schema, Claude3_5Haiku20241022, Claude3_5Haiku20241022Literal, Claude3_5Haiku20241022Options, type Claude3_5Haiku20241022OptionsType, Claude3_5Haiku20241022Schema, Claude3_5HaikuLatest, Claude3_5HaikuLatestLiteral, Claude3_5HaikuLatestOptions, type Claude3_5HaikuLatestOptionsType, Claude3_5HaikuLatestSchema, Claude3_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_5SonnetLatest, Claude3_5SonnetLatestLiteral, Claude3_5SonnetLatestOptions, type Claude3_5SonnetLatestOptionsType, Claude3_5SonnetLatestSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, ProviderLiteral, Voyage3, Voyage3Lite, Voyage3LiteLiteral, Voyage3LiteOptions, type Voyage3LiteOptionsType, Voyage3LiteSchema, Voyage3Literal, Voyage3Options, type Voyage3OptionsType, Voyage3Schema, VoyageCode2, VoyageCode2Literal, VoyageCode2Options, type VoyageCode2OptionsType, VoyageCode2Schema, VoyageFinance2, VoyageFinance2Literal, VoyageFinance2Options, type VoyageFinance2OptionsType, VoyageFinance2Schema, VoyageLaw2, VoyageLaw2Literal, VoyageLaw2Options, type VoyageLaw2OptionsType, VoyageLaw2Schema, VoyageMultilingual2, VoyageMultilingual2Literal, VoyageMultilingual2Options, type VoyageMultilingual2OptionsType, VoyageMultilingual2Schema, encodingFormat, inputType, maxTokens, stop, temperature, toolChoice, topK, topP, truncation };
|
|
3659
|
+
export { Anthropic, AnthropicChatModelConfigs, AnthropicChatModelModalities, AnthropicChatModelModalitiesEnum, AnthropicChatModelRoles, AnthropicChatModelRolesMap, AnthropicCompleteChatResponse, type AnthropicCompleteChatResponseType, AnthropicEmbeddingModelConfigs, AnthropicEmbeddingModelModalities, AnthropicEmbeddingModelModalitiesEnum, AnthropicEmbeddingRequest, AnthropicEmbeddingRequestInput, type AnthropicEmbeddingRequestInputType, type AnthropicEmbeddingRequestType, AnthropicGetEmbeddingsResponse, AnthropicRequest, AnthropicRequestAssistantMessage, type AnthropicRequestAssistantMessageType, AnthropicRequestImageContent, type AnthropicRequestImageContentType, AnthropicRequestMessage, type AnthropicRequestMessageType, AnthropicRequestRedactedThinkingContent, type AnthropicRequestRedactedThinkingContentType, AnthropicRequestTextContent, type AnthropicRequestTextContentType, AnthropicRequestThinkingContent, type AnthropicRequestThinkingContentType, AnthropicRequestTool, AnthropicRequestToolCallContent, type AnthropicRequestToolCallContentType, AnthropicRequestToolChoiceEnum, type AnthropicRequestToolChoiceEnumType, AnthropicRequestToolChoiceTool, type AnthropicRequestToolChoiceToolType, AnthropicRequestToolResponseContent, type AnthropicRequestToolResponseContentType, type AnthropicRequestToolType, type AnthropicRequestType, AnthropicRequestUserMessage, type AnthropicRequestUserMessageType, AnthropicStreamChatContentBlockDeltaResponse, AnthropicStreamChatContentBlockStartResponse, AnthropicStreamChatMessageDeltaResponse, AnthropicStreamChatMessageStartResponse, AnthropicThinkingChatModelModalities, AnthropicThinkingChatModelModalitiesEnum, BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelReasoningConfigDef, ChatModelReasoningConfigSchema, Claude3Haiku20240307, Claude3Haiku20240307Literal, Claude3Haiku20240307Options, type Claude3Haiku20240307OptionsType, Claude3Haiku20240307Schema, Claude3Opus20240229, Claude3Opus20240229Literal, Claude3Opus20240229Options, type Claude3Opus20240229OptionsType, Claude3Opus20240229Schema, Claude3Sonnet20240229, Claude3Sonnet20240229Literal, Claude3Sonnet20240229Options, type Claude3Sonnet20240229OptionsType, Claude3Sonnet20240229Schema, Claude3_5Haiku20241022, Claude3_5Haiku20241022Literal, Claude3_5Haiku20241022Options, type Claude3_5Haiku20241022OptionsType, Claude3_5Haiku20241022Schema, Claude3_5HaikuLatest, Claude3_5HaikuLatestLiteral, Claude3_5HaikuLatestOptions, type Claude3_5HaikuLatestOptionsType, Claude3_5HaikuLatestSchema, Claude3_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_5SonnetLatest, Claude3_5SonnetLatestLiteral, Claude3_5SonnetLatestOptions, type Claude3_5SonnetLatestOptionsType, Claude3_5SonnetLatestSchema, Claude3_7Sonnet20250219, Claude3_7Sonnet20250219Literal, Claude3_7Sonnet20250219Options, type Claude3_7Sonnet20250219OptionsType, Claude3_7Sonnet20250219Schema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, ProviderLiteral, Voyage3, Voyage3Lite, Voyage3LiteLiteral, Voyage3LiteOptions, type Voyage3LiteOptionsType, Voyage3LiteSchema, Voyage3Literal, Voyage3Options, type Voyage3OptionsType, Voyage3Schema, VoyageCode2, VoyageCode2Literal, VoyageCode2Options, type VoyageCode2OptionsType, VoyageCode2Schema, VoyageFinance2, VoyageFinance2Literal, VoyageFinance2Options, type VoyageFinance2OptionsType, VoyageFinance2Schema, VoyageLaw2, VoyageLaw2Literal, VoyageLaw2Options, type VoyageLaw2OptionsType, VoyageLaw2Schema, VoyageMultilingual2, VoyageMultilingual2Literal, VoyageMultilingual2Options, type VoyageMultilingual2OptionsType, VoyageMultilingual2Schema, encodingFormat, inputType, maxTokens, stop, temperature, toolChoice, topK, topP, truncation };
|