Skip to content

Commit bb34e7c

Browse files
authored
feat: Document invoking tools with hyphens (#83)
* feat: Document invoking tools with hyphens Documents the bugfix implemented in strands-agents/sdk-python#178 where underscores take the place of hyphens --------- Co-authored-by: Mackenzie Zastrow <[email protected]>
1 parent 56bff7b commit bb34e7c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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

docs/user-guide/safety-security/guardrails.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ Ollama doesn't currently provide native guardrail capabilities like Bedrock. Ins
6363
## Additional Resources
6464

6565
* [Amazon Bedrock Guardrails Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html)
66-
* [Allen Institute for AI: Guardrails Project](https://www.guardrailsai.com/docs)
67-
* [LangChain's LCEL Guard Integration](https://llm-guard.com/tutorials/notebooks/langchain/)
66+
* [Allen Institute for AI: Guardrails Project](https://www.guardrailsai.com/docs)

0 commit comments

Comments
 (0)