@ai-sdk/anthropic 3.0.0-beta.47 → 3.0.0-beta.48

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.47" : "0.0.0-test";
14
+ var VERSION = true ? "3.0.0-beta.48" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -2269,7 +2269,6 @@ var AnthropicMessagesLanguageModel = class {
2269
2269
  toolName: mcpToolCalls[part.tool_use_id].toolName,
2270
2270
  isError: part.is_error,
2271
2271
  result: part.content,
2272
- providerExecuted: true,
2273
2272
  dynamic: true,
2274
2273
  providerMetadata: mcpToolCalls[part.tool_use_id].providerMetadata
2275
2274
  });
@@ -2295,8 +2294,7 @@ var AnthropicMessagesLanguageModel = class {
2295
2294
  data: part.content.content.source.data
2296
2295
  }
2297
2296
  }
2298
- },
2299
- providerExecuted: true
2297
+ }
2300
2298
  });
2301
2299
  } else if (part.content.type === "web_fetch_tool_result_error") {
2302
2300
  content.push({
@@ -2307,8 +2305,7 @@ var AnthropicMessagesLanguageModel = class {
2307
2305
  result: {
2308
2306
  type: "web_fetch_tool_result_error",
2309
2307
  errorCode: part.content.error_code
2310
- },
2311
- providerExecuted: true
2308
+ }
2312
2309
  });
2313
2310
  }
2314
2311
  break;
@@ -2328,8 +2325,7 @@ var AnthropicMessagesLanguageModel = class {
2328
2325
  encryptedContent: result.encrypted_content,
2329
2326
  type: result.type
2330
2327
  };
2331
- }),
2332
- providerExecuted: true
2328
+ })
2333
2329
  });
2334
2330
  for (const result of part.content) {
2335
2331
  content.push({
@@ -2354,8 +2350,7 @@ var AnthropicMessagesLanguageModel = class {
2354
2350
  result: {
2355
2351
  type: "web_search_tool_result_error",
2356
2352
  errorCode: part.content.error_code
2357
- },
2358
- providerExecuted: true
2353
+ }
2359
2354
  });
2360
2355
  }
2361
2356
  break;
@@ -2372,8 +2367,7 @@ var AnthropicMessagesLanguageModel = class {
2372
2367
  stdout: part.content.stdout,
2373
2368
  stderr: part.content.stderr,
2374
2369
  return_code: part.content.return_code
2375
- },
2376
- providerExecuted: true
2370
+ }
2377
2371
  });
2378
2372
  } else if (part.content.type === "code_execution_tool_result_error") {
2379
2373
  content.push({
@@ -2384,8 +2378,7 @@ var AnthropicMessagesLanguageModel = class {
2384
2378
  result: {
2385
2379
  type: "code_execution_tool_result_error",
2386
2380
  errorCode: part.content.error_code
2387
- },
2388
- providerExecuted: true
2381
+ }
2389
2382
  });
2390
2383
  }
2391
2384
  break;
@@ -2397,8 +2390,7 @@ var AnthropicMessagesLanguageModel = class {
2397
2390
  type: "tool-result",
2398
2391
  toolCallId: part.tool_use_id,
2399
2392
  toolName: "code_execution",
2400
- result: part.content,
2401
- providerExecuted: true
2393
+ result: part.content
2402
2394
  });
2403
2395
  break;
2404
2396
  }
@@ -2621,8 +2613,7 @@ var AnthropicMessagesLanguageModel = class {
2621
2613
  result: {
2622
2614
  type: "web_fetch_tool_result_error",
2623
2615
  errorCode: part.content.error_code
2624
- },
2625
- providerExecuted: true
2616
+ }
2626
2617
  });
2627
2618
  }
2628
2619
  return;
@@ -2642,8 +2633,7 @@ var AnthropicMessagesLanguageModel = class {
2642
2633
  encryptedContent: result.encrypted_content,
2643
2634
  type: result.type
2644
2635
  };
2645
- }),
2646
- providerExecuted: true
2636
+ })
2647
2637
  });
2648
2638
  for (const result of part.content) {
2649
2639
  controller.enqueue({
@@ -2668,8 +2658,7 @@ var AnthropicMessagesLanguageModel = class {
2668
2658
  result: {
2669
2659
  type: "web_search_tool_result_error",
2670
2660
  errorCode: part.content.error_code
2671
- },
2672
- providerExecuted: true
2661
+ }
2673
2662
  });
2674
2663
  }
2675
2664
  return;
@@ -2686,8 +2675,7 @@ var AnthropicMessagesLanguageModel = class {
2686
2675
  stdout: part.content.stdout,
2687
2676
  stderr: part.content.stderr,
2688
2677
  return_code: part.content.return_code
2689
- },
2690
- providerExecuted: true
2678
+ }
2691
2679
  });
2692
2680
  } else if (part.content.type === "code_execution_tool_result_error") {
2693
2681
  controller.enqueue({
@@ -2698,8 +2686,7 @@ var AnthropicMessagesLanguageModel = class {
2698
2686
  result: {
2699
2687
  type: "code_execution_tool_result_error",
2700
2688
  errorCode: part.content.error_code
2701
- },
2702
- providerExecuted: true
2689
+ }
2703
2690
  });
2704
2691
  }
2705
2692
  return;
@@ -2711,8 +2698,7 @@ var AnthropicMessagesLanguageModel = class {
2711
2698
  type: "tool-result",
2712
2699
  toolCallId: part.tool_use_id,
2713
2700
  toolName: "code_execution",
2714
- result: part.content,
2715
- providerExecuted: true
2701
+ result: part.content
2716
2702
  });
2717
2703
  return;
2718
2704
  }
@@ -2741,7 +2727,6 @@ var AnthropicMessagesLanguageModel = class {
2741
2727
  toolName: mcpToolCalls[part.tool_use_id].toolName,
2742
2728
  isError: part.is_error,
2743
2729
  result: part.content,
2744
- providerExecuted: true,
2745
2730
  dynamic: true,
2746
2731
  providerMetadata: mcpToolCalls[part.tool_use_id].providerMetadata
2747
2732
  });