@fairyhunter13/ai-anthropic 3.0.58-fork.27 → 3.0.58-fork.29

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 CHANGED
@@ -1,5 +1,43 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.0-beta.17
4
+
5
+ ### Patch Changes
6
+
7
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
8
+ - Updated dependencies [c29a26f]
9
+ - @ai-sdk/provider-utils@5.0.0-beta.10
10
+ - @ai-sdk/provider@4.0.0-beta.6
11
+
12
+ ## 4.0.0-beta.16
13
+
14
+ ### Patch Changes
15
+
16
+ - 38fc777: Add AI Gateway hint to provider READMEs
17
+
18
+ ## 4.0.0-beta.15
19
+
20
+ ### Patch Changes
21
+
22
+ - f57c702: fix(anthropic): allow both temperature and topP for non-Anthropic models using the Anthropic-compatible API
23
+
24
+ The temperature/topP mutual exclusivity check now only applies to known Anthropic models (model IDs starting with `claude-`). Non-Anthropic models using the Anthropic-compatible API (e.g. Minimax) can now send both parameters as required by their APIs.
25
+
26
+ ## 4.0.0-beta.14
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [2e17091]
31
+ - @ai-sdk/provider-utils@5.0.0-beta.9
32
+
33
+ ## 4.0.0-beta.13
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [986c6fd]
38
+ - Updated dependencies [493295c]
39
+ - @ai-sdk/provider-utils@5.0.0-beta.8
40
+
3
41
  ## 4.0.0-beta.12
4
42
 
5
43
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Anthropic (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
+
5
7
  ## Setup
6
8
 
7
9
  The Anthropic provider is available in the `@ai-sdk/anthropic` module. You can install it with
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSONObject, ProviderV4, LanguageModelV4 } from '@ai-sdk/provider';
1
+ import { JSONObject, ProviderV4, LanguageModelV4, FilesV4 } from '@ai-sdk/provider';
2
2
  import { z } from 'zod/v4';
3
3
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
4
4
  import { FetchFunction } from '@ai-sdk/provider-utils';
