@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/anthropic",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "4.0.3",
39
- "@ai-sdk/provider-utils": "5.0.11"
39
+ "@ai-sdk/provider-utils": "5.0.12"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "22.19.19",
@@ -356,6 +356,19 @@ export class AnthropicLanguageModel implements LanguageModelV4 {
356
356
  }
357
357
  : undefined;
358
358
 
359
+ if (
360
+ jsonResponseTool != null &&
361
+ anthropicOptions?.disableParallelToolUse === false
362
+ ) {
363
+ warnings.push({
364
+ type: 'unsupported',
365
+ feature: 'providerOptions.anthropic.disableParallelToolUse',
366
+ details:
367
+ '`disableParallelToolUse: false` is ignored when using the JSON response tool. ' +
368
+ 'Parallel tool use is disabled to ensure a single coherent JSON tool call.',
369
+ });
370
+ }
371
+
359
372
  const contextManagement = anthropicOptions?.contextManagement;
360
373
 
361
374
  // Create a shared cache control validator to track breakpoints across tools and messages
@@ -12,4 +12,5 @@ export type {
12
12
  AnthropicModelId as AnthropicMessagesModelId,
13
13
  } from '../anthropic-language-model-options';
14
14
  export { prepareTools } from '../anthropic-prepare-tools';
15
+ export { sanitizeJsonSchema } from '../sanitize-json-schema';
15
16
  export { AnthropicSkills } from '../skills/anthropic-skills';