@ai-sdk/anthropic 4.0.16 → 4.0.17

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,15 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - b72fc7c: fix(amazon-bedrock): sanitize unsupported JSON Schema constraints in native Anthropic structured output
8
+ - 9218ebe: fix(provider/anthropic): warn when parallel tool use is requested with JSON tool structured output
9
+ - Updated dependencies [02ffdcb]
10
+ - Updated dependencies [76cb673]
11
+ - @ai-sdk/provider-utils@5.0.12
12
+
3
13
  ## 4.0.16
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3665,6 +3665,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
3665
3665
  description: "Respond with a JSON object.",
3666
3666
  inputSchema: responseFormat.schema
3667
3667
  } : void 0;
3668
+ if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
3669
+ warnings.push({
3670
+ type: "unsupported",
3671
+ feature: "providerOptions.anthropic.disableParallelToolUse",
3672
+ details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
3673
+ });
3674
+ }
3668
3675
  const contextManagement = anthropicOptions == null ? void 0 : anthropicOptions.contextManagement;
3669
3676
  const cacheControlValidator = new CacheControlValidator();
3670
3677
  const toolNameMapping = createToolNameMapping({
@@ -6333,7 +6340,7 @@ var AnthropicSkills = class {
6333
6340
  };
6334
6341
 
6335
6342
  // src/version.ts
6336
- var VERSION = true ? "4.0.16" : "0.0.0-test";
6343
+ var VERSION = true ? "4.0.17" : "0.0.0-test";
6337
6344
 
6338
6345
  // src/anthropic-provider.ts
6339
6346
  var ANTHROPIC_API_URL = "https://api.anthropic.com";