AI Cloud Architect

Build a daily dependency watcher with LangGraph and Amazon Bedrock AgentCore web search

AWSHow-to by Sundar Raghavan and Omar AbdelwahabAWS Artificial Intelligence Blog

The Web Search API in Amazon Bedrock AgentCore gives agents current, cited web results signed with the AWS credentials they already use. In this post, build a daily dependency watcher as a LangGraph graph that researches package ecosystems in parallel, keeps its rules in code, and checks every finding against its cited sources.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Bedrock AgentCore's Web Search API lets a LangGraph agent run a daily dependency watch, with search rules enforced in code and findings checked against cited sources.

Who it is for

Security teams running LLM agents on AWS that need current, cited web search with fixed date, domain and budget rules.

Key points

  • Search calls use IAM permission bedrock-agentcore:InvokeWebSearch on tool web-search.v1; no search API key is needed.
  • The example makes at most 12 searches per run and uses the us-east-1 Region.
  • Account default is 10 Web Search requests per second per Region, shared by all agents in the account.
  • Search through AgentCore Gateway needs two IAM grants on two different principals.

Timeline

  1. What it explainsAmazon Bedrock AgentCore now offers a Web Search API · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  2. This postBuild a daily dependency watcher with LangGraph and Amazon Bedrock AgentCore web search

Go deeper