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

Move crewai tool decorator import to function where it is used to prevent import errors on init. #216

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

tcdent
Copy link
Collaborator

@tcdent tcdent commented Jan 16, 2025

We're interacting with a crew project on init, but don't actually have crew installed since the project's venv is not yet active. Defer importing crew until we actually need it.

This resolves #215

Copy link
Contributor

@bboynton97 bboynton97 left a comment

Choose a reason for hiding this comment

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

beautiful

@bboynton97 bboynton97 merged commit 2fb76f0 into AgentOps-AI:main Jan 16, 2025
8 checks passed
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agentstack/frameworks/crewai.py 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

[Bug] CrewAI not installed by default for crew project
2 participants