@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/anthropic",
3
- "version": "3.0.98",
3
+ "version": "3.0.99",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -334,6 +334,19 @@ export class AnthropicMessagesLanguageModel implements LanguageModelV3 {
334
334
  }
335
335
  : undefined;
336
336
 
337
+ if (
338
+ jsonResponseTool != null &&
339
+ anthropicOptions?.disableParallelToolUse === false
340
+ ) {
341
+ warnings.push({
342
+ type: 'unsupported',
343
+ feature: 'providerOptions.anthropic.disableParallelToolUse',
344
+ details:
345
+ '`disableParallelToolUse: false` is ignored when using the JSON response tool. ' +
346
+ 'Parallel tool use is disabled to ensure a single coherent JSON tool call.',
347
+ });
348
+ }
349
+
337
350
  const contextManagement = anthropicOptions?.contextManagement;
338
351
 
339
352
  // Create a shared cache control validator to track breakpoints across tools and messages
@@ -2,3 +2,4 @@ export { AnthropicMessagesLanguageModel } from '../anthropic-messages-language-m
2
2
  export { anthropicTools } from '../anthropic-tools';
3
3
  export type { AnthropicMessagesModelId } from '../anthropic-messages-options';
4
4
  export { prepareTools } from '../anthropic-prepare-tools';
5
+ export { sanitizeJsonSchema } from '../sanitize-json-schema';