# pydantic-ai

> AI Agent Framework, the Pydantic way

- **URL**: https://www.freshcrate.ai/projects/pydantic-ai
- **Author**: pydantic
- **Category**: Frameworks
- **Latest version**: `v1.106.0` (2026-06-05)
- **License**: MIT
- **Source**: https://github.com/pydantic/pydantic-ai
- **Homepage**: https://ai.pydantic.dev
- **Language**: Python
- **GitHub**: 16,532 stars, 1,958 forks
- **Registry**: github
- **Tags**: `agent-framework`, `genai`, `llm`, `pydantic`, `python`

## Description

AI Agent Framework, the Pydantic way

## 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.102.0` | 2026-05-23 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🛡️ Security * Expand IPv6 transition-form handling in URL validation by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5596 	* Security advisory: SSRF cloud-metadata blocklist bypass via additional IPv6 transition forms https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-cg7w-rg45-pc59 	* You are affected **only** if your application explicitly opts a `FileUrl` |
| `v1.98.0` | 2026-05-19 | High | <!-- Release notes generated using configuration in .github/release.yml at v1.98.0 -->  ## What's Changed ### 🚀 Features * Add OpenAI Responses input token counting (`OpenAIResponsesModel.count_tokens`) by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/3951 * Replace `Agent` `tool_retries=`/`output_retries=` with `retries: int \| AgentRetries` by @Kludex in https://github.com/pydantic/pydantic-ai/pull/5500 ### 🐛 Bug Fixes * fix(mcp): Don't require `fastmcp.server` at runt |
| `v1.95.0` | 2026-05-13 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * feat: native Tool Search on Anthropic and OpenAI, with custom search strategies on any provider by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5143 * Add `Instrumentation` capability; deprecate `Agent(instrument=...)` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4967 * feat(google): support structured output + tool combination for Gemini 3 by @d |
| `v1.91.0` | 2026-05-07 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * feat(openai): support `gpt-image-2` options by @banteg in https://github.com/pydantic/pydantic-ai/pull/5234 * feat(deepseek): add support for `deepseek-v4-flash` and`deepseek-v4-pro` by @SuperMarioYL in https://github.com/pydantic/pydantic-ai/pull/5195  ### 🐛 Bug Fixes * fix(evals): preserve Unicode in YAML datasets by @Kcstring in https://github.com/pydantic/pydantic |
| `v1.89.0` | 2026-05-01 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * feat: add `conversation_id` for cross-run correlation by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5251 * feat(capabilities): support dynamic capabilities via callables in capabilities list by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5252 * feat: add `builtin_tools` to `agent.override` by @mplemay in https://github.com/pydantic/pydantic-ai/pu |
| `v1.87.0` | 2026-04-25 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🚀 Features * Add `HandleDeferredToolCalls` capability and `handle_deferred_tool_calls` hook by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5142 * Add `ProcessEventStream` capability by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5141 * Handle thinking setting for GPT-5.5 by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5196   **Full Changelog** |
| `v1.85.1` | 2026-04-21 | High | <!-- Release notes generated using configuration in .github/release.yml at main -->  ## What's Changed ### 🐛 Bug Fixes * fix: exclude validation error `input` from retry messages by @navalprakhar in https://github.com/pydantic/pydantic-ai/pull/4947 * fix(vercel-ai): auto-detect deferred tool approval state in `dump_messages()` by @tijmenhammer in https://github.com/pydantic/pydantic-ai/pull/4831  ## New Contributors * @abhicris made their first contribution in https://github.com/pydanti |
| `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
- Markdown: https://www.freshcrate.ai/projects/pydantic-ai.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/pydantic-ai/deps

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