@ai-sdk/anthropic 3.0.0-beta.65 → 3.0.0-beta.66

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.
@@ -698,7 +698,7 @@ var CacheControlValidator = class {
698
698
  };
699
699
 
700
700
  // src/tool/text-editor_20250728.ts
701
- import { createProviderDefinedToolFactory } from "@ai-sdk/provider-utils";
701
+ import { createProviderToolFactory } from "@ai-sdk/provider-utils";
702
702
  import { z as z4 } from "zod/v4";
703
703
  import { lazySchema as lazySchema3, zodSchema as zodSchema3 } from "@ai-sdk/provider-utils";
704
704
  var textEditor_20250728ArgsSchema = lazySchema3(
@@ -721,7 +721,7 @@ var textEditor_20250728InputSchema = lazySchema3(
721
721
  })
722
722
  )
723
723
  );
724
- var factory = createProviderDefinedToolFactory({
724
+ var factory = createProviderToolFactory({
725
725
  id: "anthropic.text_editor_20250728",
726
726
  inputSchema: textEditor_20250728InputSchema
727
727
  });
@@ -731,7 +731,7 @@ var textEditor_20250728 = (args = {}) => {
731
731
 
732
732
  // src/tool/web-search_20250305.ts
733
733
  import {
734
- createProviderDefinedToolFactoryWithOutputSchema,
734
+ createProviderToolFactoryWithOutputSchema,
735
735
  lazySchema as lazySchema4,
736
736
  zodSchema as zodSchema4
737
737
  } from "@ai-sdk/provider-utils";
@@ -772,7 +772,7 @@ var webSearch_20250305InputSchema = lazySchema4(
772
772
  })
773
773
  )
774
774
  );