@@ -249,7 +249,7 @@ declare const anthropicTools: {
249
249
  bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
250
250
  command: string;
251
251
  restart?: boolean;
252
- }, {}>;
252
+ }, {}, {}>;
253
253
  /**
254
254
  * The bash tool enables Claude to execute shell commands in a persistent bash session,
255
255
  * allowing system operations, script execution, and command-line automation.
@@ -259,7 +259,7 @@ declare const anthropicTools: {
259
259
  bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
260
260
  command: string;
261
261
  restart?: boolean;
262
- }, {}>;
262
+ }, {}, {}>;
263
263
  /**
264
264
  * Claude can analyze data, create visualizations, perform complex calculations,
265
265
  * run system commands, create and edit files, and process uploaded files directly within
@@ -279,7 +279,7 @@ declare const anthropicTools: {
279
279
  type: "code_execution_output";
280
280
  file_id: string;
281
281
  }>;
282
- }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
282
+ }, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
283
283
  code: string;
284
284
  }, {
285
285
  type: "code_execution_result";
@@ -290,7 +290,7 @@ declare const anthropicTools: {
290
290
  type: "code_execution_output";
291
291
  file_id: string;
292
292
  }>;
293
- }>;
293
+ }, {}>;
294
294
  /**
295
295
  * Claude can analyze data, create visualizations, perform complex calculations,
296
296
  * run system commands, create and edit files, and process uploaded files directly within
@@ -363,7 +363,7 @@ declare const anthropicTools: {
363
363
  new_start: number | null;
364
364
  old_lines: number | null;
365
365
  old_start: number | null;
366
- }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
366
+ }, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
367
367
  type: "programmatic-tool-call";
368
368
  code: string;
369
369
  } | {
@@ -425,7 +425,7 @@ declare const anthropicTools: {
425
425
  new_start: number | null;
426
426
  old_lines: number | null;
427
427
  old_start: number | null;
428
- }>;
428
+ }, {}>;
429
429
  /**
430
430
  * Claude can analyze data, create visualizations, perform complex calculations,
431
431
  * run system commands, create and edit files, and process uploaded files directly within
@@ -509,7 +509,7 @@ declare const anthropicTools: {
509
509
  new_start: number | null;
510
510
  old_lines: number | null;
511
511
  old_start: number | null;
512
- }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
512
+ }, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
513
513
  type: "programmatic-tool-call";
514
514
  code: string;
515
515
  } | {
@@ -580,7 +580,7 @@ declare const anthropicTools: {
580
580
  new_start: number | null;
581
581
  old_lines: number | null;
582
582
  old_start: number | null;
583
- }>;
583
+ }, {}>;
584
584
  /**
585
585
  * Claude can interact with computer environments through the computer use tool, which
586
586
  * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
@@ -599,7 +599,7 @@ declare const anthropicTools: {
599
599
  displayWidthPx: number;
600
600
  displayHeightPx: number;
601
601
  displayNumber?: number;
602
- }>;
602
+ }, {}>;
603
603
  /**
604
604
  * Claude can interact with computer environments through the computer use tool, which
605
605
  * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
@@ -622,7 +622,7 @@ declare const anthropicTools: {
622
622
  displayWidthPx: number;
623
623
  displayHeightPx: number;
624
624
  displayNumber?: number;
625
- }>;
625
+ }, {}>;
626
626
  /**
627
627
  * Claude can interact with computer environments through the computer use tool, which
628
628
  * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
@@ -652,7 +652,7 @@ declare const anthropicTools: {
652
652
  displayHeightPx: number;
653
653
  displayNumber?: number;
654
654
  enableZoom?: boolean;
655
- }>;
655
+ }, {}>;
656
656
  /**
657
657
  * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
658
658
  * Claude can create, read, update, and delete files that persist between sessions,
@@ -686,7 +686,7 @@ declare const anthropicTools: {
686
686
  command: "rename";
687
687
  old_path: string;
688
688
  new_path: string;
689
- }, {}>;
689
+ }, {}, {}>;
690
690
  /**
691
691
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
692
692
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -703,7 +703,7 @@ declare const anthropicTools: {
703
703
  insert_text?: string;
704
704
  old_str?: string;
705
705
  view_range?: number[];
706
- }, {}>;
706
+ }, {}, {}>;
707
707
  /**
708
708
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
709
709
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -720,7 +720,7 @@ declare const anthropicTools: {
720
720
  insert_text?: string;
721
721
  old_str?: string;
722
722
  view_range?: number[];
723
- }, {}>;
723
+ }, {}, {}>;
724
724
  /**
725
725
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
726
726
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -739,7 +739,7 @@ declare const anthropicTools: {
739
739
  insert_text?: string;
740
740
  old_str?: string;
741
741
  view_range?: number[];
742
- }, {}>;
742
+ }, {}, {}>;
743
743
  /**
744
744
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
745
745
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -762,7 +762,7 @@ declare const anthropicTools: {
762
762
  view_range?: number[];
763
763
  }, {
764
764
  maxCharacters?: number;
765
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
765
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
766
766
  command: "view" | "create" | "str_replace" | "insert";
767
767
  path: string;
768
768
  file_text?: string;
@@ -771,7 +771,7 @@ declare const anthropicTools: {
771
771
  insert_text?: string;
772
772
  old_str?: string;
773
773
  view_range?: number[];
774
- }, unknown>;
774
+ }, unknown, {}>;
775
775
  /**
776
776
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
777
777
  *
@@ -811,7 +811,7 @@ declare const anthropicTools: {
811
811
  enabled: boolean;
812
812
  };
813
813
  maxContentTokens?: number;
814
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
814
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
815
815
  url: string;
816
816
  }, {
817
817
  type: "web_fetch_result";
@@ -833,7 +833,7 @@ declare const anthropicTools: {
833
833
  };
834
834
  };
835
835
  retrievedAt: string | null;
836
- }>;
836
+ }, {}>;
837
837
  /**
838
838
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
839
839
  *
@@ -873,7 +873,7 @@ declare const anthropicTools: {
873
873
  enabled: boolean;
874
874
  };
875
875
  maxContentTokens?: number;
876
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
876
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
877
877
  url: string;
878
878
  }, {
879
879
  type: "web_fetch_result";
@@ -895,7 +895,7 @@ declare const anthropicTools: {
895
895
  };
896
896
  };
897
897
  retrievedAt: string | null;
898
- }>;
898
+ }, {}>;
899
899
  /**
900
900
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
901
901
  * GA version (no beta header required). Includes caller restrictions, cache control,
@@ -945,7 +945,7 @@ declare const anthropicTools: {
945
945
  useCache?: boolean;
946
946
  deferLoading?: boolean;
947
947
  strict?: boolean;
948
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
948
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
949
949
  url: string;
950
950
  }, {
951
951
  type: "web_fetch_result";
@@ -967,7 +967,7 @@ declare const anthropicTools: {
967
967
  };
968
968
  };
969
969
  retrievedAt: string | null;
970
- }>;
970
+ }, {}>;
971
971
  /**
972
972
  * Creates a web search tool that gives Claude direct access to real-time web content.
973
973
  *
@@ -995,7 +995,7 @@ declare const anthropicTools: {
995
995
  country?: string;
996
996
  timezone?: string;
997
997
  };
998
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
998
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
999
999
  query: string;
1000
1000
  }, {
1001
1001
  type: "web_search_result";
@@ -1003,7 +1003,7 @@ declare const anthropicTools: {
1003
1003
  title: string | null;
1004
1004
  pageAge: string | null;
1005
1005
  encryptedContent: string;
1006
- }[]>;
1006
+ }[], {}>;
1007
1007
  /**
1008
1008
  * Creates a web search tool that gives Claude direct access to real-time web content.
1009
1009
  *
@@ -1032,7 +1032,7 @@ declare const anthropicTools: {
1032
1032
  timezone?: string;
1033
1033
  };
1034
1034
  allowedCallers?: Array<"direct" | "code_execution_20250825" | "code_execution_20260120">;
1035
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
1035
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1036
1036
  query: string;
1037
1037
  }, {
1038
1038
  type: "web_search_result";
@@ -1040,7 +1040,7 @@ declare const anthropicTools: {
1040
1040
  title: string | null;
1041
1041
  pageAge: string | null;
1042
1042
  encryptedContent: string;
1043
- }[]>;
1043
+ }[], {}>;
1044
1044
  /**
1045
1045
  * Creates a tool search tool that uses regex patterns to find tools.
1046
1046
  *
@@ -1060,13 +1060,13 @@ declare const anthropicTools: {
1060
1060
  }, {
1061
1061
  type: "tool_reference";
1062
1062
  toolName: string;
1063
- }[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1063
+ }[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1064
1064
  pattern: string;
1065
1065
  limit?: number;
1066
1066
  }, {
1067
1067
  type: "tool_reference";
1068
1068
  toolName: string;
1069
- }[]>;
1069
+ }[], {}>;
1070
1070
  /**
1071
1071
  * Creates a tool search tool that uses BM25 (natural language) to find tools.
1072
1072
  *
@@ -1086,13 +1086,13 @@ declare const anthropicTools: {
1086
1086
  }, {
1087
1087
  type: "tool_reference";
1088
1088
  toolName: string;
1089
- }[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1089
+ }[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1090
1090
  query: string;
1091
1091
  limit?: number;
1092
1092
  }, {
1093
1093
  type: "tool_reference";
1094
1094
  toolName: string;
1095
- }[]>;
1095
+ }[], {}>;
1096
1096
  };
1097
1097
 
1098
1098
  interface AnthropicProvider extends ProviderV4 {
@@ -1110,6 +1110,7 @@ interface AnthropicProvider extends ProviderV4 {
1110
1110
  * @deprecated Use `embeddingModel` instead.
1111
1111
  */
