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

OPIK-653: Add integration with CrewAI #988

Merged
merged 16 commits into from
Jan 9, 2025
Merged

OPIK-653: Add integration with CrewAI #988

merged 16 commits into from
Jan 9, 2025

Conversation

japdubengsub
Copy link
Contributor

@japdubengsub japdubengsub commented Jan 6, 2025

Details

Integration with the CrewAI library has been added. Logging functions for Crew, Agent, Task and LLM calls are supported. Additionally, token usage info calculation is available for the OpenAI provider.

Important notes:

  • Only synchronous execution is currently supported.
  • When using this tracker, avoid using the OpenAI tracker to prevent duplicate logging of LLM calls and token usage.
from opik.integrations.crewai import track_crewai

track_crewai(project_name="my_project")

run_your_script_here()

For example from quickstart the trace tree will look like:

image

Resolves #
#953

Testing

integration test added

@japdubengsub japdubengsub marked this pull request as ready for review January 9, 2025 20:53
@japdubengsub japdubengsub requested review from a team as code owners January 9, 2025 20:53
@alexkuzmik alexkuzmik merged commit b63f1d4 into main Jan 9, 2025
41 checks passed
@alexkuzmik alexkuzmik deleted the OPIK-653 branch January 9, 2025 22:25
@andrescrz andrescrz changed the title OPIK-653 OPIK-653: Add integration with CrewAI Jan 10, 2025
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.

2 participants