Skip to content

[v5.0] fix(anthropic): warn when jsonTool disables parallel tool use - #17569

Merged
lgrammel merged 2 commits into
release-v5.0from
backport-v5.0/15652-1
Jul 21, 2026
Merged

[v5.0] fix(anthropic): warn when jsonTool disables parallel tool use#17569
lgrammel merged 2 commits into
release-v5.0from
backport-v5.0/15652-1

Conversation

@lgrammel

Copy link
Copy Markdown
Collaborator

Background

The Anthropic provider ignores the disableParallelToolUse: false setting when structuredOutputMode: 'jsonTool' is set.

providerOptions: {
  anthropic: {
    structuredOutputMode: 'jsonTool',
    disableParallelToolUse: false,
  },
}

Summary

Add an unsupported-option warning when parallel tool use is explicitly requested with the Anthropic JSON response tool, cover the behavior with a regression test, and add a patch changeset for @ai-sdk/anthropic.

Testing

Passed the complete Anthropic provider test suite in Node and Edge environments (446 tests each), pnpm check, pnpm type-check:full, the Anthropic package build, and git diff --check.

Related Issues

Fixes #15652

Backport of #17560

@lgrammel
lgrammel merged commit 30c69e6 into release-v5.0 Jul 21, 2026
50 checks passed
@lgrammel
lgrammel deleted the backport-v5.0/15652-1 branch July 21, 2026 06:49
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
@ai-sdk/amazon-bedrock 3.0.108 github npm
@ai-sdk/anthropic 2.0.88 github npm
@ai-sdk/anthropic-aws 0.1.3 github npm
@ai-sdk/google-vertex 3.0.154 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant