fix: handle None arguments in tool usage comparison

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-24 13:17:19 +00:00
parent 570977acf8
commit b44842d1de

View File

@@ -297,6 +297,8 @@ class ToolUsage:
# For other tools, check all arguments
return (
calling.tool_name == last_tool_usage.tool_name
and calling.arguments is not None
and last_tool_usage.arguments is not None
and calling.arguments == last_tool_usage.arguments
)
return False