1112
1112
  textEmbeddingModel(modelId: string): never;
1113
+ files(): FilesV4;
1113
1114
  /**
1114
1115
  * Anthropic-specific computer use tool.
1115
1116
  */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSONObject, ProviderV4, LanguageModelV4 } from '@ai-sdk/provider';
1
+ import { JSONObject, ProviderV4, LanguageModelV4, FilesV4 } from '@ai-sdk/provider';
2
2
  import { z } from 'zod/v4';
3
3
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
4
4
  import { FetchFunction } from '@ai-sdk/provider-utils';
@@ -249,7 +249,7 @@ declare const anthropicTools: {
249
249
  bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
250
250
  command: string;
251
251
  restart?: boolean;
252
- }, {}>;
252
+ }, {}, {}>;
253
253
  /**
254
254
  * The bash tool enables Claude to execute shell commands in a persistent bash session,
255
255
  * allowing system operations, script execution, and command-line automation.
@@ -259,7 +259,7 @@ declare const anthropicTools: {
259
259
  bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
260
260
  command: string;
261
261
  restart?: boolean;
262
- }, {}>;
262
+ }, {}, {}>;
263
263
  /**
264
264
  * Claude can analyze data, create visualizations, perform complex calculations,
265
265
  * run system commands, create and edit files, and process uploaded files directly within
@@ -279,7 +279,7 @@ declare const anthropicTools: {
279
279
  type: "code_execution_output";
280
280
  file_id: string;
281
281
  }>;
282
- }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
282
+ }, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
283
283
  code: string;
284
284
  }, {
285
285
  type: "code_execution_result";
@@ -290,7 +290,7 @@ declare const anthropicTools: {
290
290
  type: "code_execution_output";
291
291
  file_id: string;
292
292
  }>;
293
- }>;
293
+ }, {}>;
294
294
  /**
295
295
  * Claude can analyze data, create visualizations, perform complex calculations,
296
296
  * run system commands, create and edit files, and process uploaded files directly within
@@ -363,7 +363,7 @@ declare const anthropicTools: {
363
363
  new_start: number | null;
364
364
  old_lines: number | null;
365
365
  old_start: number | null;
366
- }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
366
+ }, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
367
367
  type: "programmatic-tool-call";
368
368
  code: string;
369
369
  } | {
@@ -425,7 +425,7 @@ declare const anthropicTools: {
425
425
  new_start: number | null;
426
426
  old_lines: number | null;
427
427
  old_start: number | null;
428
- }>;
428
+ }, {}>;
429
429
  /**
430
430
  * Claude can analyze data, create visualizations, perform complex calculations,
431
431
  * run system commands, create and edit files, and process uploaded files directly within
@@ -509,7 +509,7 @@ declare const anthropicTools: {
509
509
  new_start: number | null;
510
510
  old_lines: number | null;
511
511
  old_start: number | null;
512
- }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
512
+ }, {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
513
513
  type: "programmatic-tool-call";
514
514
  code: string;
515
515
  } | {
@@ -580,7 +580,7 @@ declare const anthropicTools: {
580
580
  new_start: number | null;
581
581
  old_lines: number | null;
582
582
  old_start: number | null;
583
- }>;
583
+ }, {}>;
584
584
  /**
585
585
  * Claude can interact with computer environments through the computer use tool, which
586
586
  * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
@@ -599,7 +599,7 @@ declare const anthropicTools: {
599
599
  displayWidthPx: number;
600
600
  displayHeightPx: number;
601
601
  displayNumber?: number;
602
- }>;
602
+ }, {}>;
603
603
  /**
604
604
  * Claude can interact with computer environments through the computer use tool, which
605
605
  * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
@@ -622,7 +622,7 @@ declare const anthropicTools: {
622
622
  displayWidthPx: number;
623
623
  displayHeightPx: number;
624
624
  displayNumber?: number;
625
- }>;
625
+ }, {}>;
626
626
  /**
627
627
  * Claude can interact with computer environments through the computer use tool, which
628
628
  * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
@@ -652,7 +652,7 @@ declare const anthropicTools: {
652
652
  displayHeightPx: number;
653
653
  displayNumber?: number;
654
654
  enableZoom?: boolean;
655
- }>;
655
+ }, {}>;
656
656
  /**
657
657
  * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
658
658
  * Claude can create, read, update, and delete files that persist between sessions,
@@ -686,7 +686,7 @@ declare const anthropicTools: {
686
686
  command: "rename";
687
687
  old_path: string;
688
688
  new_path: string;
689
- }, {}>;
689
+ }, {}, {}>;
690
690
  /**
691
691
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
692
692
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -703,7 +703,7 @@ declare const anthropicTools: {
703
703
  insert_text?: string;
704
704
  old_str?: string;
705
705
  view_range?: number[];
706
- }, {}>;
706
+ }, {}, {}>;
707
707
  /**
708
708
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
709
709
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -720,7 +720,7 @@ declare const anthropicTools: {
720
720
  insert_text?: string;
721
721
  old_str?: string;
722
722
  view_range?: number[];
723
- }, {}>;
723
+ }, {}, {}>;
724
724
  /**
725
725
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
726
726
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -739,7 +739,7 @@ declare const anthropicTools: {
739
739
  insert_text?: string;
740
740
  old_str?: string;
741
741
  view_range?: number[];
742
- }, {}>;
742
+ }, {}, {}>;
743
743
  /**
744
744
  * Claude can use an Anthropic-defined text editor tool to view and modify text files,
745
745
  * helping you debug, fix, and improve your code or other text documents. This allows Claude
@@ -762,7 +762,7 @@ declare const anthropicTools: {
762
762
  view_range?: number[];
763
763
  }, {
764
764
  maxCharacters?: number;
765
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
765
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
766
766
  command: "view" | "create" | "str_replace" | "insert";
767
767
  path: string;
768
768
  file_text?: string;
@@ -771,7 +771,7 @@ declare const anthropicTools: {
771
771
  insert_text?: string;
772
772
  old_str?: string;
773
773
  view_range?: number[];
774
- }, unknown>;
774
+ }, unknown, {}>;
775
775
  /**
776
776
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
777
777
  *
@@ -811,7 +811,7 @@ declare const anthropicTools: {
811
811
  enabled: boolean;
812
812
  };
813
813
  maxContentTokens?: number;
814
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
814
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
815
815
  url: string;
816
816
  }, {
817
817
  type: "web_fetch_result";
@@ -833,7 +833,7 @@ declare const anthropicTools: {
833
833
  };
834
834
  };
835
835
  retrievedAt: string | null;
836
- }>;
836
+ }, {}>;
837
837
  /**
838
838
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
839
839
  *
@@ -873,7 +873,7 @@ declare const anthropicTools: {
873
873
  enabled: boolean;
874
874
  };
875
875
  maxContentTokens?: number;
876
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
876
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
877
877
  url: string;
878
878
  }, {
879
879
  type: "web_fetch_result";
@@ -895,7 +895,7 @@ declare const anthropicTools: {
895
895
  };
896
896
  };
897
897
  retrievedAt: string | null;
898
- }>;
898
+ }, {}>;
899
899
  /**
900
900
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
901
901
  * GA version (no beta header required). Includes caller restrictions, cache control,
@@ -945,7 +945,7 @@ declare const anthropicTools: {
945
945
  useCache?: boolean;
946
946
  deferLoading?: boolean;
947
947
  strict?: boolean;
948
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
948
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
949
949
  url: string;
950
950
  }, {
951
951
  type: "web_fetch_result";
@@ -967,7 +967,7 @@ declare const anthropicTools: {
967
967
  };
968
968
  };
969
969
  retrievedAt: string | null;
970
- }>;
970
+ }, {}>;
971
971
  /**
972
972
  * Creates a web search tool that gives Claude direct access to real-time web content.
973
973
  *
@@ -995,7 +995,7 @@ declare const anthropicTools: {
995
995
  country?: string;
996
996
  timezone?: string;
997
997
  };
998
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
998
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
999
999
  query: string;
1000
1000
  }, {
1001
1001
  type: "web_search_result";
@@ -1003,7 +1003,7 @@ declare const anthropicTools: {
1003
1003
  title: string | null;
1004
1004
  pageAge: string | null;
1005
1005
  encryptedContent: string;
1006
- }[]>;
1006
+ }[], {}>;
1007
1007
  /**
1008
1008
  * Creates a web search tool that gives Claude direct access to real-time web content.
1009
1009
  *
@@ -1032,7 +1032,7 @@ declare const anthropicTools: {
1032
1032
  timezone?: string;
1033
1033
  };
1034
1034
  allowedCallers?: Array<"direct" | "code_execution_20250825" | "code_execution_20260120">;
1035
- }>>[0]) => _ai_sdk_provider_utils.Tool<{
1035
+ }, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1036
1036
  query: string;
1037
1037
  }, {
1038
1038
  type: "web_search_result";
@@ -1040,7 +1040,7 @@ declare const anthropicTools: {
1040
1040
  title: string | null;
1041
1041
  pageAge: string | null;
1042
1042
  encryptedContent: string;
1043
- }[]>;
1043
+ }[], {}>;
1044
1044
  /**
1045
1045
  * Creates a tool search tool that uses regex patterns to find tools.
1046
1046
  *
@@ -1060,13 +1060,13 @@ declare const anthropicTools: {
1060
1060
  }, {
1061
1061
  type: "tool_reference";
1062
1062
  toolName: string;
1063
- }[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1063
+ }[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1064
1064
  pattern: string;
1065
1065
  limit?: number;
1066
1066
  }, {
1067
1067
  type: "tool_reference";
1068
1068
  toolName: string;
1069
- }[]>;
1069
+ }[], {}>;
1070
1070
  /**
1071
1071
  * Creates a tool search tool that uses BM25 (natural language) to find tools.
1072
1072
  *
@@ -1086,13 +1086,13 @@ declare const anthropicTools: {
1086
1086
  }, {
1087
1087
  type: "tool_reference";
1088
1088
  toolName: string;
1089
- }[], {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1089
+ }[], {}, {}>>[0]) => _ai_sdk_provider_utils.Tool<{
1090
1090
  query: string;
1091
1091
  limit?: number;
1092
1092
  }, {
1093
1093
  type: "tool_reference";
1094
1094
  toolName: string;
1095
- }[]>;
1095
+ }[], {}>;
1096
1096
  };
1097
1097
 
1098
1098
  interface AnthropicProvider extends ProviderV4 {
@@ -1110,6 +1110,7 @@ interface AnthropicProvider extends ProviderV4 {
1110
1110
  * @deprecated Use `embeddingModel` instead.
1111
1111
  */
1112
1112
  textEmbeddingModel(modelId: string): never;
1113
+ files(): FilesV4;
1113
1114
  /**
1114
1115
  * Anthropic-specific computer use tool.
1115
1116
  */