crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
19k stars 2.62k forks source link

AgentOps ENG-525: Decouple CrewAI and AgentOps #1033

Closed tiovikram closed 1 month ago

tiovikram commented 1 month ago

What

CrewAI attempts to import agentops by default if the agentops package is installed in the environment.

Why

This makes breakages such as the following to become more apparent and fatal.

IMG_6237

How

Only import agentops if AGENTOPS_API_KEY environment variable is set.

tiovikram commented 1 month ago

AgentOps Reviewers: @areibman @bboynton97

joaomdmoura commented 1 month ago

Good catch!