Artificial Intelligence1 min read

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

By · Published by Everything Blog

In short

Amazon Bedrock AgentCore's Web Search API allows AI agents to securely retrieve recent online data using standard AWS credentials. Results include publication dates, URLs, and text snippets, which developers can filter by domain or restrict using enforced search budgets. In a demonstrated security agent built with LangGraph, parallelized dependency checking across npm, PyPI, and container ecosystems reduced runtimes from 99 to 36 seconds. An Anthropic Claude model hosted in Bedrock generates the search queries and compiles cited finding reports, while a local store prevents duplicate alert notifications.

Key points

  • Administrative controls allow developers to mandate search budgets and domain blocklists…: Administrative controls allow developers to mandate search budgets and domain blocklists that underlying AI models cannot modify.
  • A built-in tracking mechanism saves state in a LangGraph store to avoid sending redundant…: A built-in tracking mechanism saves state in a LangGraph store to avoid sending redundant alerts to security personnel.
  • Running the automated dependency watcher requires Python 3.10 or later alongside configur…: Running the automated dependency watcher requires Python 3.10 or later alongside configured AWS identity and access permissions.

Sources checked by our analysis pipeline: 1

Artificial Intelligence

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

AI agents increasingly handle work that depends on what changed today, such as security advisories, product releases, prices, and regulations. A model’s training data can’t answer those questions, so agents need web search. For production use, teams also need results they can cite, and control over which sources count. They want search queries to stay inside their cloud environment because those queries often reveal internal work.

The Web Search API in Amazon Bedrock AgentCore is now available. It gives agents and applications current web results through a single API call, signed with the AWS credentials they already use. AWS serves every query from a web index that Amazon operates, and doesn’t send it to a third-party search engine.

Each result includes the page’s title, URL, publication date, and an extract relevant to the query. Requests can include or exclude domains, and limit results to a publication date range. On AWS Lambda, Amazon Elastic Container Service (Amazon ECS), or Amazon Bedrock AgentCore runtime, your agent calls…

Artificial Intelligence