Using Opik with CrewAI
This notebook showcases how to use Opik with CrewAI. CrewAI is a cutting-edge framework for orchestrating autonomous AI agents.
CrewAI enables you to create AI teams where each agent has specific roles, tools, and goals, working together to accomplish complex tasks.
Think of it as assembling your dream team - each member (agent) brings unique skills and expertise, collaborating seamlessly to achieve your objectives.
For this guide we will use CrewAI’s quickstart example.
Creating an account on Comet.com
Comet provides a hosted version of the Opik platform, simply create an account and grab you API Key.
You can also run the Opik platform locally, see the installation guide for more information.
Preparing our environment
First, we set up our API keys for our LLM-provider as environment variables:
Using CrewAI
The first step is to create our project. We will use an example from CrewAI’s documentation:
Now we can import Opik’s tracker and run our crew
:
You can now go to the Opik app to see the trace: