@ai-sdk/anthropic 2.0.87 → 2.0.88

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,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.88
4
+
5
+ ### Patch Changes
6
+
7
+ - 30c69e6: fix(provider/anthropic): warn when parallel tool use is requested with JSON tool structured output
8
+
3
9
  ## 2.0.87
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
31
31
  var import_provider_utils20 = require("@ai-sdk/provider-utils");
32
32
 
33
33
  // src/version.ts
34
- var VERSION = true ? "2.0.87" : "0.0.0-test";
34
+ var VERSION = true ? "2.0.88" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");
@@ -2304,6 +2304,13 @@ var AnthropicMessagesLanguageModel = class {
2304
2304
  description: "Respond with a JSON object.",
2305
2305
  inputSchema: responseFormat.schema
2306
2306
  } : void 0;
2307
+ if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
2308
+ warnings.push({
2309
+ type: "unsupported-setting",
2310
+ setting: "providerOptions",
2311
+ details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
2312
+ });
2313
+ }
2307
2314
  const cacheControlValidator = new CacheControlValidator();
2308
2315
  const { prompt: messagesPrompt, betas } = await convertToAnthropicMessagesPrompt({
2309
2316
  prompt,