@adaline/anthropic 1.2.0 → 1.3.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 +48 -48
- package/dist/index.d.ts +48 -48
- package/dist/index.js +91 -91
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -629,12 +629,12 @@ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
|
|
|
629
629
|
getModelPricing(): ChatModelPriceType;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
declare const
|
|
633
|
-
declare const
|
|
632
|
+
declare const Claude4Opus20250514Literal = "claude-4-opus-20250514";
|
|
633
|
+
declare const Claude4Opus20250514Schema: {
|
|
634
634
|
description: string;
|
|
635
635
|
name: string;
|
|
636
636
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
637
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
637
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
638
638
|
maxInputTokens: number;
|
|
639
639
|
maxOutputTokens: number;
|
|
640
640
|
config: {
|
|
@@ -691,7 +691,7 @@ declare const Claude3_5Sonnet20240620Schema: {
|
|
|
691
691
|
};
|
|
692
692
|
maxReasoningTokens?: number | undefined;
|
|
693
693
|
};
|
|
694
|
-
declare const
|
|
694
|
+
declare const Claude4Opus20250514Options: z.ZodObject<{
|
|
695
695
|
modelName: z.ZodString;
|
|
696
696
|
apiKey: z.ZodString;
|
|
697
697
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -707,17 +707,17 @@ declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
|
|
|
707
707
|
completeChatUrl?: string | undefined;
|
|
708
708
|
streamChatUrl?: string | undefined;
|
|
709
709
|
}>;
|
|
710
|
-
type
|
|
711
|
-
declare class
|
|
712
|
-
constructor(options:
|
|
710
|
+
type Claude4Opus20250514OptionsType = z.infer<typeof Claude4Opus20250514Options>;
|
|
711
|
+
declare class Claude4Opus20250514 extends BaseChatModel {
|
|
712
|
+
constructor(options: Claude4Opus20250514OptionsType);
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
declare const
|
|
716
|
-
declare const
|
|
715
|
+
declare const Claude4Sonnet20250514Literal = "claude-4-sonnet-20250514";
|
|
716
|
+
declare const Claude4Sonnet20250514Schema: {
|
|
717
717
|
description: string;
|
|
718
718
|
name: string;
|
|
719
719
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
720
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
720
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
721
721
|
maxInputTokens: number;
|
|
722
722
|
maxOutputTokens: number;
|
|
723
723
|
config: {
|
|
@@ -774,7 +774,7 @@ declare const Claude3_5Sonnet20241022Schema: {
|
|
|
774
774
|
};
|
|
775
775
|
maxReasoningTokens?: number | undefined;
|
|
776
776
|
};
|
|
777
|
-
declare const
|
|
777
|
+
declare const Claude4Sonnet20250514Options: z.ZodObject<{
|
|
778
778
|
modelName: z.ZodString;
|
|
779
779
|
apiKey: z.ZodString;
|
|
780
780
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -790,13 +790,13 @@ declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
|
|
|
790
790
|
completeChatUrl?: string | undefined;
|
|
791
791
|
streamChatUrl?: string | undefined;
|
|
792
792
|
}>;
|
|
793
|
-
type
|
|
794
|
-
declare class
|
|
795
|
-
constructor(options:
|
|
793
|
+
type Claude4Sonnet20250514OptionsType = z.infer<typeof Claude4Sonnet20250514Options>;
|
|
794
|
+
declare class Claude4Sonnet20250514 extends BaseChatModel {
|
|
795
|
+
constructor(options: Claude4Sonnet20250514OptionsType);
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
declare const
|
|
799
|
-
declare const
|
|
798
|
+
declare const Claude3_5Sonnet20240620Literal = "claude-3-5-sonnet-20240620";
|
|
799
|
+
declare const Claude3_5Sonnet20240620Schema: {
|
|
800
800
|
description: string;
|
|
801
801
|
name: string;
|
|
802
802
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -857,7 +857,7 @@ declare const Claude3_5SonnetLatestSchema: {
|
|
|
857
857
|
};
|
|
858
858
|
maxReasoningTokens?: number | undefined;
|
|
859
859
|
};
|
|
860
|
-
declare const
|
|
860
|
+
declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
|
|
861
861
|
modelName: z.ZodString;
|
|
862
862
|
apiKey: z.ZodString;
|
|
863
863
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -873,17 +873,17 @@ declare const Claude3_5SonnetLatestOptions: z.ZodObject<{
|
|
|
873
873
|
completeChatUrl?: string | undefined;
|
|
874
874
|
streamChatUrl?: string | undefined;
|
|
875
875
|
}>;
|
|
876
|
-
type
|
|
877
|
-
declare class
|
|
878
|
-
constructor(options:
|
|
876
|
+
type Claude3_5Sonnet20240620OptionsType = z.infer<typeof Claude3_5Sonnet20240620Options>;
|
|
877
|
+
declare class Claude3_5Sonnet20240620 extends BaseChatModel {
|
|
878
|
+
constructor(options: Claude3_5Sonnet20240620OptionsType);
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
declare const
|
|
882
|
-
declare const
|
|
881
|
+
declare const Claude3_5Sonnet20241022Literal = "claude-3-5-sonnet-20241022";
|
|
882
|
+
declare const Claude3_5Sonnet20241022Schema: {
|
|
883
883
|
description: string;
|
|
884
884
|
name: string;
|
|
885
885
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
886
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response"
|
|
886
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
887
887
|
maxInputTokens: number;
|
|
888
888
|
maxOutputTokens: number;
|
|
889
889
|
config: {
|
|
@@ -940,7 +940,7 @@ declare const Claude3_7Sonnet20250219Schema: {
|
|
|
940
940
|
};
|
|
941
941
|
maxReasoningTokens?: number | undefined;
|
|
942
942
|
};
|
|
943
|
-
declare const
|
|
943
|
+
declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
|
|
944
944
|
modelName: z.ZodString;
|
|
945
945
|
apiKey: z.ZodString;
|
|
946
946
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -956,18 +956,17 @@ declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
|
|
|
956
956
|
completeChatUrl?: string | undefined;
|
|
957
957
|
streamChatUrl?: string | undefined;
|
|
958
958
|
}>;
|
|
959
|
-
type
|
|
960
|
-
declare class
|
|
961
|
-
constructor(options:
|
|
962
|
-
getDefaultHeaders(): HeadersType;
|
|
959
|
+
type Claude3_5Sonnet20241022OptionsType = z.infer<typeof Claude3_5Sonnet20241022Options>;
|
|
960
|
+
declare class Claude3_5Sonnet20241022 extends BaseChatModel {
|
|
961
|
+
constructor(options: Claude3_5Sonnet20241022OptionsType);
|
|
963
962
|
}
|
|
964
963
|
|
|
965
|
-
declare const
|
|
966
|
-
declare const
|
|
964
|
+
declare const Claude3_7Sonnet20250219Literal = "claude-3-7-sonnet-20250219";
|
|
965
|
+
declare const Claude3_7Sonnet20250219Schema: {
|
|
967
966
|
description: string;
|
|
968
967
|
name: string;
|
|
969
968
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
970
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
969
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
971
970
|
maxInputTokens: number;
|
|
972
971
|
maxOutputTokens: number;
|
|
973
972
|
config: {
|
|
@@ -1024,7 +1023,7 @@ declare const Claude3Haiku20240307Schema: {
|
|
|
1024
1023
|
};
|
|
1025
1024
|
maxReasoningTokens?: number | undefined;
|
|
1026
1025
|
};
|
|
1027
|
-
declare const
|
|
1026
|
+
declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
|
|
1028
1027
|
modelName: z.ZodString;
|
|
1029
1028
|
apiKey: z.ZodString;
|
|
1030
1029
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1040,13 +1039,14 @@ declare const Claude3Haiku20240307Options: z.ZodObject<{
|
|
|
1040
1039
|
completeChatUrl?: string | undefined;
|
|
1041
1040
|
streamChatUrl?: string | undefined;
|
|
1042
1041
|
}>;
|
|
1043
|
-
type
|
|
1044
|
-
declare class
|
|
1045
|
-
constructor(options:
|
|
1042
|
+
type Claude3_7Sonnet20250219OptionsType = z.infer<typeof Claude3_7Sonnet20250219Options>;
|
|
1043
|
+
declare class Claude3_7Sonnet20250219 extends BaseChatModel {
|
|
1044
|
+
constructor(options: Claude3_7Sonnet20250219OptionsType);
|
|
1045
|
+
getDefaultHeaders(): HeadersType;
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
declare const
|
|
1049
|
-
declare const
|
|
1048
|
+
declare const Claude3Haiku20240307Literal = "claude-3-haiku-20240307";
|
|
1049
|
+
declare const Claude3Haiku20240307Schema: {
|
|
1050
1050
|
description: string;
|
|
1051
1051
|
name: string;
|
|
1052
1052
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -1107,7 +1107,7 @@ declare const Claude3_5Haiku20241022Schema: {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
maxReasoningTokens?: number | undefined;
|
|
1109
1109
|
};
|
|
1110
|
-
declare const
|
|
1110
|
+
declare const Claude3Haiku20240307Options: z.ZodObject<{
|
|
1111
1111
|
modelName: z.ZodString;
|
|
1112
1112
|
apiKey: z.ZodString;
|
|
1113
1113
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1123,13 +1123,13 @@ declare const Claude3_5Haiku20241022Options: z.ZodObject<{
|
|
|
1123
1123
|
completeChatUrl?: string | undefined;
|
|
1124
1124
|
streamChatUrl?: string | undefined;
|
|
1125
1125
|
}>;
|
|
1126
|
-
type
|
|
1127
|
-
declare class
|
|
1128
|
-
constructor(options:
|
|
1126
|
+
type Claude3Haiku20240307OptionsType = z.infer<typeof Claude3Haiku20240307Options>;
|
|
1127
|
+
declare class Claude3Haiku20240307 extends BaseChatModel {
|
|
1128
|
+
constructor(options: Claude3Haiku20240307OptionsType);
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
|
-
declare const
|
|
1132
|
-
declare const
|
|
1131
|
+
declare const Claude3_5Haiku20241022Literal = "claude-3-5-haiku-20241022";
|
|
1132
|
+
declare const Claude3_5Haiku20241022Schema: {
|
|
1133
1133
|
description: string;
|
|
1134
1134
|
name: string;
|
|
1135
1135
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -1190,7 +1190,7 @@ declare const Claude3_5HaikuLatestSchema: {
|
|
|
1190
1190
|
};
|
|
1191
1191
|
maxReasoningTokens?: number | undefined;
|
|
1192
1192
|
};
|
|
1193
|
-
declare const
|
|
1193
|
+
declare const Claude3_5Haiku20241022Options: z.ZodObject<{
|
|
1194
1194
|
modelName: z.ZodString;
|
|
1195
1195
|
apiKey: z.ZodString;
|
|
1196
1196
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1206,9 +1206,9 @@ declare const Claude3_5HaikuLatestOptions: z.ZodObject<{
|
|
|
1206
1206
|
completeChatUrl?: string | undefined;
|
|
1207
1207
|
streamChatUrl?: string | undefined;
|
|
1208
1208
|
}>;
|
|
1209
|
-
type
|
|
1210
|
-
declare class
|
|
1211
|
-
constructor(options:
|
|
1209
|
+
type Claude3_5Haiku20241022OptionsType = z.infer<typeof Claude3_5Haiku20241022Options>;
|
|
1210
|
+
declare class Claude3_5Haiku20241022 extends BaseChatModel {
|
|
1211
|
+
constructor(options: Claude3_5Haiku20241022OptionsType);
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
declare const Claude3Opus20240229Literal = "claude-3-opus-20240229";
|
|
@@ -3656,4 +3656,4 @@ declare class Anthropic<C extends BaseChatModelOptionsType, E extends BaseEmbedd
|
|
|
3656
3656
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
3657
3657
|
}
|
|
3658
3658
|
|
|
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,
|
|
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_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_7Sonnet20250219, Claude3_7Sonnet20250219Literal, Claude3_7Sonnet20250219Options, type Claude3_7Sonnet20250219OptionsType, Claude3_7Sonnet20250219Schema, Claude4Opus20250514, Claude4Opus20250514Literal, Claude4Opus20250514Options, type Claude4Opus20250514OptionsType, Claude4Opus20250514Schema, Claude4Sonnet20250514, Claude4Sonnet20250514Literal, Claude4Sonnet20250514Options, type Claude4Sonnet20250514OptionsType, Claude4Sonnet20250514Schema, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -629,12 +629,12 @@ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
|
|
|
629
629
|
getModelPricing(): ChatModelPriceType;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
declare const
|
|
633
|
-
declare const
|
|
632
|
+
declare const Claude4Opus20250514Literal = "claude-4-opus-20250514";
|
|
633
|
+
declare const Claude4Opus20250514Schema: {
|
|
634
634
|
description: string;
|
|
635
635
|
name: string;
|
|
636
636
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
637
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
637
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
638
638
|
maxInputTokens: number;
|
|
639
639
|
maxOutputTokens: number;
|
|
640
640
|
config: {
|
|
@@ -691,7 +691,7 @@ declare const Claude3_5Sonnet20240620Schema: {
|
|
|
691
691
|
};
|
|
692
692
|
maxReasoningTokens?: number | undefined;
|
|
693
693
|
};
|
|
694
|
-
declare const
|
|
694
|
+
declare const Claude4Opus20250514Options: z.ZodObject<{
|
|
695
695
|
modelName: z.ZodString;
|
|
696
696
|
apiKey: z.ZodString;
|
|
697
697
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -707,17 +707,17 @@ declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
|
|
|
707
707
|
completeChatUrl?: string | undefined;
|
|
708
708
|
streamChatUrl?: string | undefined;
|
|
709
709
|
}>;
|
|
710
|
-
type
|
|
711
|
-
declare class
|
|
712
|
-
constructor(options:
|
|
710
|
+
type Claude4Opus20250514OptionsType = z.infer<typeof Claude4Opus20250514Options>;
|
|
711
|
+
declare class Claude4Opus20250514 extends BaseChatModel {
|
|
712
|
+
constructor(options: Claude4Opus20250514OptionsType);
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
declare const
|
|
716
|
-
declare const
|
|
715
|
+
declare const Claude4Sonnet20250514Literal = "claude-4-sonnet-20250514";
|
|
716
|
+
declare const Claude4Sonnet20250514Schema: {
|
|
717
717
|
description: string;
|
|
718
718
|
name: string;
|
|
719
719
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
720
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
720
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
721
721
|
maxInputTokens: number;
|
|
722
722
|
maxOutputTokens: number;
|
|
723
723
|
config: {
|
|
@@ -774,7 +774,7 @@ declare const Claude3_5Sonnet20241022Schema: {
|
|
|
774
774
|
};
|
|
775
775
|
maxReasoningTokens?: number | undefined;
|
|
776
776
|
};
|
|
777
|
-
declare const
|
|
777
|
+
declare const Claude4Sonnet20250514Options: z.ZodObject<{
|
|
778
778
|
modelName: z.ZodString;
|
|
779
779
|
apiKey: z.ZodString;
|
|
780
780
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -790,13 +790,13 @@ declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
|
|
|
790
790
|
completeChatUrl?: string | undefined;
|
|
791
791
|
streamChatUrl?: string | undefined;
|
|
792
792
|
}>;
|
|
793
|
-
type
|
|
794
|
-
declare class
|
|
795
|
-
constructor(options:
|
|
793
|
+
type Claude4Sonnet20250514OptionsType = z.infer<typeof Claude4Sonnet20250514Options>;
|
|
794
|
+
declare class Claude4Sonnet20250514 extends BaseChatModel {
|
|
795
|
+
constructor(options: Claude4Sonnet20250514OptionsType);
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
declare const
|
|
799
|
-
declare const
|
|
798
|
+
declare const Claude3_5Sonnet20240620Literal = "claude-3-5-sonnet-20240620";
|
|
799
|
+
declare const Claude3_5Sonnet20240620Schema: {
|
|
800
800
|
description: string;
|
|
801
801
|
name: string;
|
|
802
802
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -857,7 +857,7 @@ declare const Claude3_5SonnetLatestSchema: {
|
|
|
857
857
|
};
|
|
858
858
|
maxReasoningTokens?: number | undefined;
|
|
859
859
|
};
|
|
860
|
-
declare const
|
|
860
|
+
declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
|
|
861
861
|
modelName: z.ZodString;
|
|
862
862
|
apiKey: z.ZodString;
|
|
863
863
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -873,17 +873,17 @@ declare const Claude3_5SonnetLatestOptions: z.ZodObject<{
|
|
|
873
873
|
completeChatUrl?: string | undefined;
|
|
874
874
|
streamChatUrl?: string | undefined;
|
|
875
875
|
}>;
|
|
876
|
-
type
|
|
877
|
-
declare class
|
|
878
|
-
constructor(options:
|
|
876
|
+
type Claude3_5Sonnet20240620OptionsType = z.infer<typeof Claude3_5Sonnet20240620Options>;
|
|
877
|
+
declare class Claude3_5Sonnet20240620 extends BaseChatModel {
|
|
878
|
+
constructor(options: Claude3_5Sonnet20240620OptionsType);
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
declare const
|
|
882
|
-
declare const
|
|
881
|
+
declare const Claude3_5Sonnet20241022Literal = "claude-3-5-sonnet-20241022";
|
|
882
|
+
declare const Claude3_5Sonnet20241022Schema: {
|
|
883
883
|
description: string;
|
|
884
884
|
name: string;
|
|
885
885
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
886
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response"
|
|
886
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
887
887
|
maxInputTokens: number;
|
|
888
888
|
maxOutputTokens: number;
|
|
889
889
|
config: {
|
|
@@ -940,7 +940,7 @@ declare const Claude3_7Sonnet20250219Schema: {
|
|
|
940
940
|
};
|
|
941
941
|
maxReasoningTokens?: number | undefined;
|
|
942
942
|
};
|
|
943
|
-
declare const
|
|
943
|
+
declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
|
|
944
944
|
modelName: z.ZodString;
|
|
945
945
|
apiKey: z.ZodString;
|
|
946
946
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -956,18 +956,17 @@ declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
|
|
|
956
956
|
completeChatUrl?: string | undefined;
|
|
957
957
|
streamChatUrl?: string | undefined;
|
|
958
958
|
}>;
|
|
959
|
-
type
|
|
960
|
-
declare class
|
|
961
|
-
constructor(options:
|
|
962
|
-
getDefaultHeaders(): HeadersType;
|
|
959
|
+
type Claude3_5Sonnet20241022OptionsType = z.infer<typeof Claude3_5Sonnet20241022Options>;
|
|
960
|
+
declare class Claude3_5Sonnet20241022 extends BaseChatModel {
|
|
961
|
+
constructor(options: Claude3_5Sonnet20241022OptionsType);
|
|
963
962
|
}
|
|
964
963
|
|
|
965
|
-
declare const
|
|
966
|
-
declare const
|
|
964
|
+
declare const Claude3_7Sonnet20250219Literal = "claude-3-7-sonnet-20250219";
|
|
965
|
+
declare const Claude3_7Sonnet20250219Schema: {
|
|
967
966
|
description: string;
|
|
968
967
|
name: string;
|
|
969
968
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
970
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
969
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
971
970
|
maxInputTokens: number;
|
|
972
971
|
maxOutputTokens: number;
|
|
973
972
|
config: {
|
|
@@ -1024,7 +1023,7 @@ declare const Claude3Haiku20240307Schema: {
|
|
|
1024
1023
|
};
|
|
1025
1024
|
maxReasoningTokens?: number | undefined;
|
|
1026
1025
|
};
|
|
1027
|
-
declare const
|
|
1026
|
+
declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
|
|
1028
1027
|
modelName: z.ZodString;
|
|
1029
1028
|
apiKey: z.ZodString;
|
|
1030
1029
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1040,13 +1039,14 @@ declare const Claude3Haiku20240307Options: z.ZodObject<{
|
|
|
1040
1039
|
completeChatUrl?: string | undefined;
|
|
1041
1040
|
streamChatUrl?: string | undefined;
|
|
1042
1041
|
}>;
|
|
1043
|
-
type
|
|
1044
|
-
declare class
|
|
1045
|
-
constructor(options:
|
|
1042
|
+
type Claude3_7Sonnet20250219OptionsType = z.infer<typeof Claude3_7Sonnet20250219Options>;
|
|
1043
|
+
declare class Claude3_7Sonnet20250219 extends BaseChatModel {
|
|
1044
|
+
constructor(options: Claude3_7Sonnet20250219OptionsType);
|
|
1045
|
+
getDefaultHeaders(): HeadersType;
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
declare const
|
|
1049
|
-
declare const
|
|
1048
|
+
declare const Claude3Haiku20240307Literal = "claude-3-haiku-20240307";
|
|
1049
|
+
declare const Claude3Haiku20240307Schema: {
|
|
1050
1050
|
description: string;
|
|
1051
1051
|
name: string;
|
|
1052
1052
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -1107,7 +1107,7 @@ declare const Claude3_5Haiku20241022Schema: {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
maxReasoningTokens?: number | undefined;
|
|
1109
1109
|
};
|
|
1110
|
-
declare const
|
|
1110
|
+
declare const Claude3Haiku20240307Options: z.ZodObject<{
|
|
1111
1111
|
modelName: z.ZodString;
|
|
1112
1112
|
apiKey: z.ZodString;
|
|
1113
1113
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1123,13 +1123,13 @@ declare const Claude3_5Haiku20241022Options: z.ZodObject<{
|
|
|
1123
1123
|
completeChatUrl?: string | undefined;
|
|
1124
1124
|
streamChatUrl?: string | undefined;
|
|
1125
1125
|
}>;
|
|
1126
|
-
type
|
|
1127
|
-
declare class
|
|
1128
|
-
constructor(options:
|
|
1126
|
+
type Claude3Haiku20240307OptionsType = z.infer<typeof Claude3Haiku20240307Options>;
|
|
1127
|
+
declare class Claude3Haiku20240307 extends BaseChatModel {
|
|
1128
|
+
constructor(options: Claude3Haiku20240307OptionsType);
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
|
-
declare const
|
|
1132
|
-
declare const
|
|
1131
|
+
declare const Claude3_5Haiku20241022Literal = "claude-3-5-haiku-20241022";
|
|
1132
|
+
declare const Claude3_5Haiku20241022Schema: {
|
|
1133
1133
|
description: string;
|
|
1134
1134
|
name: string;
|
|
1135
1135
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -1190,7 +1190,7 @@ declare const Claude3_5HaikuLatestSchema: {
|
|
|
1190
1190
|
};
|
|
1191
1191
|
maxReasoningTokens?: number | undefined;
|
|
1192
1192
|
};
|
|
1193
|
-
declare const
|
|
1193
|
+
declare const Claude3_5Haiku20241022Options: z.ZodObject<{
|
|
1194
1194
|
modelName: z.ZodString;
|
|
1195
1195
|
apiKey: z.ZodString;
|
|
1196
1196
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1206,9 +1206,9 @@ declare const Claude3_5HaikuLatestOptions: z.ZodObject<{
|
|
|
1206
1206
|
completeChatUrl?: string | undefined;
|
|
1207
1207
|
streamChatUrl?: string | undefined;
|
|
1208
1208
|
}>;
|
|
1209
|
-
type
|
|
1210
|
-
declare class
|
|
1211
|
-
constructor(options:
|
|
1209
|
+
type Claude3_5Haiku20241022OptionsType = z.infer<typeof Claude3_5Haiku20241022Options>;
|
|
1210
|
+
declare class Claude3_5Haiku20241022 extends BaseChatModel {
|
|
1211
|
+
constructor(options: Claude3_5Haiku20241022OptionsType);
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
declare const Claude3Opus20240229Literal = "claude-3-opus-20240229";
|
|
@@ -3656,4 +3656,4 @@ declare class Anthropic<C extends BaseChatModelOptionsType, E extends BaseEmbedd
|
|
|
3656
3656
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
3657
3657
|
}
|
|
3658
3658
|
|
|
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,
|
|
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_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_7Sonnet20250219, Claude3_7Sonnet20250219Literal, Claude3_7Sonnet20250219Options, type Claude3_7Sonnet20250219OptionsType, Claude3_7Sonnet20250219Schema, Claude4Opus20250514, Claude4Opus20250514Literal, Claude4Opus20250514Options, type Claude4Opus20250514OptionsType, Claude4Opus20250514Schema, Claude4Sonnet20250514, Claude4Sonnet20250514Literal, Claude4Sonnet20250514Options, type Claude4Sonnet20250514OptionsType, Claude4Sonnet20250514Schema, 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 };
|