mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
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>