diff --git a/docs/user-guide/concepts/tools/tools_overview.md b/docs/user-guide/concepts/tools/tools_overview.md index 290b6240..437e51f6 100644 --- a/docs/user-guide/concepts/tools/tools_overview.md +++ b/docs/user-guide/concepts/tools/tools_overview.md @@ -44,12 +44,12 @@ agent = Agent(tools=["/path/to/my_tool.py"]) Tools placed in your current working directory `./tools/` can be automatically loaded at agent initialization, and automatically reloaded when modified. This can be really useful when developing and debugging tools: simply modify the tool code and any agents using that tool will reload it to use the latest modifications! -Automatic loading and reloading of tools in the `./tools/` directory is enabled by default with the `load_tools_from_directory=True` parameter passed to `Agent` during initialization. To disable this behavior, simply set `load_tools_from_directory=False`: +Automatic loading and reloading of tools in the `./tools/` directory is disabled by default. To enable this behavior, set `load_tools_from_directory=True` during `Agent` initialization: ```python from strands import Agent -agent = Agent(load_tools_from_directory=False) +agent = Agent(load_tools_from_directory=True) ``` ## Using Tools diff --git a/docs/user-guide/deploy/operating-agents-in-production.md b/docs/user-guide/deploy/operating-agents-in-production.md index 4e38ba68..7a22a5be 100644 --- a/docs/user-guide/deploy/operating-agents-in-production.md +++ b/docs/user-guide/deploy/operating-agents-in-production.md @@ -35,7 +35,7 @@ See: In production environments, it's critical to control which tools are available to your agent. You should: - **Explicitly Specify Tools**: Always provide an explicit list of tools rather than loading all available tools - - **Disable Automatic Tool Loading**: For stability in production, disable automatic loading and reloading of tools + - **Keep Automatic Tool Loading Disabled**: For stability in production, keep automatic loading and reloading of tools disabled (the default behavior) - **Audit Tool Usage**: Regularly review which tools are being used and remove any that aren't necessary for your use case ```python @@ -43,8 +43,8 @@ agent = Agent( ..., # Explicitly specify tools tools=[weather_research, weather_analysis, summarizer], - # Disable automatic tool loading in production - load_tools_from_directory=False, + # Automatic tool loading is disabled by default (recommended for production) + # load_tools_from_directory=False, # This is the default ) ```