Percival
Pydantic Integration
Colab Notebook
Weather Agent
This example shows how to:
- Install the required libraries (including the pre-release of Patronus 0.1.4rc1).
- Create two
pydantic_ai
agents (a weather tool agent and a manager agent). - Trace execution with Patronus, OpenTelemetry threading, and asyncio instrumentors.
Export your
OPENAI_API_KEY
(or configurepydantic_ai
with another provider) before running this script.