Back to directory

Pydantic AI

A typed Python SDK for building AI agents that can run behind a web frontend, in a terminal, on a voice call or as a background job, with the same agent portable across models and interfaces.

Pydantic AI

Pydantic AI is a Python SDK for building AI agents: a typed, extensible agent loop where switching models is a string change. The same agent can run behind a web frontend, in a terminal, on a voice call, on a durable background queue, in GitHub Actions, or as a plain object with a run() method. Image generation and embeddings are built in, and companion packages, Pydantic Graph and Pydantic Evals, add typed control flow and testing for agent behavior.

Pydantic AI Harness adds capabilities for long-running work, such as memory, guardrails, sub-agents, planning, context management and persistence, up to a complete coding agent with workspace-rooted file access, an allowlisted shell and repository orientation.

Related components include Pydantic Logfire for observability across a whole application rather than only its model calls, a gateway that gives one key for many models with cost monitoring, a pricing lookup package, and a sandboxed Python interpreter for running model-written code.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.