Our docs got a refresh! Check out the new content and improved navigation. For detailed API reference see our Python SDK docs and TypeScript SDK.
Description
PercivalIntegrations

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