mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-06 09:42:39 +00:00
remove agentops from on_tool_use args
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -248,7 +248,6 @@ class ToolUsage:
|
||||
calling=calling,
|
||||
output=result,
|
||||
should_cache=should_cache,
|
||||
agentops=agentops,
|
||||
)
|
||||
|
||||
if agentops:
|
||||
|
||||
Reference in New Issue
Block a user