Files
crewAI/tests/crew_test.py
Devin AI 81d69efcc5 fix: Check for AGENTOPS_API_KEY before using agentops (#2601)
Ensures CrewAI checks for the AGENTOPS_API_KEY environment variable
after importing the optional agentops package but before using its
functionality. If the key is missing, CrewAI proceeds as if agentops
is unavailable, preventing NoApiKeyException.

Adds a test case to verify this behavior.

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-04-14 09:26:05 +00:00

150 KiB