Skip to content

Commit 040ba21

Browse files
authored
docs(readme): add hot reloading documentation for load_tools_from_directory (strands-agents#517)
- Add new section showcasing Agent(load_tools_from_directory=True) functionality - Document automatic tool loading and reloading from ./tools/ directory - Include practical code example for developers - Improve discoverability of this development feature
1 parent 9aba018 commit 040ba21

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ agent = Agent(tools=[word_count])
9191
response = agent("How many words are in this sentence?")
9292
```
9393

94+
**Hot Reloading from Directory:**
95+
Enable automatic tool loading and reloading from the `./tools/` directory:
96+
97+
```python
98+
from strands import Agent
99+
100+
# Agent will watch ./tools/ directory for changes
101+
agent = Agent(load_tools_from_directory=True)
102+
response = agent("Use any tools you find in the tools directory")
103+
```
104+
94105
### MCP Support
95106

96107
Seamlessly integrate Model Context Protocol (MCP) servers:

0 commit comments

Comments
 (0)