Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework AgentOps implementation for new agent executor #1334

Closed

Conversation

bboynton97
Copy link
Contributor

Imports LiteLLM in a way that allows for AgentOps to instrument the package

This implementation is significantly cleaner than the Langchain method

@@ -11,11 +11,10 @@
from crewai.utilities import I18N, Converter, ConverterError, Printer

agentops = None
if os.environ.get("AGENTOPS_API_KEY"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we keep this? given that if the person haven't set up a key we probably don't was to try import the library anyway?

@bhancockio
Copy link
Collaborator

After implementing lazy loading for litellm, this PR is no longer needed.

@bhancockio bhancockio closed this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants