Why you'd want it
Pydantic AI gives you an agent whose tools and outputs are typed: tool arguments are validated before your code runs, and a run is guaranteed to return the output type you declared. The same agent can run behind a web frontend, in the terminal, on a voice call, or under durable execution with Temporal, DBOS or Prefect. Pydantic AI Harness adds capabilities such as memory, guardrails, sub-agents, planning and context management, and its instrumentation is plain OpenTelemetry.
Best for
- Typed data extraction
- Python teams already using Pydantic
- Durable background agents on Temporal or DBOS
Use it when
You want type checking and validation across tools and outputs, plus the option to switch model providers without rewriting the agent.
Skip it if
You are not working in Python.