Installation
Usage
How It Works
track_pydantic_ai patches Agent.run and Agent.run_sync to intercept LLM calls. After each agent run, it:
- Extracts the model name from the agent’s model configuration
- Extracts token counts from
RunResult.usage()(RunUsageobject) - Infers the provider from the model string prefix
- Sends the usage event to MeshAI (buffered, non-blocking)

