Skip to content

Commit dba34ca

Browse files
committed
refactor: improve AgentConfig file handling and default tools
- Add static FILE_PREFIX constant for better file:// handling - Use removeprefix() instead of substring indexing for cleaner code - Add static DEFAULT_TOOLS list with experimental minimum viable tools - Add comprehensive error handling for missing strands_tools - Require either strands_tools installation or custom ToolPool with your own tools - Fix logic to check for tools before creating default ToolPool - Update all tests to handle new validation requirements - Add test for ImportError when strands_tools not available 🤖 Assisted by Amazon Q Developer
1 parent 5dc2c20 commit dba34ca

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
@@ -82,7 +82,7 @@ def _create_default_tool_pool(self) -> ToolPool:
8282
raise ImportError(
8383
f"strands_tools is not available and no ToolPool was specified. "
8484
f"Either install strands_tools with 'pip install strands-agents-tools' "
85-
f"or provide your own ToolPool with native tools."
85+
f"or provide your own ToolPool with your own tools."
8686
)
8787

8888
return pool

0 commit comments

Comments
 (0)