Skip to content

Commit 7dc219a

Browse files
committed
feat: Document invoking tools with hyphens
Documents the bugfix implemented in strands-agents/sdk-python#178 where underscores take the place of hyphens
1 parent 12bb51a commit 7dc219a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/user-guide/concepts/tools/tools_overview.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ Every tool added to an agent also becomes a method accessible directly on the ag
7676
result = agent.tool.file_read(path="/path/to/file.txt", mode="view")
7777
```
7878

79+
If a tool name contains hyphens, you can invoke the tool using underscores instead:
80+
81+
```python
82+
# Directly invoke a tool named "read-all"
83+
result = agent.tool.read_all(path="/path/to/file.txt")
84+
```
85+
7986
## Building & Loading Tools
8087

8188
### 1. Python Tools

0 commit comments

Comments
 (0)