Home/AI Agents/pydantic-ai
pydantic-ai logo

pydantic-ai

pydantic/pydantic-ai

Python AI SDK with typed, extensible agent loop

GraphCanon updated Oct 4, 2026 · GitHub synced Sep 20, 2026

67views this month

20k stars2.7k forksLast push Sep 18, 2026 Python MIT

Decision brief

Pydantic AI is a Python SDK for AI that offers a typed, extensible agent loop with support for various models and interfaces, including web frontend, terminal, voice call, durable background queue, and GitHub Actions.

Good fit when

  • When you need a typed and extensible agent loop that can be easily integrated into different interfaces such as web frontends, terminals, voice calls, and GitHub Actions.
  • If your project requires support for image generation and embeddings, as these features are included in the same package.

Avoid when

  • If your project does not require a typed agent loop or if you prefer a more loosely typed framework.
  • When you are working in a language other than Python, as Pydantic AI is specifically designed for Python.

Observed Sep 18, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of Sep 18, 2026
Provenance
Not a fork · Organization account
As of Sep 18, 2026
Security (OSV)
No lockfile
As of Oct 4, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install pydantic-ai
PyPI

How it fits your stack(5)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Pydantic AI is a Python SDK for AI that provides a typed, extensible agent loop with support for various models and interfaces, including web frontend, terminal, voice call, durable background queue, and GitHub Actions.

Capability facts

CLI
CLI entrypoint

Source: pyproject.toml:[project.scripts] · Sep 18, 2026

Languages
python

Source: github.language+pyproject.toml · Sep 18, 2026

Categories

Graph entities

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Sep 18, 2026)

<h3>How Python does AI</h3>
Source link

Tags

README

<div align="center" <a href="https://pydantic.dev/docs/ai/" <picture <source media="(prefers color scheme: dark)" srcset="https://pydantic.dev/docs/ai/img/pydantic ai dark.svg" <img src="https://pydantic.dev/docs/ai/img/pydantic ai light.svg" alt="Pydantic AI" </picture </a </div...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.