@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.
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "3.0.0-beta.65" : "0.0.0-test";
14
+ var VERSION = true ? "3.0.0-beta.66" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -713,7 +713,7 @@ var CacheControlValidator = class {
713
713
  };
714
714
 
715
715
  // src/tool/text-editor_20250728.ts
716
- import { createProviderDefinedToolFactory } from "@ai-sdk/provider-utils";
716
+ import { createProviderToolFactory } from "@ai-sdk/provider-utils";
717
717
  import { z as z4 } from "zod/v4";
718
718
  import { lazySchema as lazySchema3, zodSchema as zodSchema3 } from "@ai-sdk/provider-utils";
719
719
  var textEditor_20250728ArgsSchema = lazySchema3(
@@ -736,7 +736,7 @@ var textEditor_20250728InputSchema = lazySchema3(
736
736
  })
737
737
  )
738
738
  );
739
- var factory = createProviderDefinedToolFactory({
739
+ var factory = createProviderToolFactory({
740
740
  id: "anthropic.text_editor_20250728",
741
741
  inputSchema: textEditor_20250728InputSchema
742
742
  });
@@ -746,7 +746,7 @@ var textEditor_20250728 = (args = {}) => {
746
746
 
747
747
  // src/tool/web-search_20250305.ts
748
748
  import {
749
- createProviderDefinedToolFactoryWithOutputSchema,
749
+ createProviderToolFactoryWithOutputSchema,
750
750
  lazySchema as lazySchema4,
751
751
  zodSchema as zodSchema4
752
752
  } from "@ai-sdk/provider-utils";
@@ -787,7 +787,7 @@ var webSearch_20250305InputSchema = lazySchema4(
787
787
  })
788
788
  )
789
789
  );
