mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-14 18:48:29 +00:00
fix: handle None arguments in tool usage comparison
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user