Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description
Percival

CrewAI Integration

Colab Notebook

CrewAI Weather Agent

This guide shows how to instrument a CrewAI crew with Percival/Patronus. You’ll install the required packages, define a custom WeatherTool, create two agents (manager + specialist), and run them under a hierarchical process.

# Install dependencies
pip install crewai \
            openinference-instrumentation-crewai \
            opentelemetry-instrumentation-threading \
            opentelemetry-instrumentation-asyncio \
            patronus

Replace <YOUR_OPENAI_API_KEY> with your real key or export it in your shell environment before running the script.

On this page