790
- var factory2 = createProviderDefinedToolFactoryWithOutputSchema({
790
+ var factory2 = createProviderToolFactoryWithOutputSchema({
791
791
  id: "anthropic.web_search_20250305",
792
792
  inputSchema: webSearch_20250305InputSchema,
793
793
  outputSchema: webSearch_20250305OutputSchema
@@ -798,7 +798,7 @@ var webSearch_20250305 = (args = {}) => {
798
798
 
799
799
  // src/tool/web-fetch-20250910.ts
800
800
  import {
801
- createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema2,
801
+ createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema2,
802
802
  lazySchema as lazySchema5,
803
803
  zodSchema as zodSchema5
804
804
  } from "@ai-sdk/provider-utils";
@@ -847,7 +847,7 @@ var webFetch_20250910InputSchema = lazySchema5(
847
847
  })
848
848
  )
849
849
  );
850
- var factory3 = createProviderDefinedToolFactoryWithOutputSchema2({
850
+ var factory3 = createProviderToolFactoryWithOutputSchema2({
851
851
  id: "anthropic.web_fetch_20250910",
852
852
  inputSchema: webFetch_20250910InputSchema,
853
853
  outputSchema: webFetch_20250910OutputSchema
@@ -887,7 +887,7 @@ async function prepareTools({
887
887
  });
888
888
  break;
889
889
  }
890
- case "provider-defined": {
890
+ case "provider": {
891
891
  switch (tool.id) {
892
892
  case "anthropic.code_execution_20250522": {
893
893
  betas.add("code-execution-2025-05-22");
@@ -1114,7 +1114,7 @@ import {
1114
1114
 
1115
1115
  // src/tool/code-execution_20250522.ts
1116
1116
  import {
1117
- createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema3,
1117
+ createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema3,
1118
1118
  lazySchema as lazySchema6,
1119
1119
  zodSchema as zodSchema6
1120
1120
  } from "@ai-sdk/provider-utils";
@@ -1136,7 +1136,7 @@ var codeExecution_20250522InputSchema = lazySchema6(
1136
1136
  })
1137
1137
  )
1138
1138
  );
1139
- var factory4 = createProviderDefinedToolFactoryWithOutputSchema3({
1139
+ var factory4 = createProviderToolFactoryWithOutputSchema3({
1140
1140
  id: "anthropic.code_execution_20250522",
1141
1141
  inputSchema: codeExecution_20250522InputSchema,
1142
1142
  outputSchema: codeExecution_20250522OutputSchema
@@ -1147,7 +1147,7 @@ var codeExecution_20250522 = (args = {}) => {
1147
1147
 
1148
1148
  // src/tool/code-execution_20250825.ts
1149
1149
  import {
1150
- createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema4,
1150
+ createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema4,
1151
1151
  lazySchema as lazySchema7,
1152
1152
  zodSchema as zodSchema7
1153
1153
  } from "@ai-sdk/provider-utils";
@@ -1228,7 +1228,7 @@ var codeExecution_20250825InputSchema = lazySchema7(
1228
1228
  ])
1229
1229
  )
1230
1230
  );
1231
- var factory5 = createProviderDefinedToolFactoryWithOutputSchema4({
1231
+ var factory5 = createProviderToolFactoryWithOutputSchema4({
1232
1232
  id: "anthropic.code_execution_20250825",
1233
1233
  inputSchema: codeExecution_20250825InputSchema,
1234
1234
  outputSchema: codeExecution_20250825OutputSchema
@@ -2105,7 +2105,7 @@ var AnthropicMessagesLanguageModel = class {
2105
2105
  betas.add("skills-2025-10-02");
2106
2106
  betas.add("files-api-2025-04-14");
2107
2107
  if (!(tools == null ? void 0 : tools.some(
2108
- (tool) => tool.type === "provider-defined" && tool.id === "anthropic.code_execution_20250825"
2108
+ (tool) => tool.type === "provider" && tool.id === "anthropic.code_execution_20250825"
2109
2109
  ))) {
2110
2110
  warnings.push({
2111
2111
  type: "other",
@@ -3111,7 +3111,7 @@ function getModelCapabilities(modelId) {
3111
3111
 
3112
3112
  // src/tool/bash_20241022.ts
3113
3113
  import {
3114
- createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
3114
+ createProviderToolFactory as createProviderToolFactory2,
3115
3115
  lazySchema as lazySchema8,
3116
3116
  zodSchema as zodSchema8
3117
3117
  } from "@ai-sdk/provider-utils";
@@ -3124,14 +3124,14 @@ var bash_20241022InputSchema = lazySchema8(
3124
3124
  })
3125
3125
  )
3126
3126
  );
3127
- var bash_20241022 = createProviderDefinedToolFactory2({
3127
+ var bash_20241022 = createProviderToolFactory2({
3128
3128
  id: "anthropic.bash_20241022",
3129
3129
  inputSchema: bash_20241022InputSchema
3130
3130
  });
3131
3131
 
3132
3132
  // src/tool/bash_20250124.ts
3133
3133
  import {
3134
- createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
3134
+ createProviderToolFactory as createProviderToolFactory3,
3135
3135
  lazySchema as lazySchema9,
3136
3136
  zodSchema as zodSchema9
3137
3137
  } from "@ai-sdk/provider-utils";
@@ -3144,14 +3144,14 @@ var bash_20250124InputSchema = lazySchema9(
3144
3144
  })
3145
3145
  )
3146
3146
  );
3147
- var bash_20250124 = createProviderDefinedToolFactory3({
3147
+ var bash_20250124 = createProviderToolFactory3({
3148
3148
  id: "anthropic.bash_20250124",
3149
3149
  inputSchema: bash_20250124InputSchema
3150
3150
  });
3151
3151
 
3152
3152
  // src/tool/computer_20241022.ts
3153
3153
  import {
3154
- createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
3154
+ createProviderToolFactory as createProviderToolFactory4,
3155
3155
  lazySchema as lazySchema10,
3156
3156
  zodSchema as zodSchema10
3157
3157
  } from "@ai-sdk/provider-utils";
@@ -3176,14 +3176,14 @@ var computer_20241022InputSchema = lazySchema10(
3176
3176
  })
3177
3177
  )
3178
3178
  );
3179
- var computer_20241022 = createProviderDefinedToolFactory4({
3179
+ var computer_20241022 = createProviderToolFactory4({
3180
3180
  id: "anthropic.computer_20241022",
3181
3181
  inputSchema: computer_20241022InputSchema
3182
3182
  });
3183
3183
 
3184
3184
  // src/tool/computer_20250124.ts
3185
3185
  import {
3186
- createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
3186
+ createProviderToolFactory as createProviderToolFactory5,
3187
3187
  lazySchema as lazySchema11,
3188
3188
  zodSchema as zodSchema11
3189
3189
  } from "@ai-sdk/provider-utils";
@@ -3218,14 +3218,14 @@ var computer_20250124InputSchema = lazySchema11(
3218
3218
  })
3219
3219
  )
3220
3220
  );
3221
- var computer_20250124 = createProviderDefinedToolFactory5({
3221
+ var computer_20250124 = createProviderToolFactory5({
3222
3222
  id: "anthropic.computer_20250124",
3223
3223
  inputSchema: computer_20250124InputSchema
3224
3224
  });
3225
3225
 
3226
3226
  // src/tool/memory_20250818.ts
3227
3227
  import {
3228
- createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
3228
+ createProviderToolFactory as createProviderToolFactory6,
3229
3229
  lazySchema as lazySchema12,
3230
3230
  zodSchema as zodSchema12
3231
3231
  } from "@ai-sdk/provider-utils";
@@ -3267,14 +3267,14 @@ var memory_20250818InputSchema = lazySchema12(
3267
3267
  ])
3268
3268
  )
3269
3269
  );
3270
- var memory_20250818 = createProviderDefinedToolFactory6({
3270
+ var memory_20250818 = createProviderToolFactory6({
3271
3271
  id: "anthropic.memory_20250818",
3272
3272
  inputSchema: memory_20250818InputSchema
3273
3273
  });
3274
3274
 
3275
3275
  // src/tool/text-editor_20241022.ts
3276
3276
  import {
3277
- createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
3277
+ createProviderToolFactory as createProviderToolFactory7,
3278
3278
  lazySchema as lazySchema13,
3279
3279
  zodSchema as zodSchema13
3280
3280
  } from "@ai-sdk/provider-utils";
@@ -3292,14 +3292,14 @@ var textEditor_20241022InputSchema = lazySchema13(
3292
3292
  })
3293
3293
  )
3294
3294
  );
3295
- var textEditor_20241022 = createProviderDefinedToolFactory7({
3295
+ var textEditor_20241022 = createProviderToolFactory7({
3296
3296
  id: "anthropic.text_editor_20241022",
3297
3297
  inputSchema: textEditor_20241022InputSchema
3298
3298
  });
3299
3299
 
3300
3300
  // src/tool/text-editor_20250124.ts
3301
3301
  import {
3302
- createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
3302
+ createProviderToolFactory as createProviderToolFactory8,
3303
3303
  lazySchema as lazySchema14,
3304
3304
  zodSchema as zodSchema14
3305
3305
  } from "@ai-sdk/provider-utils";
@@ -3317,14 +3317,14 @@ var textEditor_20250124InputSchema = lazySchema14(
3317
3317
  })
3318
3318
  )
3319
3319
  );
3320
- var textEditor_20250124 = createProviderDefinedToolFactory8({
3320
+ var textEditor_20250124 = createProviderToolFactory8({
3321
3321
  id: "anthropic.text_editor_20250124",
3322
3322
  inputSchema: textEditor_20250124InputSchema
3323
3323
  });
3324
3324
 
3325
3325
  // src/tool/text-editor_20250429.ts
3326
3326
  import {
3327
- createProviderDefinedToolFactory as createProviderDefinedToolFactory9,
3327
+ createProviderToolFactory as createProviderToolFactory9,
3328
3328
  lazySchema as lazySchema15,
3329
3329
  zodSchema as zodSchema15
3330
3330
  } from "@ai-sdk/provider-utils";
@@ -3342,7 +3342,7 @@ var textEditor_20250429InputSchema = lazySchema15(
3342
3342
  })
3343
3343
  )
3344
3344
  );
3345
- var textEditor_20250429 = createProviderDefinedToolFactory9({
3345
+ var textEditor_20250429 = createProviderToolFactory9({
3346
3346
  id: "anthropic.text_editor_20250429",
3347
3347
  inputSchema: textEditor_20250429InputSchema
3348
3348
  });