Backport: fix(amazon-bedrock): add tool search beta for Anthropic#13951
Merged
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from Mar 31, 2026
Merged
Backport: fix(amazon-bedrock): add tool search beta for Anthropic#13951vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
Conversation
## Background
Bedrock's Anthropic integration needs specific beta flags for tool
search tools (`tool_search_tool_regex_20251119` and
`tool_search_tool_bm25_20251119`), but the upstream `@ai-sdk/anthropic`
package doesn't set them since they aren't needed for direct Anthropic
API calls.
## Summary
- Added `tool_search_tool_regex_20251119` and
`tool_search_tool_bm25_20251119` to `BEDROCK_TOOL_BETA_MAP` with the
`tool-search-tool-2025-10-19` beta value.
## Manual Verification
Tested tool search with deferred tool loading on Bedrock — requests now
include the correct `tool-search-tool-2025-10-19` beta.
## Checklist
- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A patch changeset for relevant packages has been added (for bug
fixes / features - run pnpm changeset in the project root)
- [x] I have reviewed this pull request (self-review)
## Related Issues
n/a
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
4 tasks
felixarntz
approved these changes
Mar 31, 2026
Contributor
Author
|
🚀 Published in:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an automated backport of #13900 to the release-v6.0 branch. FYI @grant0417