Sari la conținut

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

perspectiva aiqbenchProduse AI

analiza aiqbench

This announcement details the general availability of Web Answer on Amazon Bedrock AgentCore, a managed service that consolidates search, retrieval, synthesis, and citation into a single API call. By offloading this complex pipeline to AWS, developers can reduce maintenance overhead while ensuring their agents generate grounded responses with direct source attribution. The feature represents a significant evolution in RAG architecture, shifting the burden of evidence gathering from custom code to a scalable cloud service.
Sursă care acoperăAWS

Getting started with Web Answer on Amazon Bedrock AgentCore

AWS8 min de cititArticolul și perspectiva sunt în engleză.

Web Answer on Amazon Bedrock AgentCore returns a synthesized, source-cited answer to a natural-language question in a single tool call, with no search, retrieve, synthesize, and citation pipeline to build. Learn how it works and how to add it to an AgentCore Gateway and call it from an agent.

Today, we are announcing the general availability of Web Answer on Amazon Bedrock AgentCore. With Web Answer, agent builders get a synthesized, source-cited answer to a natural-language question with a single tool call. They no longer build a search, retrieve, synthesize, and citation pipeline themselves.

If you have built agents that need to answer questions from current web sources, you know the pattern: call a search API, decide which results to trust, retrieve and clean page content, prompt a model to synthesize, and engineer citation extraction so the output traces back to a source. Every step is code you maintain, and every step is another place things can go wrong: hallucination when evidence is insufficient, stale content when the index moves, and broken attribution when a claim and its source drift apart.

The Web Answer collapses that entire pipeline into one request. You send a question. You get back a cited answer in seconds. In this post, we explain what Web Answer does, compare it with Web Search on AgentCore, show how it works and what it returns, and walk through adding Web Answer to a gateway and calling it from an agent.

Your agent sends a question to your AgentCore Gateway, a capability of Amazon Bedrock AgentCore. The Gateway authenticates the call with AWS Identity and Access Management (AWS IAM) or a JSON Web Token (JWT). The Gateway calls Web Answer, a managed connector that AWS owns, using its own service role. Web Answer plans its searches, runs several in parallel, and reads key pages to check the facts. When the evidence is insufficient, it searches again. It then writes an answer that ties each claim to its source URL. The Gateway returns the answer and its citations to your agent as a Model Context Protocol (MCP) tool result.

Web Answer is a managed AgentCore Gateway tool that takes a natural-language question and returns a synthesized answer in seconds grounded in current web sources. Here is what you get back:

A grounded, cited answer, where each grounded claim maps to a citation, with a source URL where one is available.

Current sources. Web Answer runs new searches for every question, and its model is given today’s date so it can search for up-to-date information.

Agentic search: Web Answer plans its own searches, runs several in parallel, reads pages to verify facts, and decides when it has enough evidence to answer.

Responsible AI safeguards: Web Answer is designed and tested with responsible AI safeguards.

Web Answer and the Web Search tools both support retrieval use cases, with different levels of integration complexity. The dividing line is who runs the model:

Web Search: Returns ranked URLs, titles, snippets, and metadata. You keep your own model and control the synthesis. Use Web Search when you want full control over how results are processed.

Web Answer: Runs the model, the agentic retrieval loop, synthesis, and attribution for you. You get a finished, cited answer. Use Web Answer when the question is a sub-task inside a larger agent and you do not want to own a retrieval pipeline for it.

Many customers will use both. An agent might use Web Search for broad research tasks where it needs raw results, and Web Answer for specific factual questions where it needs a quick, cited answer.

Web Answer is a connector that AWS owns. You reference it by ID, and the Gateway handles the tool schema, parameter governance, endpoint resolution, and authentication to the backend. In this walkthrough, you give your Gateway’s service role permission to call Web Answer, add a Web Answer target, and call it from a Strands agent.

Getting started takes minutes. A Gateway administrator adds Web Answer as a target on an existing AgentCore Gateway, and the tool appears to any attached agent over MCP through tools/list and tools/call.

An AWS account with AgentCore Gateway access.

An AgentCore Gateway in us-east-1 that uses IAM (AWS_IAM) inbound authentication. To create one, see Create an Amazon Bedrock AgentCore Gateway in the Developer Guide.

AWS credentials for an identity that has bedrock-agentcore:InvokeGateway on the Gateway, and Amazon Bedrock access to the model your agent uses.

Python 3.10 or later, with the required packages: pip install boto3 strands-agents mcp mcp-proxy-for-aws

Note: Following these steps creates AWS resources that incur charges. The Gateway and Web Answer invocations are billable. See the Pricing section that follows for details, and when you finish, delete the resources you created (see “Clean up resources”).

The Gateway uses its service role to act on your behalf. The role’s trust policy allows bedrock-agentcore.amazonaws.com to assume it, scoped to your account. For Web Answer, the role needs:

