Skip to content

v0.8.0 - AWS AgentCore Web Search

Choose a tag to compare

@yogev-nimble yogev-nimble released this 28 Oct 09:05
0e944bb

Search through your own AWS AgentCore Gateway, plus PNG screenshots on Anchor.

🚀 What's New

AWS AgentCore Web Search as a search backend (agentcore) (#35)

  • Searches through your own AgentCore Gateway, set in AGENTCORE_GATEWAY_URL. Requests are SigV4-signed with botocore's usual credential chain, for the region in the gateway's hostname. Install the new aws extra (all includes it)
  • Maps max_results (at most 25), include_domains and exclude_domains (connector 1.2.0 or later; an older target raises rather than dropping them). Queries up to 200 characters. A date range goes through provider_options
  • AWS's terms apply: show each result's citation, and don't store results in bulk
  • Setup and teardown: docs/agentcore-setup.md
from web_router import Provider, WebRouter

response = WebRouter(Provider.AGENTCORE).search("python 3.13 release", max_results=5, include_domains=["python.org"])
print(response.provider, [result.url for result in response.results])

🐛 Fixes

  • Screenshots on Anchor are PNG. Anchor answered a PNG request with JPEG bytes, so Screenshot.png held a JPEG, width and height were wrong, and the MCP server labeled it image/png. A capture that is not PNG is now converted with Pillow, which the browser extra now installs (#36)
  • MCP-based search backends no longer treat a reply carried only in structuredContent as empty (#35)

Full Changelog: v0.7.0...v0.8.0