From 976ad2056d145d904ad13ced916479fdfe77ef3c Mon Sep 17 00:00:00 2001 From: Dean Schmigelski Date: Fri, 11 Jul 2025 12:37:01 -0400 Subject: [PATCH 1/2] chore: explicitly set load_tools_from_directory on Agent initilizations --- .prompt | 1 + src/strands_agents_builder/strands.py | 1 + tools/welcome.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.prompt b/.prompt index 8512fa9..9ef4f9c 100644 --- a/.prompt +++ b/.prompt @@ -204,6 +204,7 @@ agent = Agent( callback_handler=custom_handler, # Optional custom output handling max_parallel_tools=4, # Configure parallel tool execution record_direct_tool_call=True, # Record direct tool calls in history + load_tools_from_directory=True, # Auto load tools from tools directory hot_reload_tools=True # Reload tools if changed at runtime ) ``` diff --git a/src/strands_agents_builder/strands.py b/src/strands_agents_builder/strands.py index 643271d..ab64c2e 100644 --- a/src/strands_agents_builder/strands.py +++ b/src/strands_agents_builder/strands.py @@ -58,6 +58,7 @@ def main(): tools=tools, system_prompt=system_prompt, callback_handler=callback_handler, + load_tools_from_directory=True, ) # Process query or enter interactive mode diff --git a/tools/welcome.py b/tools/welcome.py index b4b9748..b5cb343 100644 --- a/tools/welcome.py +++ b/tools/welcome.py @@ -16,7 +16,7 @@ from strands import Agent, tool from strands_tools import load_tool, shell, editor -agent = Agent(tools=[load_tool, shell, editor]) +agent = Agent(tools=[load_tool, shell, editor], load_tools_from_directory=True) ``` ### 2️⃣ Tool Definition Pattern From 3b31a2ece3a353db6b3d0137439e632b070d710a Mon Sep 17 00:00:00 2001 From: Dean Schmigelski Date: Fri, 11 Jul 2025 13:12:27 -0400 Subject: [PATCH 2/2] Update .prompt --- .prompt | 1 - 1 file changed, 1 deletion(-) diff --git a/.prompt b/.prompt index 9ef4f9c..5333d0f 100644 --- a/.prompt +++ b/.prompt @@ -205,7 +205,6 @@ agent = Agent( max_parallel_tools=4, # Configure parallel tool execution record_direct_tool_call=True, # Record direct tool calls in history load_tools_from_directory=True, # Auto load tools from tools directory - hot_reload_tools=True # Reload tools if changed at runtime ) ```