AgentOps-AI / agentops

Python SDK for agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks like CrewAI, Langchain, and Autogen
https://agentops.ai
MIT License
1.18k stars 93 forks source link

TypeError #282

Open codingaslu opened 2 days ago

codingaslu commented 2 days ago

TypeError: 'generator' object does not support the context manager protocol

areibman commented 2 days ago

Hey @codingaslu -- Can you give us some more context about how you ran into this error?

  1. Which version of AgentOps are you running?
  2. Are you using any frameworks like AutoGen or Crew?
  3. Can you post a code snippet to replicate?
codingaslu commented 2 days ago

AgentOps Version: AgentOps version 0.2.6.

Frameworks: CrewAI framework.

Issue: CrewAI agent works correctly, but after adding AgentOps initialization code, the CrewAI starts and gives this error.

areibman commented 2 days ago

AgentOps Version: AgentOps version 0.2.6.

Frameworks: CrewAI framework.

Issue: CrewAI agent works correctly, but after adding AgentOps initialization code, the CrewAI starts and gives this error.

Gotcha. Can you make sure you're using the the CrewAI fork?

pip uninstall crewai
pip install git+https://github.com/AgentOps-AI/crewAI.git@main