@ai-sdk/anthropic 4.0.112 → 4.0.114
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/CHANGELOG.md +20 -0
- package/dist/index.d.ts +247 -63
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +223 -62
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +194 -62
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +197 -59
- package/dist/internal/index.js.map +1 -1
- package/docs/05-anthropic.mdx +73 -21
- package/package.json +8 -4
- package/src/anthropic-language-model-options.ts +3 -2
- package/src/anthropic-language-model.ts +0 -1
- package/src/anthropic-model-catalog.ts +251 -47
- package/src/convert-to-anthropic-prompt.ts +3 -5
- package/src/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 4.0.114
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 52a423f: Export provider-specific model capability lookup functions with typed model IDs, endpoint-specific capabilities, and provider option descriptions and support, without API requests or configuration.
|
|
8
|
+
- Updated dependencies [52a423f]
|
|
9
|
+
- @ai-sdk/provider-utils@5.0.88
|
|
10
|
+
|
|
11
|
+
## 4.0.113
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 13b242c: Correct audited Claude capabilities: convert rejected budget thinking to adaptive thinking for Opus 4.7, Opus 4.8, Opus 5, and Sonnet 5; declare verified effort levels and fast-mode support; document computer protocol and structured-output restrictions; and correct sampling, compaction, task-budget, inference-geography, and mid-conversation system-message support.
|
|
16
|
+
|
|
17
|
+
Hide unavailable Opus 4.0, Opus 4.1, and Sonnet 4.0 IDs from the advertised catalog while retaining their request settings. Note that their historical capabilities could not be revalidated and may be outdated.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [f958ef0]
|
|
20
|
+
- @ai-sdk/provider@4.0.40
|
|
21
|
+
- @ai-sdk/provider-utils@5.0.87
|
|
22
|
+
|
|
3
23
|
## 4.0.112
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Experimental_BatchV4, Experimental_DecisionModelV4, Experimental_ExtractionModelV4, FilesV4, JSONObject, LanguageModelV4, ProviderV4, SkillsV4 } from "@ai-sdk/provider";
|
|
1
|
+
import { Experimental_BatchV4, Experimental_DecisionModelV4, Experimental_ExtractionModelV4, FilesV4, JSONObject, LanguageModelV4, ModelCapability, ProviderOptionDefinition, ProviderV4, SkillsV4 } from "@ai-sdk/provider";
|
|
2
2
|
import { Experimental_SandboxSession, FetchFunction, InferSchema, ProviderDefinedTool, Resolvable, Tool, ToolExecuteFunction } from "@ai-sdk/provider-utils";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
//#region src/anthropic-api.d.ts
|
|
@@ -571,6 +571,7 @@ type AnthropicTextProviderMetadata = {
|
|
|
571
571
|
};
|
|
572
572
|
//#endregion
|
|
573
573
|
//#region src/anthropic-model-catalog.d.ts
|
|
574
|
+
type AnthropicLanguageProviderOption = keyof AnthropicLanguageModelOptions;
|
|
574
575
|
/**
|
|
575
576
|
* Language model matrix: model IDs by capability. To add a model, add a row and
|
|
576
577
|
* fill in every column.
|
|
@@ -586,14 +587,18 @@ declare const languageModelDefinitions: {
|
|
|
586
587
|
canBeDisabled: false;
|
|
587
588
|
};
|
|
588
589
|
reasoningEfforts: string[];
|
|
589
|
-
sampling:
|
|
590
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
591
|
-
};
|
|
590
|
+
sampling: false;
|
|
592
591
|
forcedToolUse: false;
|
|
592
|
+
computerUse: {
|
|
593
|
+
readonly condition: "Requires computer_toolset_20260801.";
|
|
594
|
+
};
|
|
593
595
|
toolSearch: true;
|
|
594
596
|
compaction: true;
|
|
597
|
+
contextManagement: true;
|
|
598
|
+
midConversationSystemMessages: true;
|
|
599
|
+
inferenceGeo: true;
|
|
595
600
|
effort: true;
|
|
596
|
-
speed:
|
|
601
|
+
speed: true;
|
|
597
602
|
taskBudget: "unknown";
|
|
598
603
|
};
|
|
599
604
|
'claude-opus-5': {
|
|
@@ -602,18 +607,22 @@ declare const languageModelDefinitions: {
|
|
|
602
607
|
knownModel: true;
|
|
603
608
|
nativeStructuredOutput: true;
|
|
604
609
|
thinking: {
|
|
605
|
-
modes: ["adaptive"
|
|
610
|
+
modes: ["adaptive"];
|
|
606
611
|
canBeDisabled: "up-to-high-effort";
|
|
607
612
|
};
|
|
608
613
|
reasoningEfforts: string[];
|
|
609
|
-
sampling:
|
|
610
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
611
|
-
};
|
|
614
|
+
sampling: false;
|
|
612
615
|
forcedToolUse: true;
|
|
616
|
+
computerUse: {
|
|
617
|
+
readonly condition: "Requires computer_20251124 or computer_toolset_20260801.";
|
|
618
|
+
};
|
|
613
619
|
toolSearch: true;
|
|
614
620
|
compaction: true;
|
|
621
|
+
contextManagement: true;
|
|
622
|
+
midConversationSystemMessages: true;
|
|
623
|
+
inferenceGeo: true;
|
|
615
624
|
effort: true;
|
|
616
|
-
speed:
|
|
625
|
+
speed: true;
|
|
617
626
|
taskBudget: "unknown";
|
|
618
627
|
};
|
|
619
628
|
'claude-sonnet-5-5': {
|
|
@@ -626,12 +635,16 @@ declare const languageModelDefinitions: {
|
|
|
626
635
|
canBeDisabled: false;
|
|
627
636
|
};
|
|
628
637
|
reasoningEfforts: string[];
|
|
629
|
-
sampling:
|
|
630
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
631
|
-
};
|
|
638
|
+
sampling: false;
|
|
632
639
|
forcedToolUse: false;
|
|
640
|
+
computerUse: {
|
|
641
|
+
readonly condition: "Requires computer_toolset_20260801.";
|
|
642
|
+
};
|
|
633
643
|
toolSearch: true;
|
|
634
644
|
compaction: true;
|
|
645
|
+
contextManagement: true;
|
|
646
|
+
midConversationSystemMessages: true;
|
|
647
|
+
inferenceGeo: true;
|
|
635
648
|
effort: true;
|
|
636
649
|
speed: false;
|
|
637
650
|
taskBudget: "unknown";
|
|
@@ -642,16 +655,20 @@ declare const languageModelDefinitions: {
|
|
|
642
655
|
knownModel: true;
|
|
643
656
|
nativeStructuredOutput: true;
|
|
644
657
|
thinking: {
|
|
645
|
-
modes: ["adaptive"
|
|
658
|
+
modes: ["adaptive"];
|
|
646
659
|
canBeDisabled: "always";
|
|
647
660
|
};
|
|
648
661
|
reasoningEfforts: string[];
|
|
649
|
-
sampling:
|
|
650
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
651
|
-
};
|
|
662
|
+
sampling: false;
|
|
652
663
|
forcedToolUse: true;
|
|
664
|
+
computerUse: {
|
|
665
|
+
readonly condition: "Requires computer_20251124 or computer_toolset_20260801.";
|
|
666
|
+
};
|
|
653
667
|
toolSearch: true;
|
|
654
668
|
compaction: true;
|
|
669
|
+
contextManagement: true;
|
|
670
|
+
midConversationSystemMessages: true;
|
|
671
|
+
inferenceGeo: true;
|
|
655
672
|
effort: true;
|
|
656
673
|
speed: false;
|
|
657
674
|
taskBudget: "unknown";
|
|
@@ -666,12 +683,16 @@ declare const languageModelDefinitions: {
|
|
|
666
683
|
canBeDisabled: "up-to-high-effort";
|
|
667
684
|
};
|
|
668
685
|
reasoningEfforts: string[];
|
|
669
|
-
sampling:
|
|
670
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
671
|
-
};
|
|
686
|
+
sampling: false;
|
|
672
687
|
forcedToolUse: true;
|
|
688
|
+
computerUse: {
|
|
689
|
+
readonly condition: "Requires computer_toolset_20260801.";
|
|
690
|
+
};
|
|
673
691
|
toolSearch: true;
|
|
674
692
|
compaction: true;
|
|
693
|
+
contextManagement: true;
|
|
694
|
+
midConversationSystemMessages: true;
|
|
695
|
+
inferenceGeo: true;
|
|
675
696
|
effort: true;
|
|
676
697
|
speed: false;
|
|
677
698
|
taskBudget: "unknown";
|
|
@@ -686,14 +707,18 @@ declare const languageModelDefinitions: {
|
|
|
686
707
|
canBeDisabled: false;
|
|
687
708
|
};
|
|
688
709
|
reasoningEfforts: string[];
|
|
689
|
-
sampling:
|
|
690
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
691
|
-
};
|
|
710
|
+
sampling: false;
|
|
692
711
|
forcedToolUse: false;
|
|
712
|
+
computerUse: {
|
|
713
|
+
readonly condition: "Requires computer_toolset_20260801.";
|
|
714
|
+
};
|
|
693
715
|
toolSearch: true;
|
|
694
716
|
compaction: true;
|
|
717
|
+
contextManagement: true;
|
|
718
|
+
midConversationSystemMessages: true;
|
|
719
|
+
inferenceGeo: true;
|
|
695
720
|
effort: true;
|
|
696
|
-
speed:
|
|
721
|
+
speed: true;
|
|
697
722
|
taskBudget: "unknown";
|
|
698
723
|
};
|
|
699
724
|
'claude-fable-5-1': {
|
|
@@ -706,12 +731,16 @@ declare const languageModelDefinitions: {
|
|
|
706
731
|
canBeDisabled: false;
|
|
707
732
|
};
|
|
708
733
|
reasoningEfforts: string[];
|
|
709
|
-
sampling:
|
|
710
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
711
|
-
};
|
|
734
|
+
sampling: false;
|
|
712
735
|
forcedToolUse: false;
|
|
736
|
+
computerUse: {
|
|
737
|
+
readonly condition: "Requires computer_20251124 or computer_toolset_20260801.";
|
|
738
|
+
};
|
|
713
739
|
toolSearch: true;
|
|
714
740
|
compaction: true;
|
|
741
|
+
contextManagement: true;
|
|
742
|
+
midConversationSystemMessages: true;
|
|
743
|
+
inferenceGeo: true;
|
|
715
744
|
effort: true;
|
|
716
745
|
speed: false;
|
|
717
746
|
taskBudget: "unknown";
|
|
@@ -726,12 +755,16 @@ declare const languageModelDefinitions: {
|
|
|
726
755
|
canBeDisabled: false;
|
|
727
756
|
};
|
|
728
757
|
reasoningEfforts: string[];
|
|
729
|
-
sampling:
|
|
730
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
731
|
-
};
|
|
758
|
+
sampling: false;
|
|
732
759
|
forcedToolUse: true;
|
|
760
|
+
computerUse: {
|
|
761
|
+
readonly condition: "Requires computer_20251124 or computer_toolset_20260801.";
|
|
762
|
+
};
|
|
733
763
|
toolSearch: true;
|
|
734
764
|
compaction: true;
|
|
765
|
+
contextManagement: true;
|
|
766
|
+
midConversationSystemMessages: true;
|
|
767
|
+
inferenceGeo: true;
|
|
735
768
|
effort: true;
|
|
736
769
|
speed: false;
|
|
737
770
|
taskBudget: "unknown";
|
|
@@ -742,18 +775,22 @@ declare const languageModelDefinitions: {
|
|
|
742
775
|
knownModel: true;
|
|
743
776
|
nativeStructuredOutput: true;
|
|
744
777
|
thinking: {
|
|
745
|
-
modes: ["adaptive"
|
|
778
|
+
modes: ["adaptive"];
|
|
746
779
|
canBeDisabled: "always";
|
|
747
780
|
};
|
|
748
781
|
reasoningEfforts: string[];
|
|
749
|
-
sampling:
|
|
750
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
751
|
-
};
|
|
782
|
+
sampling: false;
|
|
752
783
|
forcedToolUse: true;
|
|
784
|
+
computerUse: {
|
|
785
|
+
readonly condition: "Requires computer_20251124 or computer_toolset_20260801.";
|
|
786
|
+
};
|
|
753
787
|
toolSearch: true;
|
|
754
788
|
compaction: true;
|
|
789
|
+
contextManagement: true;
|
|
790
|
+
midConversationSystemMessages: true;
|
|
791
|
+
inferenceGeo: true;
|
|
755
792
|
effort: true;
|
|
756
|
-
speed:
|
|
793
|
+
speed: true;
|
|
757
794
|
taskBudget: "unknown";
|
|
758
795
|
};
|
|
759
796
|
'claude-opus-4-7': {
|
|
@@ -762,16 +799,20 @@ declare const languageModelDefinitions: {
|
|
|
762
799
|
knownModel: true;
|
|
763
800
|
nativeStructuredOutput: true;
|
|
764
801
|
thinking: {
|
|
765
|
-
modes: ["adaptive"
|
|
802
|
+
modes: ["adaptive"];
|
|
766
803
|
canBeDisabled: "always";
|
|
767
804
|
};
|
|
768
805
|
reasoningEfforts: string[];
|
|
769
|
-
sampling:
|
|
770
|
-
readonly condition: "Only supported when thinking is disabled.";
|
|
771
|
-
};
|
|
806
|
+
sampling: false;
|
|
772
807
|
forcedToolUse: true;
|
|
808
|
+
computerUse: {
|
|
809
|
+
readonly condition: "Requires computer_20251124.";
|
|
810
|
+
};
|
|
773
811
|
toolSearch: true;
|
|
774
812
|
compaction: true;
|
|
813
|
+
contextManagement: true;
|
|
814
|
+
midConversationSystemMessages: false;
|
|
815
|
+
inferenceGeo: true;
|
|
775
816
|
effort: true;
|
|
776
817
|
speed: false;
|
|
777
818
|
taskBudget: true;
|
|
@@ -785,14 +826,22 @@ declare const languageModelDefinitions: {
|
|
|
785
826
|
modes: ["adaptive", "budget"];
|
|
786
827
|
canBeDisabled: "always";
|
|
787
828
|
};
|
|
788
|
-
reasoningEfforts:
|
|
789
|
-
sampling:
|
|
829
|
+
reasoningEfforts: string[];
|
|
830
|
+
sampling: {
|
|
831
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
832
|
+
};
|
|
790
833
|
forcedToolUse: true;
|
|
834
|
+
computerUse: {
|
|
835
|
+
readonly condition: "Requires computer_20251124.";
|
|
836
|
+
};
|
|
791
837
|
toolSearch: true;
|
|
792
838
|
compaction: true;
|
|
839
|
+
contextManagement: true;
|
|
840
|
+
midConversationSystemMessages: false;
|
|
841
|
+
inferenceGeo: true;
|
|
793
842
|
effort: true;
|
|
794
843
|
speed: true;
|
|
795
|
-
taskBudget:
|
|
844
|
+
taskBudget: false;
|
|
796
845
|
};
|
|
797
846
|
'claude-sonnet-4-6': {
|
|
798
847
|
documented: true;
|
|
@@ -803,14 +852,22 @@ declare const languageModelDefinitions: {
|
|
|
803
852
|
modes: ["adaptive", "budget"];
|
|
804
853
|
canBeDisabled: "always";
|
|
805
854
|
};
|
|
806
|
-
reasoningEfforts:
|
|
807
|
-
sampling:
|
|
855
|
+
reasoningEfforts: string[];
|
|
856
|
+
sampling: {
|
|
857
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
858
|
+
};
|
|
808
859
|
forcedToolUse: true;
|
|
860
|
+
computerUse: {
|
|
861
|
+
readonly condition: "Requires computer_20251124.";
|
|
862
|
+
};
|
|
809
863
|
toolSearch: true;
|
|
810
864
|
compaction: true;
|
|
865
|
+
contextManagement: true;
|
|
866
|
+
midConversationSystemMessages: false;
|
|
867
|
+
inferenceGeo: true;
|
|
811
868
|
effort: true;
|
|
812
869
|
speed: false;
|
|
813
|
-
taskBudget:
|
|
870
|
+
taskBudget: false;
|
|
814
871
|
};
|
|
815
872
|
'claude-opus-4-5': {
|
|
816
873
|
documented: true;
|
|
@@ -821,14 +878,24 @@ declare const languageModelDefinitions: {
|
|
|
821
878
|
modes: ["budget"];
|
|
822
879
|
canBeDisabled: "always";
|
|
823
880
|
};
|
|
824
|
-
reasoningEfforts:
|
|
825
|
-
sampling:
|
|
881
|
+
reasoningEfforts: string[];
|
|
882
|
+
sampling: {
|
|
883
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
884
|
+
};
|
|
826
885
|
forcedToolUse: true;
|
|
886
|
+
computerUse: {
|
|
887
|
+
readonly condition: "Requires computer_20250124 or computer_20251124.";
|
|
888
|
+
};
|
|
827
889
|
toolSearch: true;
|
|
828
890
|
compaction: false;
|
|
891
|
+
contextManagement: {
|
|
892
|
+
readonly condition: "Use clear_tool_uses_20250919; compaction edits are unsupported.";
|
|
893
|
+
};
|
|
894
|
+
midConversationSystemMessages: false;
|
|
895
|
+
inferenceGeo: false;
|
|
829
896
|
effort: true;
|
|
830
897
|
speed: false;
|
|
831
|
-
taskBudget:
|
|
898
|
+
taskBudget: false;
|
|
832
899
|
};
|
|
833
900
|
'claude-haiku-4-5': {
|
|
834
901
|
documented: true;
|
|
@@ -839,14 +906,24 @@ declare const languageModelDefinitions: {
|
|
|
839
906
|
modes: ["budget"];
|
|
840
907
|
canBeDisabled: "always";
|
|
841
908
|
};
|
|
842
|
-
reasoningEfforts:
|
|
843
|
-
sampling:
|
|
909
|
+
reasoningEfforts: never[];
|
|
910
|
+
sampling: {
|
|
911
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
912
|
+
};
|
|
844
913
|
forcedToolUse: true;
|
|
914
|
+
computerUse: {
|
|
915
|
+
readonly condition: "Requires computer_20250124.";
|
|
916
|
+
};
|
|
845
917
|
toolSearch: true;
|
|
846
918
|
compaction: false;
|
|
919
|
+
contextManagement: {
|
|
920
|
+
readonly condition: "Use clear_tool_uses_20250919; compaction edits are unsupported.";
|
|
921
|
+
};
|
|
922
|
+
midConversationSystemMessages: false;
|
|
923
|
+
inferenceGeo: false;
|
|
847
924
|
effort: false;
|
|
848
925
|
speed: false;
|
|
849
|
-
taskBudget:
|
|
926
|
+
taskBudget: false;
|
|
850
927
|
};
|
|
851
928
|
'claude-sonnet-4-5': {
|
|
852
929
|
documented: true;
|
|
@@ -857,17 +934,27 @@ declare const languageModelDefinitions: {
|
|
|
857
934
|
modes: ["budget"];
|
|
858
935
|
canBeDisabled: "always";
|
|
859
936
|
};
|
|
860
|
-
reasoningEfforts:
|
|
861
|
-
sampling:
|
|
937
|
+
reasoningEfforts: never[];
|
|
938
|
+
sampling: {
|
|
939
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
940
|
+
};
|
|
862
941
|
forcedToolUse: true;
|
|
942
|
+
computerUse: {
|
|
943
|
+
readonly condition: "Requires computer_20250124.";
|
|
944
|
+
};
|
|
863
945
|
toolSearch: true;
|
|
864
946
|
compaction: false;
|
|
947
|
+
contextManagement: {
|
|
948
|
+
readonly condition: "Use clear_tool_uses_20250919; compaction edits are unsupported.";
|
|
949
|
+
};
|
|
950
|
+
midConversationSystemMessages: false;
|
|
951
|
+
inferenceGeo: false;
|
|
865
952
|
effort: false;
|
|
866
953
|
speed: false;
|
|
867
|
-
taskBudget:
|
|
954
|
+
taskBudget: false;
|
|
868
955
|
};
|
|
869
956
|
'claude-opus-4-1': {
|
|
870
|
-
documented:
|
|
957
|
+
documented: false;
|
|
871
958
|
maxOutputTokens: number;
|
|
872
959
|
knownModel: true;
|
|
873
960
|
nativeStructuredOutput: true;
|
|
@@ -878,14 +965,18 @@ declare const languageModelDefinitions: {
|
|
|
878
965
|
reasoningEfforts: undefined;
|
|
879
966
|
sampling: true;
|
|
880
967
|
forcedToolUse: true;
|
|
968
|
+
computerUse: true;
|
|
881
969
|
toolSearch: false;
|
|
882
970
|
compaction: false;
|
|
971
|
+
contextManagement: true;
|
|
972
|
+
midConversationSystemMessages: true;
|
|
973
|
+
inferenceGeo: true;
|
|
883
974
|
effort: false;
|
|
884
975
|
speed: false;
|
|
885
976
|
taskBudget: "unknown";
|
|
886
977
|
};
|
|
887
978
|
'claude-opus-4-0': {
|
|
888
|
-
documented:
|
|
979
|
+
documented: false;
|
|
889
980
|
maxOutputTokens: number;
|
|
890
981
|
knownModel: true;
|
|
891
982
|
nativeStructuredOutput: false;
|
|
@@ -896,14 +987,18 @@ declare const languageModelDefinitions: {
|
|
|
896
987
|
reasoningEfforts: undefined;
|
|
897
988
|
sampling: true;
|
|
898
989
|
forcedToolUse: true;
|
|
990
|
+
computerUse: true;
|
|
899
991
|
toolSearch: false;
|
|
900
992
|
compaction: false;
|
|
993
|
+
contextManagement: true;
|
|
994
|
+
midConversationSystemMessages: true;
|
|
995
|
+
inferenceGeo: true;
|
|
901
996
|
effort: false;
|
|
902
997
|
speed: false;
|
|
903
998
|
taskBudget: "unknown";
|
|
904
999
|
};
|
|
905
1000
|
'claude-sonnet-4-0': {
|
|
906
|
-
documented:
|
|
1001
|
+
documented: false;
|
|
907
1002
|
maxOutputTokens: number;
|
|
908
1003
|
knownModel: true;
|
|
909
1004
|
nativeStructuredOutput: false;
|
|
@@ -914,8 +1009,12 @@ declare const languageModelDefinitions: {
|
|
|
914
1009
|
reasoningEfforts: undefined;
|
|
915
1010
|
sampling: true;
|
|
916
1011
|
forcedToolUse: true;
|
|
1012
|
+
computerUse: true;
|
|
917
1013
|
toolSearch: false;
|
|
918
1014
|
compaction: false;
|
|
1015
|
+
contextManagement: true;
|
|
1016
|
+
midConversationSystemMessages: true;
|
|
1017
|
+
inferenceGeo: true;
|
|
919
1018
|
effort: false;
|
|
920
1019
|
speed: false;
|
|
921
1020
|
taskBudget: "unknown";
|
|
@@ -932,8 +1031,12 @@ declare const languageModelDefinitions: {
|
|
|
932
1031
|
reasoningEfforts: undefined;
|
|
933
1032
|
sampling: true;
|
|
934
1033
|
forcedToolUse: true;
|
|
1034
|
+
computerUse: "unknown";
|
|
935
1035
|
toolSearch: "unknown";
|
|
936
1036
|
compaction: "unknown";
|
|
1037
|
+
contextManagement: "unknown";
|
|
1038
|
+
midConversationSystemMessages: "unknown";
|
|
1039
|
+
inferenceGeo: "unknown";
|
|
937
1040
|
effort: "unknown";
|
|
938
1041
|
speed: "unknown";
|
|
939
1042
|
taskBudget: "unknown";
|
|
@@ -947,11 +1050,17 @@ declare const languageModelDefinitions: {
|
|
|
947
1050
|
modes: ["budget"];
|
|
948
1051
|
canBeDisabled: "always";
|
|
949
1052
|
};
|
|
950
|
-
reasoningEfforts:
|
|
951
|
-
sampling:
|
|
1053
|
+
reasoningEfforts: never[];
|
|
1054
|
+
sampling: {
|
|
1055
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
1056
|
+
};
|
|
952
1057
|
forcedToolUse: true;
|
|
1058
|
+
computerUse: "unknown";
|
|
953
1059
|
toolSearch: "unknown";
|
|
954
1060
|
compaction: "unknown";
|
|
1061
|
+
contextManagement: "unknown";
|
|
1062
|
+
midConversationSystemMessages: "unknown";
|
|
1063
|
+
inferenceGeo: "unknown";
|
|
955
1064
|
effort: "unknown";
|
|
956
1065
|
speed: "unknown";
|
|
957
1066
|
taskBudget: "unknown";
|
|
@@ -968,8 +1077,12 @@ declare const languageModelDefinitions: {
|
|
|
968
1077
|
reasoningEfforts: undefined;
|
|
969
1078
|
sampling: true;
|
|
970
1079
|
forcedToolUse: true;
|
|
1080
|
+
computerUse: "unknown";
|
|
971
1081
|
toolSearch: "unknown";
|
|
972
1082
|
compaction: "unknown";
|
|
1083
|
+
contextManagement: "unknown";
|
|
1084
|
+
midConversationSystemMessages: "unknown";
|
|
1085
|
+
inferenceGeo: "unknown";
|
|
973
1086
|
effort: "unknown";
|
|
974
1087
|
speed: "unknown";
|
|
975
1088
|
taskBudget: "unknown";
|
|
@@ -986,8 +1099,12 @@ declare const languageModelDefinitions: {
|
|
|
986
1099
|
reasoningEfforts: undefined;
|
|
987
1100
|
sampling: true;
|
|
988
1101
|
forcedToolUse: true;
|
|
1102
|
+
computerUse: "unknown";
|
|
989
1103
|
toolSearch: "unknown";
|
|
990
1104
|
compaction: "unknown";
|
|
1105
|
+
contextManagement: "unknown";
|
|
1106
|
+
midConversationSystemMessages: "unknown";
|
|
1107
|
+
inferenceGeo: "unknown";
|
|
991
1108
|
effort: "unknown";
|
|
992
1109
|
speed: "unknown";
|
|
993
1110
|
taskBudget: "unknown";
|
|
@@ -1001,11 +1118,17 @@ declare const languageModelDefinitions: {
|
|
|
1001
1118
|
modes: ["budget"];
|
|
1002
1119
|
canBeDisabled: "always";
|
|
1003
1120
|
};
|
|
1004
|
-
reasoningEfforts:
|
|
1005
|
-
sampling:
|
|
1121
|
+
reasoningEfforts: string[];
|
|
1122
|
+
sampling: {
|
|
1123
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
1124
|
+
};
|
|
1006
1125
|
forcedToolUse: true;
|
|
1126
|
+
computerUse: "unknown";
|
|
1007
1127
|
toolSearch: "unknown";
|
|
1008
1128
|
compaction: "unknown";
|
|
1129
|
+
contextManagement: "unknown";
|
|
1130
|
+
midConversationSystemMessages: "unknown";
|
|
1131
|
+
inferenceGeo: "unknown";
|
|
1009
1132
|
effort: "unknown";
|
|
1010
1133
|
speed: "unknown";
|
|
1011
1134
|
taskBudget: "unknown";
|
|
@@ -1022,8 +1145,12 @@ declare const languageModelDefinitions: {
|
|
|
1022
1145
|
reasoningEfforts: undefined;
|
|
1023
1146
|
sampling: true;
|
|
1024
1147
|
forcedToolUse: true;
|
|
1148
|
+
computerUse: "unknown";
|
|
1025
1149
|
toolSearch: "unknown";
|
|
1026
1150
|
compaction: "unknown";
|
|
1151
|
+
contextManagement: "unknown";
|
|
1152
|
+
midConversationSystemMessages: "unknown";
|
|
1153
|
+
inferenceGeo: "unknown";
|
|
1027
1154
|
effort: "unknown";
|
|
1028
1155
|
speed: "unknown";
|
|
1029
1156
|
taskBudget: "unknown";
|
|
@@ -1037,16 +1164,73 @@ declare const languageModelDefinitions: {
|
|
|
1037
1164
|
modes: ["budget"];
|
|
1038
1165
|
canBeDisabled: "always";
|
|
1039
1166
|
};
|
|
1040
|
-
reasoningEfforts:
|
|
1041
|
-
sampling:
|
|
1167
|
+
reasoningEfforts: never[];
|
|
1168
|
+
sampling: {
|
|
1169
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
1170
|
+
};
|
|
1042
1171
|
forcedToolUse: true;
|
|
1172
|
+
computerUse: "unknown";
|
|
1043
1173
|
toolSearch: "unknown";
|
|
1044
1174
|
compaction: "unknown";
|
|
1175
|
+
contextManagement: "unknown";
|
|
1176
|
+
midConversationSystemMessages: "unknown";
|
|
1177
|
+
inferenceGeo: "unknown";
|
|
1045
1178
|
effort: "unknown";
|
|
1046
1179
|
speed: "unknown";
|
|
1047
1180
|
taskBudget: "unknown";
|
|
1048
1181
|
};
|
|
1049
1182
|
};
|
|
1183
|
+
/**
|
|
1184
|
+
* Returns Messages API catalog metadata, or `undefined` for unlisted IDs.
|
|
1185
|
+
*/
|
|
1186
|
+
export declare function anthropicModelCapabilities(modelId: AnthropicModelIds['language'] | (string & {})): {
|
|
1187
|
+
provider: "anthropic";
|
|
1188
|
+
modelId: "claude-opus-5-5" | "claude-opus-5" | "claude-sonnet-5-5" | "claude-sonnet-5" | "claude-haiku-5-5" | "claude-fable-5-2" | "claude-fable-5-1" | "claude-fable-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-opus-4-5" | "claude-haiku-4-5" | "claude-sonnet-4-5" | "claude-opus-4-1" | "claude-opus-4-0" | "claude-sonnet-4-0" | "claude-3-haiku-20240307" | "claude-haiku-4-5-20251001" | "claude-opus-4-1-20250805" | "claude-opus-4-20250514" | "claude-opus-4-5-20251101" | "claude-sonnet-4-20250514" | "claude-sonnet-4-5-20250929" | (string & {});
|
|
1189
|
+
endpoints: {
|
|
1190
|
+
messages: {
|
|
1191
|
+
operation: "language";
|
|
1192
|
+
capabilities: {
|
|
1193
|
+
reasoning: {
|
|
1194
|
+
support: ModelCapability;
|
|
1195
|
+
efforts?: readonly string[];
|
|
1196
|
+
adaptive: boolean;
|
|
1197
|
+
budget: boolean;
|
|
1198
|
+
canDisable: boolean;
|
|
1199
|
+
canDisableAboveHighEffort: boolean;
|
|
1200
|
+
betweenTools: boolean;
|
|
1201
|
+
};
|
|
1202
|
+
inputs: {
|
|
1203
|
+
readonly image: ModelCapability;
|
|
1204
|
+
readonly audio: ModelCapability;
|
|
1205
|
+
};
|
|
1206
|
+
objectGeneration: ModelCapability;
|
|
1207
|
+
tools: {
|
|
1208
|
+
readonly usage: ModelCapability;
|
|
1209
|
+
readonly streaming: ModelCapability;
|
|
1210
|
+
} & {
|
|
1211
|
+
forcedChoice: boolean;
|
|
1212
|
+
computerUse: ModelCapability;
|
|
1213
|
+
webSearch: ModelCapability;
|
|
1214
|
+
toolSearch: ModelCapability;
|
|
1215
|
+
};
|
|
1216
|
+
sampling: {
|
|
1217
|
+
readonly temperature: ModelCapability;
|
|
1218
|
+
readonly topP: ModelCapability;
|
|
1219
|
+
readonly logprobs: ModelCapability;
|
|
1220
|
+
} & {
|
|
1221
|
+
topK: ModelCapability;
|
|
1222
|
+
};
|
|
1223
|
+
structuredOutput: {
|
|
1224
|
+
native: boolean;
|
|
1225
|
+
};
|
|
1226
|
+
compaction: ModelCapability;
|
|
1227
|
+
};
|
|
1228
|
+
providerOptions: Record<AnthropicLanguageProviderOption, ProviderOptionDefinition & {
|
|
1229
|
+
support: ModelCapability;
|
|
1230
|
+
}>;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
} | undefined;
|
|
1050
1234
|
/** Known model IDs, derived from the declarations used to build the catalog. */
|
|
1051
1235
|
type AnthropicModelIds = {
|
|
1052
1236
|
language: keyof typeof languageModelDefinitions;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","ExtractionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-provider-metadata.ts","../src/anthropic-model-catalog.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAgtBM,sCAA8B,EAAA;;;;;;;;;;GAgBhC,EAAA,KAAA;KAEQ,2BAA2B,EAAE,MACvC,kBAAkB;cA2FP,0DAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqwBxB,WAAW,aACpB,mBAAmB;EAClB;;;;;;;;;;;;;;;;;;;KCnjDQ;EACV;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;UAGe;EACf,OAAO;EACP;;EAGA;;;;;;;EAQA,uBAAuB;IACrB;IACA;IACA;;;;;;;;;;;;;EAcF,mBAAmB;;;;;;;;;;EAWnB;;;;;IAKE;;;;;IAMA;;;;;IAMA;;;;;;IAOA;;;;;;;;;EAUF,YAAY;;;;;;;EAQZ;;;;IAIE;;;;IAKA;;;;IAKA,QAAQ;;;;MAIN;;;;MAKA;;;;MAKA;;;;;;;;EASJ;;;;;IAKE,cAAc;;;;;;;;;MASR;;;;;MAMA;;;;;MAMA;;;;;;;;;;MAUA;;;;;MAMA;;;;;MAMA;;;;;;;;;;MAUA;;;;;;;;;KC9NE,oBAAoB;;;;;KAMpB;EACV;IACE,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","ExtractionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-provider-metadata.ts","../src/anthropic-model-catalog.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAgtBM,sCAA8B,EAAA;;;;;;;;;;GAgBhC,EAAA,KAAA;KAEQ,2BAA2B,EAAE,MACvC,kBAAkB;cA2FP,0DAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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