Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/user-guide/concepts/tools/tools_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/user-guide/deploy/operating-agents-in-production.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ 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
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
)
```

Expand Down