775
- var factory2 = createProviderDefinedToolFactoryWithOutputSchema({
775
+ var factory2 = createProviderToolFactoryWithOutputSchema({
776
776
  id: "anthropic.web_search_20250305",
777
777
  inputSchema: webSearch_20250305InputSchema,
778
778
  outputSchema: webSearch_20250305OutputSchema
@@ -783,7 +783,7 @@ var webSearch_20250305 = (args = {}) => {
783
783
 
784
784
  // src/tool/web-fetch-20250910.ts
785
785
  import {
786
- createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema2,
786
+ createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema2,
787
787
  lazySchema as lazySchema5,
788
788
  zodSchema as zodSchema5
789
789
  } from "@ai-sdk/provider-utils";
@@ -832,7 +832,7 @@ var webFetch_20250910InputSchema = lazySchema5(
832
832
  })
833
833
  )
834
834
  );
835
- var factory3 = createProviderDefinedToolFactoryWithOutputSchema2({
835
+ var factory3 = createProviderToolFactoryWithOutputSchema2({
836
836
  id: "anthropic.web_fetch_20250910",
837
837
  inputSchema: webFetch_20250910InputSchema,
838
838
  outputSchema: webFetch_20250910OutputSchema
@@ -872,7 +872,7 @@ async function prepareTools({
872
872
  });
873
873
  break;
874
874
  }
875
- case "provider-defined": {
875
+ case "provider": {
876
876
  switch (tool.id) {
877
877
  case "anthropic.code_execution_20250522": {
878
878
  betas.add("code-execution-2025-05-22");
@@ -1099,7 +1099,7 @@ import {
1099
1099
 
1100
1100
  // src/tool/code-execution_20250522.ts
1101
1101
  import {
1102
- createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema3,
1102
+ createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema3,
1103
1103
  lazySchema as lazySchema6,
1104
1104
  zodSchema as zodSchema6
1105
1105
  } from "@ai-sdk/provider-utils";
@@ -1121,7 +1121,7 @@ var codeExecution_20250522InputSchema = lazySchema6(
1121
1121
  })
1122
1122
  )
1123
1123
  );
1124
- var factory4 = createProviderDefinedToolFactoryWithOutputSchema3({
1124
+ var factory4 = createProviderToolFactoryWithOutputSchema3({
1125
1125
  id: "anthropic.code_execution_20250522",
1126
1126
  inputSchema: codeExecution_20250522InputSchema,
1127
1127
  outputSchema: codeExecution_20250522OutputSchema
@@ -1132,7 +1132,7 @@ var codeExecution_20250522 = (args = {}) => {
1132
1132
 
1133
1133
  // src/tool/code-execution_20250825.ts
1134
1134
  import {
1135
- createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema4,
1135
+ createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema4,
1136
1136
  lazySchema as lazySchema7,
1137
1137
  zodSchema as zodSchema7
1138
1138
  } from "@ai-sdk/provider-utils";
@@ -1213,7 +1213,7 @@ var codeExecution_20250825InputSchema = lazySchema7(
1213
1213
  ])
1214
1214
  )
1215
1215
  );
1216
- var factory5 = createProviderDefinedToolFactoryWithOutputSchema4({
1216
+ var factory5 = createProviderToolFactoryWithOutputSchema4({
1217
1217
  id: "anthropic.code_execution_20250825",
1218
1218
  inputSchema: codeExecution_20250825InputSchema,
1219
1219
  outputSchema: codeExecution_20250825OutputSchema
@@ -2090,7 +2090,7 @@ var AnthropicMessagesLanguageModel = class {
2090
2090
  betas.add("skills-2025-10-02");
2091
2091
  betas.add("files-api-2025-04-14");
2092
2092
  if (!(tools == null ? void 0 : tools.some(
2093
- (tool) => tool.type === "provider-defined" && tool.id === "anthropic.code_execution_20250825"
2093
+ (tool) => tool.type === "provider" && tool.id === "anthropic.code_execution_20250825"
2094
2094
  ))) {
2095
2095
  warnings.push({
2096
2096
  type: "other",
@@ -3096,7 +3096,7 @@ function getModelCapabilities(modelId) {
3096
3096
 
3097
3097
  // src/tool/bash_20241022.ts
3098
3098
  import {
3099
- createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
3099
+ createProviderToolFactory as createProviderToolFactory2,
3100
3100
  lazySchema as lazySchema8,
3101
3101
  zodSchema as zodSchema8
3102
3102
  } from "@ai-sdk/provider-utils";
@@ -3109,14 +3109,14 @@ var bash_20241022InputSchema = lazySchema8(
3109
3109
  })
3110
3110
  )
3111
3111
  );
3112
- var bash_20241022 = createProviderDefinedToolFactory2({
3112
+ var bash_20241022 = createProviderToolFactory2({
3113
3113
  id: "anthropic.bash_20241022",
3114
3114
  inputSchema: bash_20241022InputSchema
3115
3115
  });
3116
3116
 
3117
3117
  // src/tool/bash_20250124.ts
3118
3118
  import {
3119
- createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
3119
+ createProviderToolFactory as createProviderToolFactory3,
3120
3120
  lazySchema as lazySchema9,
3121
3121
  zodSchema as zodSchema9
3122
3122
  } from "@ai-sdk/provider-utils";
@@ -3129,14 +3129,14 @@ var bash_20250124InputSchema = lazySchema9(
3129
3129
  })
3130
3130
  )
3131
3131
  );
3132
- var bash_20250124 = createProviderDefinedToolFactory3({
3132
+ var bash_20250124 = createProviderToolFactory3({
3133
3133
  id: "anthropic.bash_20250124",
3134
3134
  inputSchema: bash_20250124InputSchema
3135
3135
  });
3136
3136
 
3137
3137
  // src/tool/computer_20241022.ts
3138
3138
  import {
3139
- createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
3139
+ createProviderToolFactory as createProviderToolFactory4,
3140
3140
  lazySchema as lazySchema10,
3141
3141
  zodSchema as zodSchema10
3142
3142
  } from "@ai-sdk/provider-utils";
@@ -3161,14 +3161,14 @@ var computer_20241022InputSchema = lazySchema10(
3161
3161
  })
3162
3162
  )
3163
3163
  );
3164
- var computer_20241022 = createProviderDefinedToolFactory4({
3164
+ var computer_20241022 = createProviderToolFactory4({
3165
3165
  id: "anthropic.computer_20241022",
3166
3166
  inputSchema: computer_20241022InputSchema
3167
3167
  });
3168
3168
 
3169
3169
  // src/tool/computer_20250124.ts
3170
3170
  import {
3171
- createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
3171
+ createProviderToolFactory as createProviderToolFactory5,
3172
3172
  lazySchema as lazySchema11,
3173
3173
  zodSchema as zodSchema11
3174
3174
  } from "@ai-sdk/provider-utils";
@@ -3203,14 +3203,14 @@ var computer_20250124InputSchema = lazySchema11(
3203
3203
  })
3204
3204
  )
3205
3205
  );
3206
- var computer_20250124 = createProviderDefinedToolFactory5({
3206
+ var computer_20250124 = createProviderToolFactory5({
3207
3207
  id: "anthropic.computer_20250124",
3208
3208
  inputSchema: computer_20250124InputSchema
3209
3209
  });
3210
3210
 
3211
3211
  // src/tool/memory_20250818.ts
3212
3212
  import {
3213
- createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
3213
+ createProviderToolFactory as createProviderToolFactory6,
3214
3214
  lazySchema as lazySchema12,
3215
3215
  zodSchema as zodSchema12
3216
3216
  } from "@ai-sdk/provider-utils";
@@ -3252,14 +3252,14 @@ var memory_20250818InputSchema = lazySchema12(
3252
3252
  ])
3253
3253
  )
3254
3254
  );
3255
- var memory_20250818 = createProviderDefinedToolFactory6({
3255
+ var memory_20250818 = createProviderToolFactory6({
3256
3256
  id: "anthropic.memory_20250818",
3257
3257
  inputSchema: memory_20250818InputSchema
3258
3258
  });
3259
3259
 
3260
3260
  // src/tool/text-editor_20241022.ts
3261
3261
  import {
3262
- createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
3262
+ createProviderToolFactory as createProviderToolFactory7,
3263
3263
  lazySchema as lazySchema13,
3264
3264
  zodSchema as zodSchema13
3265
3265
  } from "@ai-sdk/provider-utils";
@@ -3277,14 +3277,14 @@ var textEditor_20241022InputSchema = lazySchema13(
3277
3277
  })
3278
3278
  )
3279
3279
  );
3280
- var textEditor_20241022 = createProviderDefinedToolFactory7({
3280
+ var textEditor_20241022 = createProviderToolFactory7({
3281
3281
  id: "anthropic.text_editor_20241022",
3282
3282
  inputSchema: textEditor_20241022InputSchema
3283
3283
  });
3284
3284
 
3285
3285
  // src/tool/text-editor_20250124.ts
3286
3286
  import {
3287
- createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
3287
+ createProviderToolFactory as createProviderToolFactory8,
3288
3288
  lazySchema as lazySchema14,
3289
3289
  zodSchema as zodSchema14
3290
3290
  } from "@ai-sdk/provider-utils";
@@ -3302,14 +3302,14 @@ var textEditor_20250124InputSchema = lazySchema14(
3302
3302
  })
3303
3303
  )
3304
3304
  );
3305
- var textEditor_20250124 = createProviderDefinedToolFactory8({
3305
+ var textEditor_20250124 = createProviderToolFactory8({
3306
3306
  id: "anthropic.text_editor_20250124",
3307
3307
  inputSchema: textEditor_20250124InputSchema
3308
3308
  });
3309
3309
 
3310
3310
  // src/tool/text-editor_20250429.ts
3311
3311
  import {
3312
- createProviderDefinedToolFactory as createProviderDefinedToolFactory9,
3312
+ createProviderToolFactory as createProviderToolFactory9,
3313
3313
  lazySchema as lazySchema15,
3314
3314
  zodSchema as zodSchema15
3315
3315
  } from "@ai-sdk/provider-utils";
@@ -3327,7 +3327,7 @@ var textEditor_20250429InputSchema = lazySchema15(
3327
3327
  })
3328
3328
  )
3329
3329
  );
3330
- var textEditor_20250429 = createProviderDefinedToolFactory9({
3330
+ var textEditor_20250429 = createProviderToolFactory9({
3331
3331
  id: "anthropic.text_editor_20250429",
3332
3332
  inputSchema: textEditor_20250429InputSchema
3333
3333
  });