Integrations / Pydantic AI
To trace Pydantic AI with Uncoil, wrap the agent run in trace_agent and record tools as steps, or send Pydantic AI's OpenTelemetry spans to Uncoil over OTLP.
Your code
Pydantic AI
Uncoil
One run.
Setup
import uncoil
@uncoil.trace_agent(name="pydantic-agent")
async def ask(question: str):
with uncoil.span("agent-run", type="agent", input=question):
result = await agent.run(question)
return result.outputFull details in the documentation. All integrations are listed on the integrations page.
