From 7dc219a24edcea06da664bb9311ce4a8121340f0 Mon Sep 17 00:00:00 2001 From: Mackenzie Zastrow Date: Thu, 5 Jun 2025 09:37:30 -0400 Subject: [PATCH 1/2] feat: Document invoking tools with hyphens Documents the bugfix implemented in strands-agents/sdk-python#178 where underscores take the place of hyphens --- docs/user-guide/concepts/tools/tools_overview.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/user-guide/concepts/tools/tools_overview.md b/docs/user-guide/concepts/tools/tools_overview.md index 66f4f711..a1b2e572 100644 --- a/docs/user-guide/concepts/tools/tools_overview.md +++ b/docs/user-guide/concepts/tools/tools_overview.md @@ -76,6 +76,13 @@ Every tool added to an agent also becomes a method accessible directly on the ag result = agent.tool.file_read(path="/path/to/file.txt", mode="view") ``` +If a tool name contains hyphens, you can invoke the tool using underscores instead: + +```python +# Directly invoke a tool named "read-all" +result = agent.tool.read_all(path="/path/to/file.txt") +``` + ## Building & Loading Tools ### 1. Python Tools From 42b5bb28483855847cf44900207c560d6a1086d2 Mon Sep 17 00:00:00 2001 From: Mackenzie Zastrow Date: Thu, 5 Jun 2025 09:47:25 -0400 Subject: [PATCH 2/2] fix: Remove link that no longer resolves (always gets timeouts attempting to visit it) --- docs/user-guide/safety-security/guardrails.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/user-guide/safety-security/guardrails.md b/docs/user-guide/safety-security/guardrails.md index e217d7c7..5d7f6946 100644 --- a/docs/user-guide/safety-security/guardrails.md +++ b/docs/user-guide/safety-security/guardrails.md @@ -63,5 +63,4 @@ Ollama doesn't currently provide native guardrail capabilities like Bedrock. Ins ## Additional Resources * [Amazon Bedrock Guardrails Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) -* [Allen Institute for AI: Guardrails Project](https://www.guardrailsai.com/docs) -* [LangChain's LCEL Guard Integration](https://llm-guard.com/tutorials/notebooks/langchain/) \ No newline at end of file +* [Allen Institute for AI: Guardrails Project](https://www.guardrailsai.com/docs) \ No newline at end of file