Skip to content

Commit 7942902

Browse files
committed
fix: Add type to tool_input (strands-agents#854)
1 parent 842de7a commit 7942902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands/tools/decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ async def stream(self, tool_use: ToolUse, invocation_state: dict[str, Any], **kw
447447
"""
448448
# This is a tool use call - process accordingly
449449
tool_use_id = tool_use.get("toolUseId", "unknown")
450-
tool_input = tool_use.get("input", {})
450+
tool_input: dict[str, Any] = tool_use.get("input", {})
451451

452452
try:
453453
# Validate input against the Pydantic model

0 commit comments

Comments
 (0)