From 64a08754321c67ac242920f5dd0c6c9203df16ca Mon Sep 17 00:00:00 2001 From: Prabhu Teja Date: Fri, 12 Sep 2025 14:19:08 +0200 Subject: [PATCH] Fixing documentation in decorator.py The documentation provided for the tool decorator has been updated to work with the version 1.8.0 --- src/strands/tools/decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strands/tools/decorator.py b/src/strands/tools/decorator.py index 8b218dfa1..1486849ff 100644 --- a/src/strands/tools/decorator.py +++ b/src/strands/tools/decorator.py @@ -36,7 +36,7 @@ def my_tool(param1: str, param2: int = 42) -> dict: } agent = Agent(tools=[my_tool]) - agent.my_tool(param1="hello", param2=123) + agent.tool.my_tool(param1="hello", param2=123) ``` """