# pydantic-ai-slim

> Agent Framework / shim to use Pydantic with LLMs, slim package

- **URL**: https://www.freshcrate.ai/projects/pydantic-ai-slim
- **Author**: pypi
- **Category**: Frameworks
- **Latest version**: `v1.106.0` (2026-06-05)
- **License**: Unknown
- **Source**: https://github.com/pydantic/pydantic-ai/releases
- **Homepage**: https://pypi.org/project/pydantic-ai-slim/
- **Language**: Python
- **GitHub**: 16,531 stars, 1,958 forks
- **Registry**: pypi (`pydantic-ai-slim`)
- **Tags**: `pypi`

## Description

# Pydantic AI Slim

[![CI](https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml?query=branch%3Amain)
[![Coverage](https://coverage-badge.samuelcolvin.workers.dev/pydantic/pydantic-ai.svg)](https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/pydantic-ai)
[![PyPI](https://img.shields.io/pypi/v/pydantic-ai-slim.svg)](https://pypi.python.org/pypi/pydantic-ai-slim)
[![versions](https://img.shields.io/pypi/pyversions/pydantic-ai-slim.svg)](https://github.com/pydantic/pydantic-ai)
[![license](https://img.shields.io/github/license/pydantic/pydantic-ai.svg?v)](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE)

Pydantic AI core logic with minimal required dependencies.

For more information on how to use this package see [ai.pydantic.dev/install](https://ai.pydantic.dev/install/).

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v1.106.0` | 2026-06-05 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * Map base `seed` setting to xAI by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/5741 * Add `api_host` and `timeout` to `XaiProvider` by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/5742 ### 🐛 Bug Fixes * Fix incomplete streamed response when `event_stream_handler` doesn't consume the stream by @adtyavrdhn in https://github.com/pydantic/pydan |
| `v1.104.0` | 2026-05-29 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * Add Claude Opus 4.8 support by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5709 ### 🐛 Bug Fixes * Forward `thinking=False` on hybrid OpenRouter/xAI/Bedrock routes, aligning silent-drop with direct routes by @sarth6 in https://github.com/pydantic/pydantic-ai/pull/5433 * Fix Bedrock single-tool `tool_choice` cache preservation by @dsfaccini in https://github.com/ |
| `v1.101.0` | 2026-05-22 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * Add pending message queue (`ctx.enqueue` / `agent_run.enqueue`) by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4980 * Add support for MCP background tasks (SEP-1686) by @Alex-Resch in https://github.com/pydantic/pydantic-ai/pull/5192 * Make `XSearch` capability model-agnostic via subagent fallback by @colesmcintosh in https://github.com/pydantic/pydantic-ai/p |
| `v1.96.1` | 2026-05-15 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🆕 V2 Preparation (coming in June) * Deprecate `Agent` constructor `prepare_tools=`, `prepare_output_tools=`, `event_stream_handler=` in favor of `PrepareTools`, `PrepareOutputTools`, `ProcessEventStream` capabilities by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5335 ### 🐛 Bug Fixes * openai: omit `input_fidelity` when `None` in image generation tool by @pydanty[bot] |
| `v1.93.0` | 2026-05-09 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * Add `tool_choice` setting by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3611 * Yield `OutputToolCallEvent`/`OutputToolResultEvent` for output tool calls; deprecate function-tool events for failing output tool calls by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5320 ### 🐛 Bug Fixes * Drain spawned tasks during agent cancellation by @adtyavrd |
| `v1.90.0` | 2026-05-05 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * feat: add OpenAI Conversations API state support via `OpenAIResponsesModelSettings.openai_conversation_id` by @corytomlinson in https://github.com/pydantic/pydantic-ai/pull/5224 * feat: typed OTel metadata for code tool call syntax highlighting by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5297 ### 📦 Dependencies * Upgrade web UI to `pydantic/ai-chat-ui` 1 |
| `v1.88.0` | 2026-04-29 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * feat(capabilities)!: output validate/process hooks; scope `prepare_tools` to function tools, add `prepare_output_tools` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4859 * feat: cross-provider `service_tier` model setting; Anthropic + Gemini API + Vertex Priority PayGo support by @markmcd in https://github.com/pydantic/pydantic-ai/pull/4926 * Add anthropic |
| `v1.86.0` | 2026-04-23 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * feat(ui): add `UIAdapter.manage_system_prompt` + `ReinjectSystemPrompt` capability by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/4087 ### 🐛 Bug Fixes * fix(vercel-ai): allow regenerate requests without `messageId` by @MukundaKatta in https://github.com/pydantic/pydantic-ai/pull/5156 * Handle dict `reasoning_content` from Gemini 2.5 models by @JulieLiu99 |
| `1.85.0` | 2026-04-21 | Low | Imported from PyPI (1.85.0) |
| `v1.85.0` | 2026-04-21 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * Online evaluation via OpenTelemetry events by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/5125   **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.84.1...v1.85.0 |

## Citation

- HTML: https://www.freshcrate.ai/projects/pydantic-ai-slim
- Markdown: https://www.freshcrate.ai/projects/pydantic-ai-slim.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/pydantic-ai-slim/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
