@ai-sdk/anthropic 4.0.0-beta.12 → 4.0.0-beta.13
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 +8 -0
- package/dist/index.d.mts +29 -29
- package/dist/index.d.ts +29 -29
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal/index.d.mts +29 -29
- package/dist/internal/index.d.ts +29 -29
- package/docs/05-anthropic.mdx +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -237,7 +237,7 @@ declare const anthropicTools: {
|
|
|
237
237
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
238
238
|
command: string;
|
|
239
239
|
restart?: boolean;
|
|
240
|
-
}, {}>;
|
|
240
|
+
}, {}, {}>;
|
|
241
241
|
/**
|
|
242
242
|
* The bash tool enables Claude to execute shell commands in a persistent bash session,
|
|
243
243
|
* allowing system operations, script execution, and command-line automation.
|
|
@@ -247,7 +247,7 @@ declare const anthropicTools: {
|
|
|
247
247
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
248
248
|
command: string;
|
|
249
249
|
restart?: boolean;
|
|
250
|
-
}, {}>;
|
|
250
|
+
}, {}, {}>;
|
|
251
251
|
/**
|
|
252
252
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
253
253
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -267,7 +267,7 @@ declare const anthropicTools: {
|
|
|
267
267
|
type: "code_execution_output";
|
|
268
268
|
file_id: string;
|
|
269
269
|
}>;
|
|
270
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
270
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
271
271
|
code: string;
|
|
272
272
|
}, {
|
|
273
273
|
type: "code_execution_result";
|
|
@@ -278,7 +278,7 @@ declare const anthropicTools: {
|
|
|
278
278
|
type: "code_execution_output";
|
|
279
279
|
file_id: string;
|
|
280
280
|
}>;
|
|
281
|
-
}>;
|
|
281
|
+
}, {}>;
|
|
282
282
|
/**
|
|
283
283
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
284
284
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -351,7 +351,7 @@ declare const anthropicTools: {
|
|
|
351
351
|
new_start: number | null;
|
|
352
352
|
old_lines: number | null;
|
|
353
353
|
old_start: number | null;
|
|
354
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
354
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
355
355
|
type: "programmatic-tool-call";
|
|
356
356
|
code: string;
|
|
357
357
|
} | {
|
|
@@ -413,7 +413,7 @@ declare const anthropicTools: {
|
|
|
413
413
|
new_start: number | null;
|
|
414
414
|
old_lines: number | null;
|
|
415
415
|
old_start: number | null;
|
|
416
|
-
}>;
|
|
416
|
+
}, {}>;
|
|
417
417
|
/**
|
|
418
418
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
419
419
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -497,7 +497,7 @@ declare const anthropicTools: {
|
|
|
497
497
|
new_start: number | null;
|
|
498
498
|
old_lines: number | null;
|
|
499
499
|
old_start: number | null;
|
|
500
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
500
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
501
501
|
type: "programmatic-tool-call";
|
|
502
502
|
code: string;
|
|
503
503
|
} | {
|
|
@@ -568,7 +568,7 @@ declare const anthropicTools: {
|
|
|
568
568
|
new_start: number | null;
|
|
569
569
|
old_lines: number | null;
|
|
570
570
|
old_start: number | null;
|
|
571
|
-
}>;
|
|
571
|
+
}, {}>;
|
|
572
572
|
/**
|
|
573
573
|
* Claude can interact with computer environments through the computer use tool, which
|
|
574
574
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -587,7 +587,7 @@ declare const anthropicTools: {
|
|
|
587
587
|
displayWidthPx: number;
|
|
588
588
|
displayHeightPx: number;
|
|
589
589
|
displayNumber?: number;
|
|
590
|
-
}>;
|
|
590
|
+
}, {}>;
|
|
591
591
|
/**
|
|
592
592
|
* Claude can interact with computer environments through the computer use tool, which
|
|
593
593
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -610,7 +610,7 @@ declare const anthropicTools: {
|
|
|
610
610
|
displayWidthPx: number;
|
|
611
611
|
displayHeightPx: number;
|
|
612
612
|
displayNumber?: number;
|
|
613
|
-
}>;
|
|
613
|
+
}, {}>;
|
|
614
614
|
/**
|
|
615
615
|
* Claude can interact with computer environments through the computer use tool, which
|
|
616
616
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -640,7 +640,7 @@ declare const anthropicTools: {
|
|
|
640
640
|
displayHeightPx: number;
|
|
641
641
|
displayNumber?: number;
|
|
642
642
|
enableZoom?: boolean;
|
|
643
|
-
}>;
|
|
643
|
+
}, {}>;
|
|
644
644
|
/**
|
|
645
645
|
* The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
|
|
646
646
|
* Claude can create, read, update, and delete files that persist between sessions,
|
|
@@ -674,7 +674,7 @@ declare const anthropicTools: {
|
|
|
674
674
|
command: "rename";
|
|
675
675
|
old_path: string;
|
|
676
676
|
new_path: string;
|
|
677
|
-
}, {}>;
|
|
677
|
+
}, {}, {}>;
|
|
678
678
|
/**
|
|
679
679
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
680
680
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -691,7 +691,7 @@ declare const anthropicTools: {
|
|
|
691
691
|
insert_text?: string;
|
|
692
692
|
old_str?: string;
|
|
693
693
|
view_range?: number[];
|
|
694
|
-
}, {}>;
|
|
694
|
+
}, {}, {}>;
|
|
695
695
|
/**
|
|
696
696
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
697
697
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -708,7 +708,7 @@ declare const anthropicTools: {
|
|
|
708
708
|
insert_text?: string;
|
|
709
709
|
old_str?: string;
|
|
710
710
|
view_range?: number[];
|
|
711
|
-
}, {}>;
|
|
711
|
+
}, {}, {}>;
|
|
712
712
|
/**
|
|
713
713
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
714
714
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -727,7 +727,7 @@ declare const anthropicTools: {
|
|
|
727
727
|
insert_text?: string;
|
|
728
728
|
old_str?: string;
|
|
729
729
|
view_range?: number[];
|
|
730
|
-
}, {}>;
|
|
730
|
+
}, {}, {}>;
|
|
731
731
|
/**
|
|
732
732
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
733
733
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -750,7 +750,7 @@ declare const anthropicTools: {
|
|
|
750
750
|
view_range?: number[];
|
|
751
751
|
}, {
|
|
752
752
|
maxCharacters?: number;
|
|
753
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
753
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
754
754
|
command: "view" | "create" | "str_replace" | "insert";
|
|
755
755
|
path: string;
|
|
756
756
|
file_text?: string;
|
|
@@ -759,7 +759,7 @@ declare const anthropicTools: {
|
|
|
759
759
|
insert_text?: string;
|
|
760
760
|
old_str?: string;
|
|
761
761
|
view_range?: number[];
|
|
762
|
-
}, unknown>;
|
|
762
|
+
}, unknown, {}>;
|
|
763
763
|
/**
|
|
764
764
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
765
765
|
*
|
|
@@ -799,7 +799,7 @@ declare const anthropicTools: {
|
|
|
799
799
|
enabled: boolean;
|
|
800
800
|
};
|
|
801
801
|
maxContentTokens?: number;
|
|
802
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
802
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
803
803
|
url: string;
|
|
804
804
|
}, {
|
|
805
805
|
type: "web_fetch_result";
|
|
@@ -821,7 +821,7 @@ declare const anthropicTools: {
|
|
|
821
821
|
};
|
|
822
822
|
};
|
|
823
823
|
retrievedAt: string | null;
|
|
824
|
-
}>;
|
|
824
|
+
}, {}>;
|
|
825
825
|
/**
|
|
826
826
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
827
827
|
*
|
|
@@ -861,7 +861,7 @@ declare const anthropicTools: {
|
|
|
861
861
|
enabled: boolean;
|
|
862
862
|
};
|
|
863
863
|
maxContentTokens?: number;
|
|
864
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
864
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
865
865
|
url: string;
|
|
866
866
|
}, {
|
|
867
867
|
type: "web_fetch_result";
|
|
@@ -883,7 +883,7 @@ declare const anthropicTools: {
|
|
|
883
883
|
};
|
|
884
884
|
};
|
|
885
885
|
retrievedAt: string | null;
|
|
886
|
-
}>;
|
|
886
|
+
}, {}>;
|
|
887
887
|
/**
|
|
888
888
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
889
889
|
*
|
|
@@ -911,7 +911,7 @@ declare const anthropicTools: {
|
|
|
911
911
|
country?: string;
|
|
912
912
|
timezone?: string;
|
|
913
913
|
};
|
|
914
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
914
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
915
915
|
query: string;
|
|
916
916
|
}, {
|
|
917
917
|
type: "web_search_result";
|
|
@@ -919,7 +919,7 @@ declare const anthropicTools: {
|
|
|
919
919
|
title: string | null;
|
|
920
920
|
pageAge: string | null;
|
|
921
921
|
encryptedContent: string;
|
|
922
|
-
}[]>;
|
|
922
|
+
}[], {}>;
|
|
923
923
|
/**
|
|
924
924
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
925
925
|
*
|
|
@@ -947,7 +947,7 @@ declare const anthropicTools: {
|
|
|
947
947
|
country?: string;
|
|
948
948
|
timezone?: string;
|
|
949
949
|
};
|
|
950
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
950
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
951
951
|
query: string;
|
|
952
952
|
}, {
|
|
953
953
|
type: "web_search_result";
|
|
@@ -955,7 +955,7 @@ declare const anthropicTools: {
|
|
|
955
955
|
title: string | null;
|
|
956
956
|
pageAge: string | null;
|
|
957
957
|
encryptedContent: string;
|
|
958
|
-
}[]>;
|
|
958
|
+
}[], {}>;
|
|
959
959
|
/**
|
|
960
960
|
* Creates a tool search tool that uses regex patterns to find tools.
|
|
961
961
|
*
|
|
@@ -975,13 +975,13 @@ declare const anthropicTools: {
|
|
|
975
975
|
}, {
|
|
976
976
|
type: "tool_reference";
|
|
977
977
|
toolName: string;
|
|
978
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
978
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
979
979
|
pattern: string;
|
|
980
980
|
limit?: number;
|
|
981
981
|
}, {
|
|
982
982
|
type: "tool_reference";
|
|
983
983
|
toolName: string;
|
|
984
|
-
}[]>;
|
|
984
|
+
}[], {}>;
|
|
985
985
|
/**
|
|
986
986
|
* Creates a tool search tool that uses BM25 (natural language) to find tools.
|
|
987
987
|
*
|
|
@@ -1001,13 +1001,13 @@ declare const anthropicTools: {
|
|
|
1001
1001
|
}, {
|
|
1002
1002
|
type: "tool_reference";
|
|
1003
1003
|
toolName: string;
|
|
1004
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
1004
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
1005
1005
|
query: string;
|
|
1006
1006
|
limit?: number;
|
|
1007
1007
|
}, {
|
|
1008
1008
|
type: "tool_reference";
|
|
1009
1009
|
toolName: string;
|
|
1010
|
-
}[]>;
|
|
1010
|
+
}[], {}>;
|
|
1011
1011
|
};
|
|
1012
1012
|
|
|
1013
1013
|
interface AnthropicProvider extends ProviderV4 {
|
package/dist/index.d.ts
CHANGED
|
@@ -237,7 +237,7 @@ declare const anthropicTools: {
|
|
|
237
237
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
238
238
|
command: string;
|
|
239
239
|
restart?: boolean;
|
|
240
|
-
}, {}>;
|
|
240
|
+
}, {}, {}>;
|
|
241
241
|
/**
|
|
242
242
|
* The bash tool enables Claude to execute shell commands in a persistent bash session,
|
|
243
243
|
* allowing system operations, script execution, and command-line automation.
|
|
@@ -247,7 +247,7 @@ declare const anthropicTools: {
|
|
|
247
247
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
248
248
|
command: string;
|
|
249
249
|
restart?: boolean;
|
|
250
|
-
}, {}>;
|
|
250
|
+
}, {}, {}>;
|
|
251
251
|
/**
|
|
252
252
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
253
253
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -267,7 +267,7 @@ declare const anthropicTools: {
|
|
|
267
267
|
type: "code_execution_output";
|
|
268
268
|
file_id: string;
|
|
269
269
|
}>;
|
|
270
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
270
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
271
271
|
code: string;
|
|
272
272
|
}, {
|
|
273
273
|
type: "code_execution_result";
|
|
@@ -278,7 +278,7 @@ declare const anthropicTools: {
|
|
|
278
278
|
type: "code_execution_output";
|
|
279
279
|
file_id: string;
|
|
280
280
|
}>;
|
|
281
|
-
}>;
|
|
281
|
+
}, {}>;
|
|
282
282
|
/**
|
|
283
283
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
284
284
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -351,7 +351,7 @@ declare const anthropicTools: {
|
|
|
351
351
|
new_start: number | null;
|
|
352
352
|
old_lines: number | null;
|
|
353
353
|
old_start: number | null;
|
|
354
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
354
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
355
355
|
type: "programmatic-tool-call";
|
|
356
356
|
code: string;
|
|
357
357
|
} | {
|
|
@@ -413,7 +413,7 @@ declare const anthropicTools: {
|
|
|
413
413
|
new_start: number | null;
|
|
414
414
|
old_lines: number | null;
|
|
415
415
|
old_start: number | null;
|
|
416
|
-
}>;
|
|
416
|
+
}, {}>;
|
|
417
417
|
/**
|
|
418
418
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
419
419
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -497,7 +497,7 @@ declare const anthropicTools: {
|
|
|
497
497
|
new_start: number | null;
|
|
498
498
|
old_lines: number | null;
|
|
499
499
|
old_start: number | null;
|
|
500
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
500
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
501
501
|
type: "programmatic-tool-call";
|
|
502
502
|
code: string;
|
|
503
503
|
} | {
|
|
@@ -568,7 +568,7 @@ declare const anthropicTools: {
|
|
|
568
568
|
new_start: number | null;
|
|
569
569
|
old_lines: number | null;
|
|
570
570
|
old_start: number | null;
|
|
571
|
-
}>;
|
|
571
|
+
}, {}>;
|
|
572
572
|
/**
|
|
573
573
|
* Claude can interact with computer environments through the computer use tool, which
|
|
574
574
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -587,7 +587,7 @@ declare const anthropicTools: {
|
|
|
587
587
|
displayWidthPx: number;
|
|
588
588
|
displayHeightPx: number;
|
|
589
589
|
displayNumber?: number;
|
|
590
|
-
}>;
|
|
590
|
+
}, {}>;
|
|
591
591
|
/**
|
|
592
592
|
* Claude can interact with computer environments through the computer use tool, which
|
|
593
593
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -610,7 +610,7 @@ declare const anthropicTools: {
|
|
|
610
610
|
displayWidthPx: number;
|
|
611
611
|
displayHeightPx: number;
|
|
612
612
|
displayNumber?: number;
|
|
613
|
-
}>;
|
|
613
|
+
}, {}>;
|
|
614
614
|
/**
|
|
615
615
|
* Claude can interact with computer environments through the computer use tool, which
|
|
616
616
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -640,7 +640,7 @@ declare const anthropicTools: {
|
|
|
640
640
|
displayHeightPx: number;
|
|
641
641
|
displayNumber?: number;
|
|
642
642
|
enableZoom?: boolean;
|
|
643
|
-
}>;
|
|
643
|
+
}, {}>;
|
|
644
644
|
/**
|
|
645
645
|
* The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
|
|
646
646
|
* Claude can create, read, update, and delete files that persist between sessions,
|
|
@@ -674,7 +674,7 @@ declare const anthropicTools: {
|
|
|
674
674
|
command: "rename";
|
|
675
675
|
old_path: string;
|
|
676
676
|
new_path: string;
|
|
677
|
-
}, {}>;
|
|
677
|
+
}, {}, {}>;
|
|
678
678
|
/**
|
|
679
679
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
680
680
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -691,7 +691,7 @@ declare const anthropicTools: {
|
|
|
691
691
|
insert_text?: string;
|
|
692
692
|
old_str?: string;
|
|
693
693
|
view_range?: number[];
|
|
694
|
-
}, {}>;
|
|
694
|
+
}, {}, {}>;
|
|
695
695
|
/**
|
|
696
696
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
697
697
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -708,7 +708,7 @@ declare const anthropicTools: {
|
|
|
708
708
|
insert_text?: string;
|
|
709
709
|
old_str?: string;
|
|
710
710
|
view_range?: number[];
|
|
711
|
-
}, {}>;
|
|
711
|
+
}, {}, {}>;
|
|
712
712
|
/**
|
|
713
713
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
714
714
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -727,7 +727,7 @@ declare const anthropicTools: {
|
|
|
727
727
|
insert_text?: string;
|
|
728
728
|
old_str?: string;
|
|
729
729
|
view_range?: number[];
|
|
730
|
-
}, {}>;
|
|
730
|
+
}, {}, {}>;
|
|
731
731
|
/**
|
|
732
732
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
733
733
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -750,7 +750,7 @@ declare const anthropicTools: {
|
|
|
750
750
|
view_range?: number[];
|
|
751
751
|
}, {
|
|
752
752
|
maxCharacters?: number;
|
|
753
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
753
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
754
754
|
command: "view" | "create" | "str_replace" | "insert";
|
|
755
755
|
path: string;
|
|
756
756
|
file_text?: string;
|
|
@@ -759,7 +759,7 @@ declare const anthropicTools: {
|
|
|
759
759
|
insert_text?: string;
|
|
760
760
|
old_str?: string;
|
|
761
761
|
view_range?: number[];
|
|
762
|
-
}, unknown>;
|
|
762
|
+
}, unknown, {}>;
|
|
763
763
|
/**
|
|
764
764
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
765
765
|
*
|
|
@@ -799,7 +799,7 @@ declare const anthropicTools: {
|
|
|
799
799
|
enabled: boolean;
|
|
800
800
|
};
|
|
801
801
|
maxContentTokens?: number;
|
|
802
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
802
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
803
803
|
url: string;
|
|
804
804
|
}, {
|
|
805
805
|
type: "web_fetch_result";
|
|
@@ -821,7 +821,7 @@ declare const anthropicTools: {
|
|
|
821
821
|
};
|
|
822
822
|
};
|
|
823
823
|
retrievedAt: string | null;
|
|
824
|
-
}>;
|
|
824
|
+
}, {}>;
|
|
825
825
|
/**
|
|
826
826
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
827
827
|
*
|
|
@@ -861,7 +861,7 @@ declare const anthropicTools: {
|
|
|
861
861
|
enabled: boolean;
|
|
862
862
|
};
|
|
863
863
|
maxContentTokens?: number;
|
|
864
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
864
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
865
865
|
url: string;
|
|
866
866
|
}, {
|
|
867
867
|
type: "web_fetch_result";
|
|
@@ -883,7 +883,7 @@ declare const anthropicTools: {
|
|
|
883
883
|
};
|
|
884
884
|
};
|
|
885
885
|
retrievedAt: string | null;
|
|
886
|
-
}>;
|
|
886
|
+
}, {}>;
|
|
887
887
|
/**
|
|
888
888
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
889
889
|
*
|
|
@@ -911,7 +911,7 @@ declare const anthropicTools: {
|
|
|
911
911
|
country?: string;
|
|
912
912
|
timezone?: string;
|
|
913
913
|
};
|
|
914
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
914
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
915
915
|
query: string;
|
|
916
916
|
}, {
|
|
917
917
|
type: "web_search_result";
|
|
@@ -919,7 +919,7 @@ declare const anthropicTools: {
|
|
|
919
919
|
title: string | null;
|
|
920
920
|
pageAge: string | null;
|
|
921
921
|
encryptedContent: string;
|
|
922
|
-
}[]>;
|
|
922
|
+
}[], {}>;
|
|
923
923
|
/**
|
|
924
924
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
925
925
|
*
|
|
@@ -947,7 +947,7 @@ declare const anthropicTools: {
|
|
|
947
947
|
country?: string;
|
|
948
948
|
timezone?: string;
|
|
949
949
|
};
|
|
950
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
950
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
951
951
|
query: string;
|
|
952
952
|
}, {
|
|
953
953
|
type: "web_search_result";
|
|
@@ -955,7 +955,7 @@ declare const anthropicTools: {
|
|
|
955
955
|
title: string | null;
|
|
956
956
|
pageAge: string | null;
|
|
957
957
|
encryptedContent: string;
|
|
958
|
-
}[]>;
|
|
958
|
+
}[], {}>;
|
|
959
959
|
/**
|
|
960
960
|
* Creates a tool search tool that uses regex patterns to find tools.
|
|
961
961
|
*
|
|
@@ -975,13 +975,13 @@ declare const anthropicTools: {
|
|
|
975
975
|
}, {
|
|
976
976
|
type: "tool_reference";
|
|
977
977
|
toolName: string;
|
|
978
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
978
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
979
979
|
pattern: string;
|
|
980
980
|
limit?: number;
|
|
981
981
|
}, {
|
|
982
982
|
type: "tool_reference";
|
|
983
983
|
toolName: string;
|
|
984
|
-
}[]>;
|
|
984
|
+
}[], {}>;
|
|
985
985
|
/**
|
|
986
986
|
* Creates a tool search tool that uses BM25 (natural language) to find tools.
|
|
987
987
|
*
|
|
@@ -1001,13 +1001,13 @@ declare const anthropicTools: {
|
|
|
1001
1001
|
}, {
|
|
1002
1002
|
type: "tool_reference";
|
|
1003
1003
|
toolName: string;
|
|
1004
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
1004
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
1005
1005
|
query: string;
|
|
1006
1006
|
limit?: number;
|
|
1007
1007
|
}, {
|
|
1008
1008
|
type: "tool_reference";
|
|
1009
1009
|
toolName: string;
|
|
1010
|
-
}[]>;
|
|
1010
|
+
}[], {}>;
|
|
1011
1011
|
};
|
|
1012
1012
|
|
|
1013
1013
|
interface AnthropicProvider extends ProviderV4 {
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var import_provider4 = require("@ai-sdk/provider");
|
|
|
32
32
|
var import_provider_utils26 = require("@ai-sdk/provider-utils");
|
|
33
33
|
|
|
34
34
|
// src/version.ts
|
|
35
|
-
var VERSION = true ? "4.0.0-beta.
|
|
35
|
+
var VERSION = true ? "4.0.0-beta.13" : "0.0.0-test";
|
|
36
36
|
|
|
37
37
|
// src/anthropic-messages-language-model.ts
|
|
38
38
|
var import_provider3 = require("@ai-sdk/provider");
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ declare const anthropicTools: {
|
|
|
69
69
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
70
70
|
command: string;
|
|
71
71
|
restart?: boolean;
|
|
72
|
-
}, {}>;
|
|
72
|
+
}, {}, {}>;
|
|
73
73
|
/**
|
|
74
74
|
* The bash tool enables Claude to execute shell commands in a persistent bash session,
|
|
75
75
|
* allowing system operations, script execution, and command-line automation.
|
|
@@ -79,7 +79,7 @@ declare const anthropicTools: {
|
|
|
79
79
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
80
80
|
command: string;
|
|
81
81
|
restart?: boolean;
|
|
82
|
-
}, {}>;
|
|
82
|
+
}, {}, {}>;
|
|
83
83
|
/**
|
|
84
84
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
85
85
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -99,7 +99,7 @@ declare const anthropicTools: {
|
|
|
99
99
|
type: "code_execution_output";
|
|
100
100
|
file_id: string;
|
|
101
101
|
}>;
|
|
102
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
102
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
103
103
|
code: string;
|
|
104
104
|
}, {
|
|
105
105
|
type: "code_execution_result";
|
|
@@ -110,7 +110,7 @@ declare const anthropicTools: {
|
|
|
110
110
|
type: "code_execution_output";
|
|
111
111
|
file_id: string;
|
|
112
112
|
}>;
|
|
113
|
-
}>;
|
|
113
|
+
}, {}>;
|
|
114
114
|
/**
|
|
115
115
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
116
116
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -183,7 +183,7 @@ declare const anthropicTools: {
|
|
|
183
183
|
new_start: number | null;
|
|
184
184
|
old_lines: number | null;
|
|
185
185
|
old_start: number | null;
|
|
186
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
186
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
187
187
|
type: "programmatic-tool-call";
|
|
188
188
|
code: string;
|
|
189
189
|
} | {
|
|
@@ -245,7 +245,7 @@ declare const anthropicTools: {
|
|
|
245
245
|
new_start: number | null;
|
|
246
246
|
old_lines: number | null;
|
|
247
247
|
old_start: number | null;
|
|
248
|
-
}>;
|
|
248
|
+
}, {}>;
|
|
249
249
|
/**
|
|
250
250
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
251
251
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -329,7 +329,7 @@ declare const anthropicTools: {
|
|
|
329
329
|
new_start: number | null;
|
|
330
330
|
old_lines: number | null;
|
|
331
331
|
old_start: number | null;
|
|
332
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
332
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
333
333
|
type: "programmatic-tool-call";
|
|
334
334
|
code: string;
|
|
335
335
|
} | {
|
|
@@ -400,7 +400,7 @@ declare const anthropicTools: {
|
|
|
400
400
|
new_start: number | null;
|
|
401
401
|
old_lines: number | null;
|
|
402
402
|
old_start: number | null;
|
|
403
|
-
}>;
|
|
403
|
+
}, {}>;
|
|
404
404
|
/**
|
|
405
405
|
* Claude can interact with computer environments through the computer use tool, which
|
|
406
406
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -419,7 +419,7 @@ declare const anthropicTools: {
|
|
|
419
419
|
displayWidthPx: number;
|
|
420
420
|
displayHeightPx: number;
|
|
421
421
|
displayNumber?: number;
|
|
422
|
-
}>;
|
|
422
|
+
}, {}>;
|
|
423
423
|
/**
|
|
424
424
|
* Claude can interact with computer environments through the computer use tool, which
|
|
425
425
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -442,7 +442,7 @@ declare const anthropicTools: {
|
|
|
442
442
|
displayWidthPx: number;
|
|
443
443
|
displayHeightPx: number;
|
|
444
444
|
displayNumber?: number;
|
|
445
|
-
}>;
|
|
445
|
+
}, {}>;
|
|
446
446
|
/**
|
|
447
447
|
* Claude can interact with computer environments through the computer use tool, which
|
|
448
448
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -472,7 +472,7 @@ declare const anthropicTools: {
|
|
|
472
472
|
displayHeightPx: number;
|
|
473
473
|
displayNumber?: number;
|
|
474
474
|
enableZoom?: boolean;
|
|
475
|
-
}>;
|
|
475
|
+
}, {}>;
|
|
476
476
|
/**
|
|
477
477
|
* The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
|
|
478
478
|
* Claude can create, read, update, and delete files that persist between sessions,
|
|
@@ -506,7 +506,7 @@ declare const anthropicTools: {
|
|
|
506
506
|
command: "rename";
|
|
507
507
|
old_path: string;
|
|
508
508
|
new_path: string;
|
|
509
|
-
}, {}>;
|
|
509
|
+
}, {}, {}>;
|
|
510
510
|
/**
|
|
511
511
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
512
512
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -523,7 +523,7 @@ declare const anthropicTools: {
|
|
|
523
523
|
insert_text?: string;
|
|
524
524
|
old_str?: string;
|
|
525
525
|
view_range?: number[];
|
|
526
|
-
}, {}>;
|
|
526
|
+
}, {}, {}>;
|
|
527
527
|
/**
|
|
528
528
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
529
529
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -540,7 +540,7 @@ declare const anthropicTools: {
|
|
|
540
540
|
insert_text?: string;
|
|
541
541
|
old_str?: string;
|
|
542
542
|
view_range?: number[];
|
|
543
|
-
}, {}>;
|
|
543
|
+
}, {}, {}>;
|
|
544
544
|
/**
|
|
545
545
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
546
546
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -559,7 +559,7 @@ declare const anthropicTools: {
|
|
|
559
559
|
insert_text?: string;
|
|
560
560
|
old_str?: string;
|
|
561
561
|
view_range?: number[];
|
|
562
|
-
}, {}>;
|
|
562
|
+
}, {}, {}>;
|
|
563
563
|
/**
|
|
564
564
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
565
565
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -582,7 +582,7 @@ declare const anthropicTools: {
|
|
|
582
582
|
view_range?: number[];
|
|
583
583
|
}, {
|
|
584
584
|
maxCharacters?: number;
|
|
585
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
585
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
586
586
|
command: "view" | "create" | "str_replace" | "insert";
|
|
587
587
|
path: string;
|
|
588
588
|
file_text?: string;
|
|
@@ -591,7 +591,7 @@ declare const anthropicTools: {
|
|
|
591
591
|
insert_text?: string;
|
|
592
592
|
old_str?: string;
|
|
593
593
|
view_range?: number[];
|
|
594
|
-
}, unknown>;
|
|
594
|
+
}, unknown, {}>;
|
|
595
595
|
/**
|
|
596
596
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
597
597
|
*
|
|
@@ -631,7 +631,7 @@ declare const anthropicTools: {
|
|
|
631
631
|
enabled: boolean;
|
|
632
632
|
};
|
|
633
633
|
maxContentTokens?: number;
|
|
634
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
634
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
635
635
|
url: string;
|
|
636
636
|
}, {
|
|
637
637
|
type: "web_fetch_result";
|
|
@@ -653,7 +653,7 @@ declare const anthropicTools: {
|
|
|
653
653
|
};
|
|
654
654
|
};
|
|
655
655
|
retrievedAt: string | null;
|
|
656
|
-
}>;
|
|
656
|
+
}, {}>;
|
|
657
657
|
/**
|
|
658
658
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
659
659
|
*
|
|
@@ -693,7 +693,7 @@ declare const anthropicTools: {
|
|
|
693
693
|
enabled: boolean;
|
|
694
694
|
};
|
|
695
695
|
maxContentTokens?: number;
|
|
696
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
696
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
697
697
|
url: string;
|
|
698
698
|
}, {
|
|
699
699
|
type: "web_fetch_result";
|
|
@@ -715,7 +715,7 @@ declare const anthropicTools: {
|
|
|
715
715
|
};
|
|
716
716
|
};
|
|
717
717
|
retrievedAt: string | null;
|
|
718
|
-
}>;
|
|
718
|
+
}, {}>;
|
|
719
719
|
/**
|
|
720
720
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
721
721
|
*
|
|
@@ -743,7 +743,7 @@ declare const anthropicTools: {
|
|
|
743
743
|
country?: string;
|
|
744
744
|
timezone?: string;
|
|
745
745
|
};
|
|
746
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
746
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
747
747
|
query: string;
|
|
748
748
|
}, {
|
|
749
749
|
type: "web_search_result";
|
|
@@ -751,7 +751,7 @@ declare const anthropicTools: {
|
|
|
751
751
|
title: string | null;
|
|
752
752
|
pageAge: string | null;
|
|
753
753
|
encryptedContent: string;
|
|
754
|
-
}[]>;
|
|
754
|
+
}[], {}>;
|
|
755
755
|
/**
|
|
756
756
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
757
757
|
*
|
|
@@ -779,7 +779,7 @@ declare const anthropicTools: {
|
|
|
779
779
|
country?: string;
|
|
780
780
|
timezone?: string;
|
|
781
781
|
};
|
|
782
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
782
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
783
783
|
query: string;
|
|
784
784
|
}, {
|
|
785
785
|
type: "web_search_result";
|
|
@@ -787,7 +787,7 @@ declare const anthropicTools: {
|
|
|
787
787
|
title: string | null;
|
|
788
788
|
pageAge: string | null;
|
|
789
789
|
encryptedContent: string;
|
|
790
|
-
}[]>;
|
|
790
|
+
}[], {}>;
|
|
791
791
|
/**
|
|
792
792
|
* Creates a tool search tool that uses regex patterns to find tools.
|
|
793
793
|
*
|
|
@@ -807,13 +807,13 @@ declare const anthropicTools: {
|
|
|
807
807
|
}, {
|
|
808
808
|
type: "tool_reference";
|
|
809
809
|
toolName: string;
|
|
810
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
810
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
811
811
|
pattern: string;
|
|
812
812
|
limit?: number;
|
|
813
813
|
}, {
|
|
814
814
|
type: "tool_reference";
|
|
815
815
|
toolName: string;
|
|
816
|
-
}[]>;
|
|
816
|
+
}[], {}>;
|
|
817
817
|
/**
|
|
818
818
|
* Creates a tool search tool that uses BM25 (natural language) to find tools.
|
|
819
819
|
*
|
|
@@ -833,13 +833,13 @@ declare const anthropicTools: {
|
|
|
833
833
|
}, {
|
|
834
834
|
type: "tool_reference";
|
|
835
835
|
toolName: string;
|
|
836
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
836
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
837
837
|
query: string;
|
|
838
838
|
limit?: number;
|
|
839
839
|
}, {
|
|
840
840
|
type: "tool_reference";
|
|
841
841
|
toolName: string;
|
|
842
|
-
}[]>;
|
|
842
|
+
}[], {}>;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
845
|
type AnthropicCacheControl = {
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare const anthropicTools: {
|
|
|
69
69
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
70
70
|
command: string;
|
|
71
71
|
restart?: boolean;
|
|
72
|
-
}, {}>;
|
|
72
|
+
}, {}, {}>;
|
|
73
73
|
/**
|
|
74
74
|
* The bash tool enables Claude to execute shell commands in a persistent bash session,
|
|
75
75
|
* allowing system operations, script execution, and command-line automation.
|
|
@@ -79,7 +79,7 @@ declare const anthropicTools: {
|
|
|
79
79
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
80
80
|
command: string;
|
|
81
81
|
restart?: boolean;
|
|
82
|
-
}, {}>;
|
|
82
|
+
}, {}, {}>;
|
|
83
83
|
/**
|
|
84
84
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
85
85
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -99,7 +99,7 @@ declare const anthropicTools: {
|
|
|
99
99
|
type: "code_execution_output";
|
|
100
100
|
file_id: string;
|
|
101
101
|
}>;
|
|
102
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
102
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
103
103
|
code: string;
|
|
104
104
|
}, {
|
|
105
105
|
type: "code_execution_result";
|
|
@@ -110,7 +110,7 @@ declare const anthropicTools: {
|
|
|
110
110
|
type: "code_execution_output";
|
|
111
111
|
file_id: string;
|
|
112
112
|
}>;
|
|
113
|
-
}>;
|
|
113
|
+
}, {}>;
|
|
114
114
|
/**
|
|
115
115
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
116
116
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -183,7 +183,7 @@ declare const anthropicTools: {
|
|
|
183
183
|
new_start: number | null;
|
|
184
184
|
old_lines: number | null;
|
|
185
185
|
old_start: number | null;
|
|
186
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
186
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
187
187
|
type: "programmatic-tool-call";
|
|
188
188
|
code: string;
|
|
189
189
|
} | {
|
|
@@ -245,7 +245,7 @@ declare const anthropicTools: {
|
|
|
245
245
|
new_start: number | null;
|
|
246
246
|
old_lines: number | null;
|
|
247
247
|
old_start: number | null;
|
|
248
|
-
}>;
|
|
248
|
+
}, {}>;
|
|
249
249
|
/**
|
|
250
250
|
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
251
251
|
* run system commands, create and edit files, and process uploaded files directly within
|
|
@@ -329,7 +329,7 @@ declare const anthropicTools: {
|
|
|
329
329
|
new_start: number | null;
|
|
330
330
|
old_lines: number | null;
|
|
331
331
|
old_start: number | null;
|
|
332
|
-
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
332
|
+
}, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
333
333
|
type: "programmatic-tool-call";
|
|
334
334
|
code: string;
|
|
335
335
|
} | {
|
|
@@ -400,7 +400,7 @@ declare const anthropicTools: {
|
|
|
400
400
|
new_start: number | null;
|
|
401
401
|
old_lines: number | null;
|
|
402
402
|
old_start: number | null;
|
|
403
|
-
}>;
|
|
403
|
+
}, {}>;
|
|
404
404
|
/**
|
|
405
405
|
* Claude can interact with computer environments through the computer use tool, which
|
|
406
406
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -419,7 +419,7 @@ declare const anthropicTools: {
|
|
|
419
419
|
displayWidthPx: number;
|
|
420
420
|
displayHeightPx: number;
|
|
421
421
|
displayNumber?: number;
|
|
422
|
-
}>;
|
|
422
|
+
}, {}>;
|
|
423
423
|
/**
|
|
424
424
|
* Claude can interact with computer environments through the computer use tool, which
|
|
425
425
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -442,7 +442,7 @@ declare const anthropicTools: {
|
|
|
442
442
|
displayWidthPx: number;
|
|
443
443
|
displayHeightPx: number;
|
|
444
444
|
displayNumber?: number;
|
|
445
|
-
}>;
|
|
445
|
+
}, {}>;
|
|
446
446
|
/**
|
|
447
447
|
* Claude can interact with computer environments through the computer use tool, which
|
|
448
448
|
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
@@ -472,7 +472,7 @@ declare const anthropicTools: {
|
|
|
472
472
|
displayHeightPx: number;
|
|
473
473
|
displayNumber?: number;
|
|
474
474
|
enableZoom?: boolean;
|
|
475
|
-
}>;
|
|
475
|
+
}, {}>;
|
|
476
476
|
/**
|
|
477
477
|
* The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
|
|
478
478
|
* Claude can create, read, update, and delete files that persist between sessions,
|
|
@@ -506,7 +506,7 @@ declare const anthropicTools: {
|
|
|
506
506
|
command: "rename";
|
|
507
507
|
old_path: string;
|
|
508
508
|
new_path: string;
|
|
509
|
-
}, {}>;
|
|
509
|
+
}, {}, {}>;
|
|
510
510
|
/**
|
|
511
511
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
512
512
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -523,7 +523,7 @@ declare const anthropicTools: {
|
|
|
523
523
|
insert_text?: string;
|
|
524
524
|
old_str?: string;
|
|
525
525
|
view_range?: number[];
|
|
526
|
-
}, {}>;
|
|
526
|
+
}, {}, {}>;
|
|
527
527
|
/**
|
|
528
528
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
529
529
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -540,7 +540,7 @@ declare const anthropicTools: {
|
|
|
540
540
|
insert_text?: string;
|
|
541
541
|
old_str?: string;
|
|
542
542
|
view_range?: number[];
|
|
543
|
-
}, {}>;
|
|
543
|
+
}, {}, {}>;
|
|
544
544
|
/**
|
|
545
545
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
546
546
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -559,7 +559,7 @@ declare const anthropicTools: {
|
|
|
559
559
|
insert_text?: string;
|
|
560
560
|
old_str?: string;
|
|
561
561
|
view_range?: number[];
|
|
562
|
-
}, {}>;
|
|
562
|
+
}, {}, {}>;
|
|
563
563
|
/**
|
|
564
564
|
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
565
565
|
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
@@ -582,7 +582,7 @@ declare const anthropicTools: {
|
|
|
582
582
|
view_range?: number[];
|
|
583
583
|
}, {
|
|
584
584
|
maxCharacters?: number;
|
|
585
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
585
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
586
586
|
command: "view" | "create" | "str_replace" | "insert";
|
|
587
587
|
path: string;
|
|
588
588
|
file_text?: string;
|
|
@@ -591,7 +591,7 @@ declare const anthropicTools: {
|
|
|
591
591
|
insert_text?: string;
|
|
592
592
|
old_str?: string;
|
|
593
593
|
view_range?: number[];
|
|
594
|
-
}, unknown>;
|
|
594
|
+
}, unknown, {}>;
|
|
595
595
|
/**
|
|
596
596
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
597
597
|
*
|
|
@@ -631,7 +631,7 @@ declare const anthropicTools: {
|
|
|
631
631
|
enabled: boolean;
|
|
632
632
|
};
|
|
633
633
|
maxContentTokens?: number;
|
|
634
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
634
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
635
635
|
url: string;
|
|
636
636
|
}, {
|
|
637
637
|
type: "web_fetch_result";
|
|
@@ -653,7 +653,7 @@ declare const anthropicTools: {
|
|
|
653
653
|
};
|
|
654
654
|
};
|
|
655
655
|
retrievedAt: string | null;
|
|
656
|
-
}>;
|
|
656
|
+
}, {}>;
|
|
657
657
|
/**
|
|
658
658
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
659
659
|
*
|
|
@@ -693,7 +693,7 @@ declare const anthropicTools: {
|
|
|
693
693
|
enabled: boolean;
|
|
694
694
|
};
|
|
695
695
|
maxContentTokens?: number;
|
|
696
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
696
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
697
697
|
url: string;
|
|
698
698
|
}, {
|
|
699
699
|
type: "web_fetch_result";
|
|
@@ -715,7 +715,7 @@ declare const anthropicTools: {
|
|
|
715
715
|
};
|
|
716
716
|
};
|
|
717
717
|
retrievedAt: string | null;
|
|
718
|
-
}>;
|
|
718
|
+
}, {}>;
|
|
719
719
|
/**
|
|
720
720
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
721
721
|
*
|
|
@@ -743,7 +743,7 @@ declare const anthropicTools: {
|
|
|
743
743
|
country?: string;
|
|
744
744
|
timezone?: string;
|
|
745
745
|
};
|
|
746
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
746
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
747
747
|
query: string;
|
|
748
748
|
}, {
|
|
749
749
|
type: "web_search_result";
|
|
@@ -751,7 +751,7 @@ declare const anthropicTools: {
|
|
|
751
751
|
title: string | null;
|
|
752
752
|
pageAge: string | null;
|
|
753
753
|
encryptedContent: string;
|
|
754
|
-
}[]>;
|
|
754
|
+
}[], {}>;
|
|
755
755
|
/**
|
|
756
756
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
757
757
|
*
|
|
@@ -779,7 +779,7 @@ declare const anthropicTools: {
|
|
|
779
779
|
country?: string;
|
|
780
780
|
timezone?: string;
|
|
781
781
|
};
|
|
782
|
-
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
782
|
+
}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
783
783
|
query: string;
|
|
784
784
|
}, {
|
|
785
785
|
type: "web_search_result";
|
|
@@ -787,7 +787,7 @@ declare const anthropicTools: {
|
|
|
787
787
|
title: string | null;
|
|
788
788
|
pageAge: string | null;
|
|
789
789
|
encryptedContent: string;
|
|
790
|
-
}[]>;
|
|
790
|
+
}[], {}>;
|
|
791
791
|
/**
|
|
792
792
|
* Creates a tool search tool that uses regex patterns to find tools.
|
|
793
793
|
*
|
|
@@ -807,13 +807,13 @@ declare const anthropicTools: {
|
|
|
807
807
|
}, {
|
|
808
808
|
type: "tool_reference";
|
|
809
809
|
toolName: string;
|
|
810
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
810
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
811
811
|
pattern: string;
|
|
812
812
|
limit?: number;
|
|
813
813
|
}, {
|
|
814
814
|
type: "tool_reference";
|
|
815
815
|
toolName: string;
|
|
816
|
-
}[]>;
|
|
816
|
+
}[], {}>;
|
|
817
817
|
/**
|
|
818
818
|
* Creates a tool search tool that uses BM25 (natural language) to find tools.
|
|
819
819
|
*
|
|
@@ -833,13 +833,13 @@ declare const anthropicTools: {
|
|
|
833
833
|
}, {
|
|
834
834
|
type: "tool_reference";
|
|
835
835
|
toolName: string;
|
|
836
|
-
}[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
836
|
+
}[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
837
837
|
query: string;
|
|
838
838
|
limit?: number;
|
|
839
839
|
}, {
|
|
840
840
|
type: "tool_reference";
|
|
841
841
|
toolName: string;
|
|
842
|
-
}[]>;
|
|
842
|
+
}[], {}>;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
845
|
type AnthropicCacheControl = {
|
package/docs/05-anthropic.mdx
CHANGED
|
@@ -1161,12 +1161,12 @@ import {
|
|
|
1161
1161
|
anthropic,
|
|
1162
1162
|
forwardAnthropicContainerIdFromLastStep,
|
|
1163
1163
|
} from '@ai-sdk/anthropic';
|
|
1164
|
-
import { generateText, tool,
|
|
1164
|
+
import { generateText, tool, isStepCount } from 'ai';
|
|
1165
1165
|
import { z } from 'zod';
|
|
1166
1166
|
|
|
1167
1167
|
const result = await generateText({
|
|
1168
1168
|
model: anthropic('claude-sonnet-4-5'),
|
|
1169
|
-
stopWhen:
|
|
1169
|
+
stopWhen: isStepCount(10),
|
|
1170
1170
|
prompt:
|
|
1171
1171
|
'Get the weather for Tokyo, Sydney, and London, then calculate the average temperature.',
|
|
1172
1172
|
tools: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/anthropic",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.13",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ai-sdk/provider": "4.0.0-beta.5",
|
|
40
|
-
"@ai-sdk/provider-utils": "5.0.0-beta.
|
|
40
|
+
"@ai-sdk/provider-utils": "5.0.0-beta.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|