Web Search for Anthropic Models in Bedrock

1

Anthropic just announced API web search for Claude 3.7 Sonnet, Claude 3.5 Sonnet (new), and Claude 3.5 Haiku: https://www.anthropic.com/news/web-search-api

Documentation here: https://docs.anthropic.com/en/docs/build-with-claude/tool-use/web-search-tool#how-to-use-web-search

Does the Bedrock Converse API support the web_search tool if specified under tools in the request? If not, is there a timeline to add support?

2 Answers
0

As of the latest available information, Amazon Bedrock does not directly support the web_search tool for Anthropic models through the Converse API in the way you've described.

However, Amazon Bedrock does offer a way to integrate web search capabilities with Anthropic models, including Claude 3.7 Sonnet, through Amazon Bedrock Agents. This feature allows developers to create generative AI-based applications that can perform complex tasks, including web searches, to deliver answers based on up-to-date information.

The process involves creating an Amazon Bedrock agent that can use web search APIs (such as SerpAPI or Tavily AI) through a Lambda function. This setup enables the agent to determine when a web search is necessary, perform the search using the external APIs, and then generate responses based on the search results.

While this approach differs from directly specifying a web_search tool in the Converse API request, it achieves a similar outcome of integrating web search capabilities with Anthropic models in Amazon Bedrock.

Regarding a timeline for adding direct support for the web_search tool in the Bedrock Converse API, there is no publicly available information on this. AWS regularly updates its services, so it's possible that such functionality could be added in the future, but there are no announced plans at this time.

For the most up-to-date and accurate information on Bedrock's capabilities and roadmap, it's best to check the official AWS documentation or contact AWS support directly.
Sources
Integrate dynamic web content in your generative AI application using a web search API and Amazon Bedrock Agents | AWS Machine Learning Blog
NEW Anthropic Claude 3.7 Sonnet - Amazon Bedrock
Agents for Amazon Bedrock add support for Anthropic Claude 3 Haiku and Sonnet

profile picture
answered 14 days ago
profile picture
EXPERT
reviewed 14 days ago
0

Hello.

I tried this on my AWS account and got the following error:
It is possible that the request method is incorrect, but web_search may not be available as of May 8, 2025.

aws bedrock-runtime converse --model-id us.anthropic.claude-3-7-sonnet-20250219-v1:0 --messages '[{"role": "user", "content": [{"text": "Can you search the web?"}]}]' --inference-config '{"maxTokens": 512, "temperature": 0.5, "topP": 0.9}' --additional-model-request-fields '{"tools": [{"type": "web_search_20250305", "name": "web_search", "max_uses": 5}]}'

An error occurred (ValidationException) when calling the Converse operation: The model returned the following errors: tools.0: Input tag 'web_search_20250305' found using 'type' does not match any of the expected tags: 'bash_20250124', 'custom', 'text_editor_20250124'
profile picture
EXPERT
answered 14 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions