- Newest
- Most votes
- Most comments
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
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'
Relevant content
- asked 8 months ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 17 days ago