@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/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from "@ai-sdk/provider-utils";
13
13
 
14
14
  // src/version.ts
15
- var VERSION = true ? "3.0.98" : "0.0.0-test";
15
+ var VERSION = true ? "3.0.99" : "0.0.0-test";
16
16
 
17
17
  // src/anthropic-messages-language-model.ts
18
18
  import {
@@ -3484,6 +3484,13 @@ var AnthropicMessagesLanguageModel = class {
3484
3484
  description: "Respond with a JSON object.",
3485
3485
  inputSchema: responseFormat.schema
3486
3486
  } : void 0;
3487
+ if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
3488
+ warnings.push({
3489
+ type: "unsupported",
3490
+ feature: "providerOptions.anthropic.disableParallelToolUse",
3491
+ details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
3492
+ });
3493
+ }
3487
3494
  const contextManagement = anthropicOptions == null ? void 0 : anthropicOptions.contextManagement;
3488
3495
  const cacheControlValidator = new CacheControlValidator();
3489
3496
  const toolNameMapping = createToolNameMapping({