From ad9aaf3ed5b7c4043340d81b8bd80caad029fb28 Mon Sep 17 00:00:00 2001 From: Pratyush Shukla Date: Tue, 4 Feb 2025 10:53:12 +0530 Subject: [PATCH] remove `agentops` from `on_tool_use` args --- src/crewai/agents/tools_handler.py | 1 - src/crewai/tools/tool_usage.py | 1 - 2 files changed, 2 deletions(-) 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: