$npx skillfedfor your agent

pydantic-ai-slim

AI Agent Framework, the Pydantic way, slim package

With conditionsPyPI Python ModulesReleased Aug 2026154.6M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pydantic_ai_slim-2.29.0-py3-none-any.whl
v2.29.0 · released 2026-08-13 · Python >=3.10 · 9 runtime deps: anyio, exceptiongroup, genai-prices, griffelib, httpx, opentelemetry-api, pydantic-graph, pydantic

Yes, if you are building an AI agent application and already use Pydantic or want structured, type-safe interactions. The low install friction, active maintenance, permissive MIT license, and zero known vulnerabilities make it a safe choice. Consider the full distribution if you need provider integrations or advanced tooling beyond core agent logic.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Depends on pydantic, httpx, anyio, and opentelemetry-api among nine runtime packages.
  • Low friction install with a pure Python wheel.

License · maintenance · safety

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

last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 19,277 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,618,422 downloads/mo, #262 on PyPI

Verify before relying

pip install pydantic-ai-slim

import pydantic_ai_slim

# Core agent framework available via runtime dependencies
  • What specific agent patterns and workflows the slim variant supports versus the full distribution
  • Whether AI provider integration requires additional configuration or credentials beyond the framework
  • Performance characteristics and latency compared to direct provider SDKs
  • How the slim variant differs functionally from the full pydantic-ai package
Same gist for agents: .md · .json

What it is and what it does

Pydantic AI Slim is a lightweight distribution of the Pydantic AI agent framework, designed for developers who want to build AI-powered applications using Pydantic's validation and serialization but don't need the full package's optional dependencies. It provides core agent logic with a minimal footprint, integrating with Pydantic's type system to ensure type-safe interactions. The framework uses httpx for HTTP communication and includes observability via opentelemetry-api.

The package is actively maintained and widely used (top 1000 on PyPI), with support for modern Python versions (3.10–3.14). It depends on nine runtime packages including pydantic, httpx, anyio, opentelemetry-api, genai-prices, griffelib, pydantic-graph, exceptiongroup, and typing-inspection. The slim variant is intended for projects that want the agent framework without pulling in optional integrations, making it suitable for custom or minimal deployments.

Use it for

  • Build a conversational agent that validates and structures responses using Pydantic models
  • Create a multi-step AI workflow where each step's input and output are type-checked
  • Integrate AI capabilities into an existing Pydantic-based application with minimal new dependencies
  • Prototype an agent framework without committing to a full-featured distribution
  • Deploy AI agents in resource-constrained environments where dependency footprint matters

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building an AI agent application and already use Pydantic or want structured, type-safe interactions.

The low install friction, active maintenance, permissive MIT license, and zero known vulnerabilities make it a safe choice. Consider the full distribution if you need provider integrations or advanced tooling beyond core agent logic.

Install

pydantic-ai-slim on PyPI

Before you install

Low friction install with a pure Python wheel. Active maintenance with a recent release (1 day old) and strong community backing (19277 stars). Supports Python 3.10 through 3.14.

Requires Python 3.10 or later. Depends on pydantic, httpx, anyio, and opentelemetry-api among nine runtime packages.

License in practice

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

Quickstart

pip install pydantic-ai-slim

import pydantic_ai_slim

# Core agent framework available via runtime dependencies

Verify before relying

  • What specific agent patterns and workflows the slim variant supports versus the full distribution
  • Whether AI provider integration requires additional configuration or credentials beyond the framework
  • Performance characteristics and latency compared to direct provider SDKs
  • How the slim variant differs functionally from the full pydantic-ai package

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
anyioexceptiongroupgenai-pricesgriffelibhttpxopentelemetry-apipydantic-graphpydantictyping-inspection
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads154,618,422 / month, #262 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
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

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

Tags

Capabilities
pydantic ai agent frameworklightweight ai agent librarypydantic ai slim installminimal ai framework pythonpydantic agent core logicai framework with pydanticagent framework dependencies
Topics
ai-agentspydantic-ecosystemtype-safe

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pydantic ai agent framework”

  • pydantic-ai-slimPydantic AI Slim provides core agent framework logic for building AI…
  • pydantic-aiPydantic AI is a Python framework for building production-grade AI…
  • subagents-pydantic-aiAdds multi-agent delegation to Pydantic AI agents, letting you spawn…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pydantic-ai · pydantic-ai-harness · pydantic-ai-todo · summarization-pydantic-ai · pydantic-ai-skills · pydantic-tes · pydantic-deep · pydantic-graph · fastapi-slim · pydantic-ai-absurd

Further reading