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