agentops 0.1.5

This commit is contained in:
Braelyn Boynton
2024-04-19 19:07:53 -07:00
parent 7725e7c52e
commit c52b5e9690
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ click = "^8.1.7"
python-dotenv = "1.0.0"
embedchain = "^0.1.98"
appdirs = "^1.4.4"
agentops = { version = "^0.1.1", optional = true }
agentops = { version = "^0.1.5", optional = true }
[tool.poetry.extras]
tools = ["crewai-tools"]

View File

@@ -165,7 +165,7 @@ class ToolUsage:
return error
self.task.increment_tools_errors()
if agentops:
agentops.record(agentops.ErrorEvent(details=e, trigger_event=tool_event))
agentops.record(agentops.ErrorEvent(exception=e, trigger_event=tool_event))
return self.use(calling=calling, tool_string=tool_string)
if self.tools_handler: