Pydantic AI

Pydantic

Open Source

Type-safe Python agent framework from the Pydantic team with model-agnostic providers and durable execution integrations.

Curated by Tiberiu ArvaVerified

MITVersion 2.68.0Released 2026-11-12

Strengths

  • Typed tools, deps and structured outputs
  • Temporal/DBOS/Prefect durable execution
  • OpenTelemetry tracing via Logfire

Practitioner note

Good fit for Python teams that want typed, testable agent code and to swap model providers by string; pair with Temporal or DBOS for long-running work. v1 still gets security patches (v1.107.7 alongside v2.52.0), so pin a major version deliberately.

Where it sits in the stack

Listed under Agent frameworks in the Build & orchestrate layer.

  1. Build & orchestrate
  2. Control plane
  3. Use

Governance posture

Reviewed 2026-09-30
YesData residency

Self-hosted library; operator controls placement and model provider (Logfire cloud is optional and separate).

Source
YesDeployment model

OSS library run in the operator's own process; no hosted control plane required. (self-hosted)

Source
PartialAudit logging

No built-in audit log; OpenTelemetry instrumentation (optionally to Logfire) must be wired up by the operator.

Source
N/ASOC 2

Self-hosted library; SOC 2 applies to the operator's infrastructure, not the package.

N/AISO 27001

Self-hosted library; ISO 27001 applies to the operator's ISMS, not the package.

N/AISO 42001

Self-hosted library; ISO 42001 applies to the deploying organisation.

N/AEU AI Act

Developer component, not an AI system placed on the market; obligations rest with the deployer. (role: not-applicable)

YesLicense risk

MIT — permissive, OSI-approved. (low)

Source

EU AI Act obligations

Risk tier: Not applicable · as of 2026-11-12

Source-backed information mapped from Pydantic AI's tracked risk tier — not legal advice. Obligations depend on how your organisation deploys the system; see the full obligation reference and timeline.

This record's EU AI Act risk tier is marked not applicable, so no tier-specific obligations attach. Deployers embedding it in an AI system in scope of the Act should assess that system's own tier.

Change history

Source-backed and auto-detected events for this tool, newest first.

  1. ReleaseHigh impact
    Pydantic AI 2.66.0 fixes nine security advisories

    Pydantic AI 2.66.0 fixes nine advisories, two rated high: memory exhaustion from nested JSON in web fetch (GHSA-m5vj-8mcw-82qx) and a regex backtracking flaw in harness secret redaction (GHSA-mfx5-pc32-32m8). Embedding traces could record credentials.

    Release v2.66.0 · pydantic/pydantic-ai
  2. ReleaseHigh impact
    Pydantic AI 2.58.0 fixes MCP credential leak in traces

    Pydantic AI 2.58.0 fixes advisory GHSA-xv4x-g8mx-ch56 (moderate): provider-native MCP configuration could expose server URLs, authorization tokens and custom headers in OpenTelemetry traces, even with include_content=False. Rotate exposed credentials.

    Release v2.58.0 · pydantic/pydantic-ai
  3. Release

    Pydantic AI 2.55.0 requires Python 3.11+ in every package, adds a Conversation object and Postgres step and media stores, and supports Claude Haiku 5.5.

    Release v2.55.0 · pydantic/pydantic-ai
  4. Release

    Pydantic AI 2.53.0 fixed high-severity advisory GHSA-6fqq-452j-qhrp, where a streamed request through ConcurrencyLimitedModel could keep its concurrency slot and block other requests sharing the limiter. Pydantic AI v1 is not affected.

    Release v2.53.0 · pydantic/pydantic-ai
  5. Auto-detected
    lastRelease: 2026-11-03 → 2026-11-12

    From snapshot diff 2026-11-04 → 2026-11-12.

  6. Auto-detected
    version: 2.65.0 → 2.68.0

    From snapshot diff 2026-11-04 → 2026-11-12.

  7. Auto-detected
    lastRelease: 2026-10-21 → 2026-11-03

    From snapshot diff 2026-10-22 → 2026-11-04.

  8. Auto-detected
    version: 2.59.0 → 2.65.0

    From snapshot diff 2026-10-22 → 2026-11-04.

  9. Auto-detected
    lastRelease: 2026-10-09 → 2026-10-21

    From snapshot diff 2026-10-10 → 2026-10-22.

  10. Auto-detected
    version: 2.55.0 → 2.59.0

    From snapshot diff 2026-10-10 → 2026-10-22.

  11. Auto-detected
    tracked: — → added

    From snapshot diff 2026-09-13 → 2026-10-10.

Explore the category

Compare this tool against the rest of its category and the cloud platform foundation layer.