diff --git a/.prompt b/.prompt index 8512fa9..5333d0f 100644 --- a/.prompt +++ b/.prompt @@ -204,7 +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 - hot_reload_tools=True # Reload tools if changed at runtime + load_tools_from_directory=True, # Auto load tools from tools directory ) ``` 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