diff --git a/src/crewai/agents/tools_handler.py b/src/crewai/agents/tools_handler.py index 140598e8c..70a18eec2 100644 --- a/src/crewai/agents/tools_handler.py +++ b/src/crewai/agents/tools_handler.py @@ -21,7 +21,6 @@ class ToolsHandler: calling: Union[ToolCalling, InstructorToolCalling], output: str, should_cache: bool = True, - agentops: Optional[Any] = None, ) -> Any: """Run when tool ends running.""" self.last_used_tool = calling # type: ignore # BUG?: Incompatible types in assignment (expression has type "Union[ToolCalling, InstructorToolCalling]", variable has type "ToolCalling") diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index 31e4d141e..5a78f7e3b 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -248,7 +248,6 @@ class ToolUsage: calling=calling, output=result, should_cache=should_cache, - agentops=agentops, ) if agentops: