Skip to content

docs(web-search): add common pitfalls to prevent import confusion - #1853

Open
abhisheksarolia wants to merge 1 commit into
awslabs:mainfrom
abhisheksarolia:docs/clarify-web-search-usage
Open

docs(web-search): add common pitfalls to prevent import confusion#1853
abhisheksarolia wants to merge 1 commit into
awslabs:mainfrom
abhisheksarolia:docs/clarify-web-search-usage

Conversation

@abhisheksarolia

Copy link
Copy Markdown

Summary

  • Adds a "Common Pitfalls" table to the web search README documenting frequent mistakes (non-existent imports like strands.tools.web_search, calling tools directly instead of passing to Agent, region availability)
  • Adds a clarifying note to the parent README that web search is not a local import

Motivation

Developers and coding agents frequently attempt from strands.tools.web_search import web_search or similar non-existent imports. This leads to ModuleNotFoundError and confusion about how web search actually works in AgentCore (via Gateway + MCP, not a local package).

Test plan

  • Verify markdown renders correctly on GitHub
  • Confirm no broken links

🤖 Generated with Claude Code

…sion

Developers and coding agents frequently attempt non-existent imports like
`from strands.tools.web_search import web_search` or try to call
strands_tools functions directly instead of passing them to an Agent.
This adds a pitfalls table and clarifying notes to prevent these errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant