@ai-sdk/anthropic 3.0.98 → 3.0.99

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,12 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 3.0.99
4
+
5
+ ### Patch Changes
6
+
7
+ - db8cff6: fix(amazon-bedrock): sanitize unsupported JSON Schema constraints in native Anthropic structured output
8
+ - 94d0f86: fix(provider/anthropic): warn when parallel tool use is requested with JSON tool structured output
9
+
3
10
  ## 3.0.98
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ var import_provider4 = require("@ai-sdk/provider");
32
32
  var import_provider_utils26 = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "3.0.98" : "0.0.0-test";
35
+ var VERSION = true ? "3.0.99" : "0.0.0-test";
36
36
 
37
37
  // src/anthropic-messages-language-model.ts
38
38
  var import_provider3 = require("@ai-sdk/provider");
@@ -3433,6 +3433,13 @@ var AnthropicMessagesLanguageModel = class {
3433
3433
  description: "Respond with a JSON object.",
3434
3434
  inputSchema: responseFormat.schema
3435
3435
  } : void 0;
3436
+ if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
3437
+ warnings.push({
3438
+ type: "unsupported",
3439
+ feature: "providerOptions.anthropic.disableParallelToolUse",
3440
+ details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
3441
+ });
3442
+ }
3436
3443
  const contextManagement = anthropicOptions == null ? void 0 : anthropicOptions.contextManagement;
3437
3444
  const cacheControlValidator = new CacheControlValidator();
3438
3445
  const toolNameMapping = (0, import_provider_utils15.createToolNameMapping)({