@adaline/bedrock 1.3.0 → 1.5.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 +242 -1
- package/dist/index.d.ts +242 -1
- package/dist/index.js +54 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -494,6 +494,87 @@ declare class BedrockClaude3_5Sonnet20241022 extends BaseChatModelAnthropic {
|
|
|
494
494
|
constructor(options: BedrockClaude3_5Sonnet20241022OptionsType);
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
+
declare const BedrockClaude3_7Sonnet20250219Literal = "anthropic.claude-3-7-sonnet-20250219-v1:0";
|
|
498
|
+
declare const BedrockClaude3_7Sonnet20250219Schema: {
|
|
499
|
+
description: string;
|
|
500
|
+
name: string;
|
|
501
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
502
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
503
|
+
maxInputTokens: number;
|
|
504
|
+
maxOutputTokens: number;
|
|
505
|
+
config: {
|
|
506
|
+
def: Record<string, {
|
|
507
|
+
type: "multi-string";
|
|
508
|
+
param: string;
|
|
509
|
+
title: string;
|
|
510
|
+
description: string;
|
|
511
|
+
max: number;
|
|
512
|
+
} | {
|
|
513
|
+
type: "object-schema";
|
|
514
|
+
param: string;
|
|
515
|
+
title: string;
|
|
516
|
+
description: string;
|
|
517
|
+
objectSchema?: any;
|
|
518
|
+
} | {
|
|
519
|
+
type: "range";
|
|
520
|
+
param: string;
|
|
521
|
+
title: string;
|
|
522
|
+
description: string;
|
|
523
|
+
max: number;
|
|
524
|
+
default: number;
|
|
525
|
+
min: number;
|
|
526
|
+
step: number;
|
|
527
|
+
} | {
|
|
528
|
+
type: "select-boolean";
|
|
529
|
+
param: string;
|
|
530
|
+
title: string;
|
|
531
|
+
description: string;
|
|
532
|
+
default: boolean | null;
|
|
533
|
+
} | {
|
|
534
|
+
type: "select-string";
|
|
535
|
+
param: string;
|
|
536
|
+
title: string;
|
|
537
|
+
description: string;
|
|
538
|
+
default: string;
|
|
539
|
+
choices: string[];
|
|
540
|
+
}>;
|
|
541
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
542
|
+
};
|
|
543
|
+
price: {
|
|
544
|
+
modelName: string;
|
|
545
|
+
currency: string;
|
|
546
|
+
tokenRanges: {
|
|
547
|
+
minTokens: number;
|
|
548
|
+
prices: {
|
|
549
|
+
base: {
|
|
550
|
+
inputPricePerMillion: number;
|
|
551
|
+
outputPricePerMillion: number;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
maxTokens?: number | null | undefined;
|
|
555
|
+
}[];
|
|
556
|
+
};
|
|
557
|
+
maxReasoningTokens?: number | undefined;
|
|
558
|
+
};
|
|
559
|
+
declare const BedrockClaude3_7Sonnet20250219Options: z.ZodObject<{
|
|
560
|
+
modelName: z.ZodString;
|
|
561
|
+
awsAccessKeyId: z.ZodString;
|
|
562
|
+
awsSecretAccessKey: z.ZodString;
|
|
563
|
+
}, "strip", z.ZodTypeAny, {
|
|
564
|
+
modelName: string;
|
|
565
|
+
awsAccessKeyId: string;
|
|
566
|
+
awsSecretAccessKey: string;
|
|
567
|
+
}, {
|
|
568
|
+
modelName: string;
|
|
569
|
+
awsAccessKeyId: string;
|
|
570
|
+
awsSecretAccessKey: string;
|
|
571
|
+
}>;
|
|
572
|
+
type BedrockClaude3_7Sonnet20250219OptionsType = z.infer<typeof BedrockClaude3_7Sonnet20250219Options>;
|
|
573
|
+
declare class BedrockClaude3_7Sonnet20250219 extends BaseChatModelAnthropic {
|
|
574
|
+
constructor(options: BedrockClaude3_7Sonnet20250219OptionsType);
|
|
575
|
+
getDefaultHeaders(): HeadersType;
|
|
576
|
+
}
|
|
577
|
+
|
|
497
578
|
declare const BedrockClaude3Haiku20240307Literal = "anthropic.claude-3-haiku-20240307-v1:0";
|
|
498
579
|
declare const BedrockClaude3Haiku20240307Schema: {
|
|
499
580
|
description: string;
|
|
@@ -734,6 +815,166 @@ declare class BedrockClaude3Sonnet20240229 extends BaseChatModelAnthropic {
|
|
|
734
815
|
constructor(options: BedrockClaude3Sonnet20240229OptionsType);
|
|
735
816
|
}
|
|
736
817
|
|
|
818
|
+
declare const BedrockClaude4Opus20250514Literal = "anthropic.claude-4-opus-20250514-v1:0";
|
|
819
|
+
declare const BedrockClaude4Opus20250514Schema: {
|
|
820
|
+
description: string;
|
|
821
|
+
name: string;
|
|
822
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
823
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
824
|
+
maxInputTokens: number;
|
|
825
|
+
maxOutputTokens: number;
|
|
826
|
+
config: {
|
|
827
|
+
def: Record<string, {
|
|
828
|
+
type: "multi-string";
|
|
829
|
+
param: string;
|
|
830
|
+
title: string;
|
|
831
|
+
description: string;
|
|
832
|
+
max: number;
|
|
833
|
+
} | {
|
|
834
|
+
type: "object-schema";
|
|
835
|
+
param: string;
|
|
836
|
+
title: string;
|
|
837
|
+
description: string;
|
|
838
|
+
objectSchema?: any;
|
|
839
|
+
} | {
|
|
840
|
+
type: "range";
|
|
841
|
+
param: string;
|
|
842
|
+
title: string;
|
|
843
|
+
description: string;
|
|
844
|
+
max: number;
|
|
845
|
+
default: number;
|
|
846
|
+
min: number;
|
|
847
|
+
step: number;
|
|
848
|
+
} | {
|
|
849
|
+
type: "select-boolean";
|
|
850
|
+
param: string;
|
|
851
|
+
title: string;
|
|
852
|
+
description: string;
|
|
853
|
+
default: boolean | null;
|
|
854
|
+
} | {
|
|
855
|
+
type: "select-string";
|
|
856
|
+
param: string;
|
|
857
|
+
title: string;
|
|
858
|
+
description: string;
|
|
859
|
+
default: string;
|
|
860
|
+
choices: string[];
|
|
861
|
+
}>;
|
|
862
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
863
|
+
};
|
|
864
|
+
price: {
|
|
865
|
+
modelName: string;
|
|
866
|
+
currency: string;
|
|
867
|
+
tokenRanges: {
|
|
868
|
+
minTokens: number;
|
|
869
|
+
prices: {
|
|
870
|
+
base: {
|
|
871
|
+
inputPricePerMillion: number;
|
|
872
|
+
outputPricePerMillion: number;
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
maxTokens?: number | null | undefined;
|
|
876
|
+
}[];
|
|
877
|
+
};
|
|
878
|
+
maxReasoningTokens?: number | undefined;
|
|
879
|
+
};
|
|
880
|
+
declare const BedrockClaude4Opus20250514Options: z.ZodObject<{
|
|
881
|
+
modelName: z.ZodString;
|
|
882
|
+
awsAccessKeyId: z.ZodString;
|
|
883
|
+
awsSecretAccessKey: z.ZodString;
|
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
|
+
modelName: string;
|
|
886
|
+
awsAccessKeyId: string;
|
|
887
|
+
awsSecretAccessKey: string;
|
|
888
|
+
}, {
|
|
889
|
+
modelName: string;
|
|
890
|
+
awsAccessKeyId: string;
|
|
891
|
+
awsSecretAccessKey: string;
|
|
892
|
+
}>;
|
|
893
|
+
type BedrockClaude4Opus20250514OptionsType = z.infer<typeof BedrockClaude4Opus20250514Options>;
|
|
894
|
+
declare class BedrockClaude4Opus20250514 extends BaseChatModelAnthropic {
|
|
895
|
+
constructor(options: BedrockClaude4Opus20250514OptionsType);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
declare const BedrockClaude4Sonnet20250514Literal = "anthropic.claude-4-sonnet-20250514-v1:0";
|
|
899
|
+
declare const BedrockClaude4Sonnet20250514Schema: {
|
|
900
|
+
description: string;
|
|
901
|
+
name: string;
|
|
902
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
903
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
904
|
+
maxInputTokens: number;
|
|
905
|
+
maxOutputTokens: number;
|
|
906
|
+
config: {
|
|
907
|
+
def: Record<string, {
|
|
908
|
+
type: "multi-string";
|
|
909
|
+
param: string;
|
|
910
|
+
title: string;
|
|
911
|
+
description: string;
|
|
912
|
+
max: number;
|
|
913
|
+
} | {
|
|
914
|
+
type: "object-schema";
|
|
915
|
+
param: string;
|
|
916
|
+
title: string;
|
|
917
|
+
description: string;
|
|
918
|
+
objectSchema?: any;
|
|
919
|
+
} | {
|
|
920
|
+
type: "range";
|
|
921
|
+
param: string;
|
|
922
|
+
title: string;
|
|
923
|
+
description: string;
|
|
924
|
+
max: number;
|
|
925
|
+
default: number;
|
|
926
|
+
min: number;
|
|
927
|
+
step: number;
|
|
928
|
+
} | {
|
|
929
|
+
type: "select-boolean";
|
|
930
|
+
param: string;
|
|
931
|
+
title: string;
|
|
932
|
+
description: string;
|
|
933
|
+
default: boolean | null;
|
|
934
|
+
} | {
|
|
935
|
+
type: "select-string";
|
|
936
|
+
param: string;
|
|
937
|
+
title: string;
|
|
938
|
+
description: string;
|
|
939
|
+
default: string;
|
|
940
|
+
choices: string[];
|
|
941
|
+
}>;
|
|
942
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
943
|
+
};
|
|
944
|
+
price: {
|
|
945
|
+
modelName: string;
|
|
946
|
+
currency: string;
|
|
947
|
+
tokenRanges: {
|
|
948
|
+
minTokens: number;
|
|
949
|
+
prices: {
|
|
950
|
+
base: {
|
|
951
|
+
inputPricePerMillion: number;
|
|
952
|
+
outputPricePerMillion: number;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
maxTokens?: number | null | undefined;
|
|
956
|
+
}[];
|
|
957
|
+
};
|
|
958
|
+
maxReasoningTokens?: number | undefined;
|
|
959
|
+
};
|
|
960
|
+
declare const BedrockClaude4Sonnet20250514Options: z.ZodObject<{
|
|
961
|
+
modelName: z.ZodString;
|
|
962
|
+
awsAccessKeyId: z.ZodString;
|
|
963
|
+
awsSecretAccessKey: z.ZodString;
|
|
964
|
+
}, "strip", z.ZodTypeAny, {
|
|
965
|
+
modelName: string;
|
|
966
|
+
awsAccessKeyId: string;
|
|
967
|
+
awsSecretAccessKey: string;
|
|
968
|
+
}, {
|
|
969
|
+
modelName: string;
|
|
970
|
+
awsAccessKeyId: string;
|
|
971
|
+
awsSecretAccessKey: string;
|
|
972
|
+
}>;
|
|
973
|
+
type BedrockClaude4Sonnet20250514OptionsType = z.infer<typeof BedrockClaude4Sonnet20250514Options>;
|
|
974
|
+
declare class BedrockClaude4Sonnet20250514 extends BaseChatModelAnthropic {
|
|
975
|
+
constructor(options: BedrockClaude4Sonnet20250514OptionsType);
|
|
976
|
+
}
|
|
977
|
+
|
|
737
978
|
declare class Bedrock<C extends BaseChatModelOptionsType, E extends Record<string, any> = Record<string, any>> implements ProviderV1<C, E> {
|
|
738
979
|
readonly version: "v1";
|
|
739
980
|
readonly name = "bedrock";
|
|
@@ -750,4 +991,4 @@ declare class Bedrock<C extends BaseChatModelOptionsType, E extends Record<strin
|
|
|
750
991
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
751
992
|
}
|
|
752
993
|
|
|
753
|
-
export { BaseChatModelAnthropic, BaseChatModelOptions, type BaseChatModelOptionsType, Bedrock, BedrockAnthropicChatModelBaseConfigDef, BedrockAnthropicChatModelBaseConfigSchema, BedrockAnthropicChatModelConfigs, BedrockClaude3Haiku20240307, BedrockClaude3Haiku20240307Literal, BedrockClaude3Haiku20240307Options, type BedrockClaude3Haiku20240307OptionsType, BedrockClaude3Haiku20240307Schema, BedrockClaude3Opus20240229, BedrockClaude3Opus20240229Literal, BedrockClaude3Opus20240229Options, type BedrockClaude3Opus20240229OptionsType, BedrockClaude3Opus20240229Schema, BedrockClaude3Sonnet20240229, BedrockClaude3Sonnet20240229Literal, BedrockClaude3Sonnet20240229Options, type BedrockClaude3Sonnet20240229OptionsType, BedrockClaude3Sonnet20240229Schema, BedrockClaude3_5Haiku20241022, BedrockClaude3_5Haiku20241022Literal, BedrockClaude3_5Haiku20241022Options, type BedrockClaude3_5Haiku20241022OptionsType, BedrockClaude3_5Haiku20241022Schema, BedrockClaude3_5Sonnet20240620, BedrockClaude3_5Sonnet20240620Literal, BedrockClaude3_5Sonnet20240620Options, type BedrockClaude3_5Sonnet20240620OptionsType, BedrockClaude3_5Sonnet20240620Schema, BedrockClaude3_5Sonnet20241022, BedrockClaude3_5Sonnet20241022Literal, BedrockClaude3_5Sonnet20241022Options, type BedrockClaude3_5Sonnet20241022OptionsType, BedrockClaude3_5Sonnet20241022Schema, awsRegionChoice };
|
|
994
|
+
export { BaseChatModelAnthropic, BaseChatModelOptions, type BaseChatModelOptionsType, Bedrock, BedrockAnthropicChatModelBaseConfigDef, BedrockAnthropicChatModelBaseConfigSchema, BedrockAnthropicChatModelConfigs, BedrockClaude3Haiku20240307, BedrockClaude3Haiku20240307Literal, BedrockClaude3Haiku20240307Options, type BedrockClaude3Haiku20240307OptionsType, BedrockClaude3Haiku20240307Schema, BedrockClaude3Opus20240229, BedrockClaude3Opus20240229Literal, BedrockClaude3Opus20240229Options, type BedrockClaude3Opus20240229OptionsType, BedrockClaude3Opus20240229Schema, BedrockClaude3Sonnet20240229, BedrockClaude3Sonnet20240229Literal, BedrockClaude3Sonnet20240229Options, type BedrockClaude3Sonnet20240229OptionsType, BedrockClaude3Sonnet20240229Schema, BedrockClaude3_5Haiku20241022, BedrockClaude3_5Haiku20241022Literal, BedrockClaude3_5Haiku20241022Options, type BedrockClaude3_5Haiku20241022OptionsType, BedrockClaude3_5Haiku20241022Schema, BedrockClaude3_5Sonnet20240620, BedrockClaude3_5Sonnet20240620Literal, BedrockClaude3_5Sonnet20240620Options, type BedrockClaude3_5Sonnet20240620OptionsType, BedrockClaude3_5Sonnet20240620Schema, BedrockClaude3_5Sonnet20241022, BedrockClaude3_5Sonnet20241022Literal, BedrockClaude3_5Sonnet20241022Options, type BedrockClaude3_5Sonnet20241022OptionsType, BedrockClaude3_5Sonnet20241022Schema, BedrockClaude3_7Sonnet20250219, BedrockClaude3_7Sonnet20250219Literal, BedrockClaude3_7Sonnet20250219Options, type BedrockClaude3_7Sonnet20250219OptionsType, BedrockClaude3_7Sonnet20250219Schema, BedrockClaude4Opus20250514, BedrockClaude4Opus20250514Literal, BedrockClaude4Opus20250514Options, type BedrockClaude4Opus20250514OptionsType, BedrockClaude4Opus20250514Schema, BedrockClaude4Sonnet20250514, BedrockClaude4Sonnet20250514Literal, BedrockClaude4Sonnet20250514Options, type BedrockClaude4Sonnet20250514OptionsType, BedrockClaude4Sonnet20250514Schema, awsRegionChoice };
|
package/dist/index.d.ts
CHANGED
|
@@ -494,6 +494,87 @@ declare class BedrockClaude3_5Sonnet20241022 extends BaseChatModelAnthropic {
|
|
|
494
494
|
constructor(options: BedrockClaude3_5Sonnet20241022OptionsType);
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
+
declare const BedrockClaude3_7Sonnet20250219Literal = "anthropic.claude-3-7-sonnet-20250219-v1:0";
|
|
498
|
+
declare const BedrockClaude3_7Sonnet20250219Schema: {
|
|
499
|
+
description: string;
|
|
500
|
+
name: string;
|
|
501
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
502
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
503
|
+
maxInputTokens: number;
|
|
504
|
+
maxOutputTokens: number;
|
|
505
|
+
config: {
|
|
506
|
+
def: Record<string, {
|
|
507
|
+
type: "multi-string";
|
|
508
|
+
param: string;
|
|
509
|
+
title: string;
|
|
510
|
+
description: string;
|
|
511
|
+
max: number;
|
|
512
|
+
} | {
|
|
513
|
+
type: "object-schema";
|
|
514
|
+
param: string;
|
|
515
|
+
title: string;
|
|
516
|
+
description: string;
|
|
517
|
+
objectSchema?: any;
|
|
518
|
+
} | {
|
|
519
|
+
type: "range";
|
|
520
|
+
param: string;
|
|
521
|
+
title: string;
|
|
522
|
+
description: string;
|
|
523
|
+
max: number;
|
|
524
|
+
default: number;
|
|
525
|
+
min: number;
|
|
526
|
+
step: number;
|
|
527
|
+
} | {
|
|
528
|
+
type: "select-boolean";
|
|
529
|
+
param: string;
|
|
530
|
+
title: string;
|
|
531
|
+
description: string;
|
|
532
|
+
default: boolean | null;
|
|
533
|
+
} | {
|
|
534
|
+
type: "select-string";
|
|
535
|
+
param: string;
|
|
536
|
+
title: string;
|
|
537
|
+
description: string;
|
|
538
|
+
default: string;
|
|
539
|
+
choices: string[];
|
|
540
|
+
}>;
|
|
541
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
542
|
+
};
|
|
543
|
+
price: {
|
|
544
|
+
modelName: string;
|
|
545
|
+
currency: string;
|
|
546
|
+
tokenRanges: {
|
|
547
|
+
minTokens: number;
|
|
548
|
+
prices: {
|
|
549
|
+
base: {
|
|
550
|
+
inputPricePerMillion: number;
|
|
551
|
+
outputPricePerMillion: number;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
maxTokens?: number | null | undefined;
|
|
555
|
+
}[];
|
|
556
|
+
};
|
|
557
|
+
maxReasoningTokens?: number | undefined;
|
|
558
|
+
};
|
|
559
|
+
declare const BedrockClaude3_7Sonnet20250219Options: z.ZodObject<{
|
|
560
|
+
modelName: z.ZodString;
|
|
561
|
+
awsAccessKeyId: z.ZodString;
|
|
562
|
+
awsSecretAccessKey: z.ZodString;
|
|
563
|
+
}, "strip", z.ZodTypeAny, {
|
|
564
|
+
modelName: string;
|
|
565
|
+
awsAccessKeyId: string;
|
|
566
|
+
awsSecretAccessKey: string;
|
|
567
|
+
}, {
|
|
568
|
+
modelName: string;
|
|
569
|
+
awsAccessKeyId: string;
|
|
570
|
+
awsSecretAccessKey: string;
|
|
571
|
+
}>;
|
|
572
|
+
type BedrockClaude3_7Sonnet20250219OptionsType = z.infer<typeof BedrockClaude3_7Sonnet20250219Options>;
|
|
573
|
+
declare class BedrockClaude3_7Sonnet20250219 extends BaseChatModelAnthropic {
|
|
574
|
+
constructor(options: BedrockClaude3_7Sonnet20250219OptionsType);
|
|
575
|
+
getDefaultHeaders(): HeadersType;
|
|
576
|
+
}
|
|
577
|
+
|
|
497
578
|
declare const BedrockClaude3Haiku20240307Literal = "anthropic.claude-3-haiku-20240307-v1:0";
|
|
498
579
|
declare const BedrockClaude3Haiku20240307Schema: {
|
|
499
580
|
description: string;
|
|
@@ -734,6 +815,166 @@ declare class BedrockClaude3Sonnet20240229 extends BaseChatModelAnthropic {
|
|
|
734
815
|
constructor(options: BedrockClaude3Sonnet20240229OptionsType);
|
|
735
816
|
}
|
|
736
817
|
|
|
818
|
+
declare const BedrockClaude4Opus20250514Literal = "anthropic.claude-4-opus-20250514-v1:0";
|
|
819
|
+
declare const BedrockClaude4Opus20250514Schema: {
|
|
820
|
+
description: string;
|
|
821
|
+
name: string;
|
|
822
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
823
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
824
|
+
maxInputTokens: number;
|
|
825
|
+
maxOutputTokens: number;
|
|
826
|
+
config: {
|
|
827
|
+
def: Record<string, {
|
|
828
|
+
type: "multi-string";
|
|
829
|
+
param: string;
|
|
830
|
+
title: string;
|
|
831
|
+
description: string;
|
|
832
|
+
max: number;
|
|
833
|
+
} | {
|
|
834
|
+
type: "object-schema";
|
|
835
|
+
param: string;
|
|
836
|
+
title: string;
|
|
837
|
+
description: string;
|
|
838
|
+
objectSchema?: any;
|
|
839
|
+
} | {
|
|
840
|
+
type: "range";
|
|
841
|
+
param: string;
|
|
842
|
+
title: string;
|
|
843
|
+
description: string;
|
|
844
|
+
max: number;
|
|
845
|
+
default: number;
|
|
846
|
+
min: number;
|
|
847
|
+
step: number;
|
|
848
|
+
} | {
|
|
849
|
+
type: "select-boolean";
|
|
850
|
+
param: string;
|
|
851
|
+
title: string;
|
|
852
|
+
description: string;
|
|
853
|
+
default: boolean | null;
|
|
854
|
+
} | {
|
|
855
|
+
type: "select-string";
|
|
856
|
+
param: string;
|
|
857
|
+
title: string;
|
|
858
|
+
description: string;
|
|
859
|
+
default: string;
|
|
860
|
+
choices: string[];
|
|
861
|
+
}>;
|
|
862
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
863
|
+
};
|
|
864
|
+
price: {
|
|
865
|
+
modelName: string;
|
|
866
|
+
currency: string;
|
|
867
|
+
tokenRanges: {
|
|
868
|
+
minTokens: number;
|
|
869
|
+
prices: {
|
|
870
|
+
base: {
|
|
871
|
+
inputPricePerMillion: number;
|
|
872
|
+
outputPricePerMillion: number;
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
maxTokens?: number | null | undefined;
|
|
876
|
+
}[];
|
|
877
|
+
};
|
|
878
|
+
maxReasoningTokens?: number | undefined;
|
|
879
|
+
};
|
|
880
|
+
declare const BedrockClaude4Opus20250514Options: z.ZodObject<{
|
|
881
|
+
modelName: z.ZodString;
|
|
882
|
+
awsAccessKeyId: z.ZodString;
|
|
883
|
+
awsSecretAccessKey: z.ZodString;
|
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
|
+
modelName: string;
|
|
886
|
+
awsAccessKeyId: string;
|
|
887
|
+
awsSecretAccessKey: string;
|
|
888
|
+
}, {
|
|
889
|
+
modelName: string;
|
|
890
|
+
awsAccessKeyId: string;
|
|
891
|
+
awsSecretAccessKey: string;
|
|
892
|
+
}>;
|
|
893
|
+
type BedrockClaude4Opus20250514OptionsType = z.infer<typeof BedrockClaude4Opus20250514Options>;
|
|
894
|
+
declare class BedrockClaude4Opus20250514 extends BaseChatModelAnthropic {
|
|
895
|
+
constructor(options: BedrockClaude4Opus20250514OptionsType);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
declare const BedrockClaude4Sonnet20250514Literal = "anthropic.claude-4-sonnet-20250514-v1:0";
|
|
899
|
+
declare const BedrockClaude4Sonnet20250514Schema: {
|
|
900
|
+
description: string;
|
|
901
|
+
name: string;
|
|
902
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
903
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
904
|
+
maxInputTokens: number;
|
|
905
|
+
maxOutputTokens: number;
|
|
906
|
+
config: {
|
|
907
|
+
def: Record<string, {
|
|
908
|
+
type: "multi-string";
|
|
909
|
+
param: string;
|
|
910
|
+
title: string;
|
|
911
|
+
description: string;
|
|
912
|
+
max: number;
|
|
913
|
+
} | {
|
|
914
|
+
type: "object-schema";
|
|
915
|
+
param: string;
|
|
916
|
+
title: string;
|
|
917
|
+
description: string;
|
|
918
|
+
objectSchema?: any;
|
|
919
|
+
} | {
|
|
920
|
+
type: "range";
|
|
921
|
+
param: string;
|
|
922
|
+
title: string;
|
|
923
|
+
description: string;
|
|
924
|
+
max: number;
|
|
925
|
+
default: number;
|
|
926
|
+
min: number;
|
|
927
|
+
step: number;
|
|
928
|
+
} | {
|
|
929
|
+
type: "select-boolean";
|
|
930
|
+
param: string;
|
|
931
|
+
title: string;
|
|
932
|
+
description: string;
|
|
933
|
+
default: boolean | null;
|
|
934
|
+
} | {
|
|
935
|
+
type: "select-string";
|
|
936
|
+
param: string;
|
|
937
|
+
title: string;
|
|
938
|
+
description: string;
|
|
939
|
+
default: string;
|
|
940
|
+
choices: string[];
|
|
941
|
+
}>;
|
|
942
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
943
|
+
};
|
|
944
|
+
price: {
|
|
945
|
+
modelName: string;
|
|
946
|
+
currency: string;
|
|
947
|
+
tokenRanges: {
|
|
948
|
+
minTokens: number;
|
|
949
|
+
prices: {
|
|
950
|
+
base: {
|
|
951
|
+
inputPricePerMillion: number;
|
|
952
|
+
outputPricePerMillion: number;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
maxTokens?: number | null | undefined;
|
|
956
|
+
}[];
|
|
957
|
+
};
|
|
958
|
+
maxReasoningTokens?: number | undefined;
|
|
959
|
+
};
|
|
960
|
+
declare const BedrockClaude4Sonnet20250514Options: z.ZodObject<{
|
|
961
|
+
modelName: z.ZodString;
|
|
962
|
+
awsAccessKeyId: z.ZodString;
|
|
963
|
+
awsSecretAccessKey: z.ZodString;
|
|
964
|
+
}, "strip", z.ZodTypeAny, {
|
|
965
|
+
modelName: string;
|
|
966
|
+
awsAccessKeyId: string;
|
|
967
|
+
awsSecretAccessKey: string;
|
|
968
|
+
}, {
|
|
969
|
+
modelName: string;
|
|
970
|
+
awsAccessKeyId: string;
|
|
971
|
+
awsSecretAccessKey: string;
|
|
972
|
+
}>;
|
|
973
|
+
type BedrockClaude4Sonnet20250514OptionsType = z.infer<typeof BedrockClaude4Sonnet20250514Options>;
|
|
974
|
+
declare class BedrockClaude4Sonnet20250514 extends BaseChatModelAnthropic {
|
|
975
|
+
constructor(options: BedrockClaude4Sonnet20250514OptionsType);
|
|
976
|
+
}
|
|
977
|
+
|
|
737
978
|
declare class Bedrock<C extends BaseChatModelOptionsType, E extends Record<string, any> = Record<string, any>> implements ProviderV1<C, E> {
|
|
738
979
|
readonly version: "v1";
|
|
739
980
|
readonly name = "bedrock";
|
|
@@ -750,4 +991,4 @@ declare class Bedrock<C extends BaseChatModelOptionsType, E extends Record<strin
|
|
|
750
991
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
751
992
|
}
|
|
752
993
|
|
|
753
|
-
export { BaseChatModelAnthropic, BaseChatModelOptions, type BaseChatModelOptionsType, Bedrock, BedrockAnthropicChatModelBaseConfigDef, BedrockAnthropicChatModelBaseConfigSchema, BedrockAnthropicChatModelConfigs, BedrockClaude3Haiku20240307, BedrockClaude3Haiku20240307Literal, BedrockClaude3Haiku20240307Options, type BedrockClaude3Haiku20240307OptionsType, BedrockClaude3Haiku20240307Schema, BedrockClaude3Opus20240229, BedrockClaude3Opus20240229Literal, BedrockClaude3Opus20240229Options, type BedrockClaude3Opus20240229OptionsType, BedrockClaude3Opus20240229Schema, BedrockClaude3Sonnet20240229, BedrockClaude3Sonnet20240229Literal, BedrockClaude3Sonnet20240229Options, type BedrockClaude3Sonnet20240229OptionsType, BedrockClaude3Sonnet20240229Schema, BedrockClaude3_5Haiku20241022, BedrockClaude3_5Haiku20241022Literal, BedrockClaude3_5Haiku20241022Options, type BedrockClaude3_5Haiku20241022OptionsType, BedrockClaude3_5Haiku20241022Schema, BedrockClaude3_5Sonnet20240620, BedrockClaude3_5Sonnet20240620Literal, BedrockClaude3_5Sonnet20240620Options, type BedrockClaude3_5Sonnet20240620OptionsType, BedrockClaude3_5Sonnet20240620Schema, BedrockClaude3_5Sonnet20241022, BedrockClaude3_5Sonnet20241022Literal, BedrockClaude3_5Sonnet20241022Options, type BedrockClaude3_5Sonnet20241022OptionsType, BedrockClaude3_5Sonnet20241022Schema, awsRegionChoice };
|
|
994
|
+
export { BaseChatModelAnthropic, BaseChatModelOptions, type BaseChatModelOptionsType, Bedrock, BedrockAnthropicChatModelBaseConfigDef, BedrockAnthropicChatModelBaseConfigSchema, BedrockAnthropicChatModelConfigs, BedrockClaude3Haiku20240307, BedrockClaude3Haiku20240307Literal, BedrockClaude3Haiku20240307Options, type BedrockClaude3Haiku20240307OptionsType, BedrockClaude3Haiku20240307Schema, BedrockClaude3Opus20240229, BedrockClaude3Opus20240229Literal, BedrockClaude3Opus20240229Options, type BedrockClaude3Opus20240229OptionsType, BedrockClaude3Opus20240229Schema, BedrockClaude3Sonnet20240229, BedrockClaude3Sonnet20240229Literal, BedrockClaude3Sonnet20240229Options, type BedrockClaude3Sonnet20240229OptionsType, BedrockClaude3Sonnet20240229Schema, BedrockClaude3_5Haiku20241022, BedrockClaude3_5Haiku20241022Literal, BedrockClaude3_5Haiku20241022Options, type BedrockClaude3_5Haiku20241022OptionsType, BedrockClaude3_5Haiku20241022Schema, BedrockClaude3_5Sonnet20240620, BedrockClaude3_5Sonnet20240620Literal, BedrockClaude3_5Sonnet20240620Options, type BedrockClaude3_5Sonnet20240620OptionsType, BedrockClaude3_5Sonnet20240620Schema, BedrockClaude3_5Sonnet20241022, BedrockClaude3_5Sonnet20241022Literal, BedrockClaude3_5Sonnet20241022Options, type BedrockClaude3_5Sonnet20241022OptionsType, BedrockClaude3_5Sonnet20241022Schema, BedrockClaude3_7Sonnet20250219, BedrockClaude3_7Sonnet20250219Literal, BedrockClaude3_7Sonnet20250219Options, type BedrockClaude3_7Sonnet20250219OptionsType, BedrockClaude3_7Sonnet20250219Schema, BedrockClaude4Opus20250514, BedrockClaude4Opus20250514Literal, BedrockClaude4Opus20250514Options, type BedrockClaude4Opus20250514OptionsType, BedrockClaude4Opus20250514Schema, BedrockClaude4Sonnet20250514, BedrockClaude4Sonnet20250514Literal, BedrockClaude4Sonnet20250514Options, type BedrockClaude4Sonnet20250514OptionsType, BedrockClaude4Sonnet20250514Schema, awsRegionChoice };
|