From 078c9c83887036deb81f155ffa27661d4063e794 Mon Sep 17 00:00:00 2001 From: Nicholas Clegg Date: Fri, 12 Sep 2025 11:28:55 -0400 Subject: [PATCH] fix: Add type to tool_input --- 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..4923a44ee 100644 --- a/src/strands/tools/decorator.py +++ b/src/strands/tools/decorator.py @@ -447,7 +447,7 @@ async def stream(self, tool_use: ToolUse, invocation_state: dict[str, Any], **kw """ # This is a tool use call - process accordingly tool_use_id = tool_use.get("toolUseId", "unknown") - tool_input = tool_use.get("input", {}) + tool_input: dict[str, Any] = tool_use.get("input", {}) try: # Validate input against the Pydantic model