bedrock-agentcore:InvokeWebAnswer, to call Web Answer. The Gateway checks this permission on every request against the ARN that AWS owns, arn:aws:bedrock-agentcore:us-east-1:aws:tool/web-answer.v1.

The role controls only the Gateway’s outbound calls. Who can call your Gateway is set by its inbound authorizer. The role also doesn’t need bedrock:InvokeModel: your agent’s model runs under your agent’s own identity.

Add Web Answer as a connector target. The connectorId tells the Gateway which managed integration to provision: in this case, an agent that searches the web and writes a cited answer.

Outbound authentication is automatic for connectors. With GATEWAY_IAM_ROLE, the Gateway calls the Web Answer backend with the service role from Step 1, so you don’t create or store any credentials for the tool. Wait until get_gateway_target reports the target status as READY before you call it.

As the Gateway administrator, you can also set a domain filter on the target. The filter applies to every call that goes through the target. To limit the target to a set of domains, set parameterValues to {"domainFilter": {"include": ["bis.org"], "exclude": ["unreliable-source.net"]}}.

Your agent discovers Web Answer through the Gateway’s tools/list and calls it with tools/call, like any other MCP tool. This works with Strands Agents, LangChain, LangGraph, CrewAI, or any other MCP-compatible client.

When a question needs current information, your agent calls the Web Answer tool (web-answer-tool___WebAnswer). Web Answer runs the agentic search and returns a finished answer with citations.

Besides the question, the Web Answer tool takes optional arguments that your agent can set on each call: a domain filter to include or exclude sites, a published-date range, and a country to localize results. The agent’s domain filter is combined with the target’s filter. The agent can exclude more domains, or limit results to some of the target’s included domains, but it can’t add a domain that the target’s filter blocks.

Web Answer returns an MCP tool result with both content and structuredContent fields. The answer is markdown text with inline citation markers like [1], and structuredContent.answer carries the same text alongside a structured citations list:

structuredContent.answer normally holds a single block. Each citation carries the source url and, when available, the domain.

If you created the Gateway only for this walkthrough, delete its targets first, then the Gateway (delete_gateway), and then the service role and its policy. There is no persistent infrastructure on the AWS side beyond these resources. After they are removed, you stop incurring charges.

Gateway authentication. No separate API key to provision, rotate, or manage for Web Answer. Callers authenticate to the gateway with the inbound method you configure, such as AWS IAM (SigV4) or a JSON Web Token from your identity provider. The gateway then calls Web Answer with its own service role, which needs the bedrock-agentcore:InvokeWebAnswer permission.

VPC and AWS PrivateLink. Your agents can call the gateway through an interface virtual private cloud (VPC) endpoint (com.amazonaws.us-east-1.bedrock-agentcore.gateway), so traffic stays off the public internet.

Zero data egress. Your queries and results stay within your AWS environment.

Amazon CloudWatch metrics. Operational metrics publish to CloudWatch from the first call.

Per-account rate limits. Enforced from launch, with 10 transactions per second per account in US East (N. Virginia) (us-east-1). To request an increase, contact AWS Support.

Admin-time policy bounds. The Gateway administrator sets domain filter bounds at target setup. Agents can narrow the filter bounds on each call but can’t widen them.

Queries stay within AWS. Web Answer searches an Amazon-operated web index and Amazon’s knowledge graph, and doesn’t send your question to third-party search engines or external websites.

Web Answer helps agents retrieve current, cited information to support a range of knowledge-intensive workflows. Example scenarios include:

Financial services. Regulatory Q&A agents answering questions about compliance requirements, market regulations, and policy changes, where every answer must trace to an authoritative source.

Healthcare. Clinical support agents grounding responses in current medical literature and treatment guidelines published on the web.

Customer service. Support agents answering product and policy questions in real time, where ten ranked links are not useful and a cited answer is.

Legal and compliance. Research assistants answering questions about case law, regulatory filings, and policy interpretations with auditable citations.

Enterprise knowledge workers. Internal copilots that answer questions from current public information without requiring employees to build their own search and synthesis workflow.

Web Answer is available in US East (N. Virginia) (us-east-1), with more AWS Regions coming soon.

Web Answer on Amazon Bedrock AgentCore is priced at $10 per 1,000 tool calls.

In this post, we showed how Web Answer gives your agents current, cited answers through agentic search, with no search pipeline for you to build or maintain. We granted a Gateway service role access to Web Answer, added a Web Answer target, called it from a Strands agent, and read the answer and its citations from the response. Use Web Search on AgentCore when your own model should reason over raw results, and Web Answer when your agent needs a finished, cited answer.

Text integral sub licența deschisă a publicației · 1595 cuvinte

Subiecte conexe