skillfed

pydantic-ai-slim

AI Agent Framework, the Pydantic way, slim package

pydantic-ai-slim Permissive license MIT Active 19,271 v2.29.0 released

Install

pydantic-ai-slim on PyPI

pip

pip install pydantic-ai-slim

uv

uv add pydantic-ai-slim

poetry

poetry add pydantic-ai-slim

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 9 — anyio, exceptiongroup, genai-prices, griffelib, httpx, opentelemetry-api, pydantic-graph, pydantic, typing-inspection
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: pydantic_ai_slim-2.29.0-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules

About pydantic-ai-slim

from the package's own PyPI description — quoted content, verbatim

Pydantic AI Slim

CI (image) Coverage (image) PyPI (image) versions (image) license (image)

Pydantic AI core logic with minimal required dependencies.

For more information on how to use this package see ai.pydantic.dev/install.

Read as markdown · JSON record · Source repository · Homepage · Docs

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Pydantic AI Slim provides core AI agent framework logic with minimal dependencies, enabling you to build structured AI applications using Pydantic's validation and type safety.

Low friction installation with a pure-Python wheel and nine runtime dependencies. Actively maintained with a recent release (0 days since last update) and strong upstream signals from the repository.

MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you retain the license notice.

Usage

pip install pydantic-ai-slim

from pydantic import BaseModel
import httpx

# Core framework with pydantic validation and httpx for async I/O

Requires Python 3.10 or later.

Verdict: Pydantic AI Slim is a production-ready, actively maintained framework with permissive MIT licensing and low install friction. It targets current Python versions (3.10–3.14) and carries no known vulnerabilities. Suitable for developers building structured AI applications with Pydantic's type safety.

Needs verification

  • What specific agent-building capabilities the framework provides beyond its core logic and dependencies.
  • Whether the nine runtime dependencies (genai-prices, pydantic-graph, opentelemetry-api, etc.) introduce transitive security or maintenance concerns.
  • How the 'slim' variant differs functionally from the full pydantic-ai package.
ai agent framework pythonpydantic ai slimstructured ai with pydanticlightweight ai librarypython ai validation frameworkagentic ai toolsllm agent builder

Similar packages