AgentOps-AI/agentops

CrewAI is failing when I use agentops

anmol-aidora opened this issue ยท 1 comments

๐Ÿ› Bug Report

๐Ÿ”Ž Describe the Bug
When I am using agentops, CrewAI Crew.kickoff returns None

๐Ÿ”„ Reproduction Steps

import os
from dotenv import load_dotenv
assert load_dotenv()
import agentops
agentops.init(os.environ["AGENTOPS_API_KEY"])

...
crew.kickoff()

Output

> Entering new CrewAgentExecutor chain...
> Finished chain.
 Error parsing JSON: Expecting value: line 1 column 1 (char 0). Attempting to handle partial JSON.
 Failed to convert text into JSON, error: 'NoneType' object is not callable. Using raw output instead.
 [2024-09-06 17:44:26][DEBUG]: == [Agent Name] Task output: Agent stopped due to iteration limit or time limit.

When I remove the agentops lines from the code, it starts working.

This is not an issue with agentops. Its an issue with CrewAI. Closing it.