Skip to content

Commit 811afab

Browse files
committed
fix: reference module instead of tool in error message
- Change error message from 'Tool X not found' to 'Module X not found' - More accurate since we're trying to import it as a module at this point - Maintains existing test compatibility and error handling logic 🤖 Assisted by Amazon Q Developer
1 parent 953ae34 commit 811afab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands/experimental/agent_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _validate_tools(tools: list[str]) -> None:
9292
)
9393
else:
9494
raise ValueError(
95-
f"Tool '{tool}' not found. "
95+
f"Module '{tool}' not found. "
9696
f"The configured tool is not annotated with @tool, and is not a module or file."
9797
)
9898

0 commit comments

Comments
 (0)