mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 15:52:34 +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
|
# For other tools, check all arguments
|
||||||
return (
|
return (
|
||||||
calling.tool_name == last_tool_usage.tool_name
|
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
|
and calling.arguments == last_tool_usage.arguments
|
||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user