pydantic-ai v2.6.0 adds file support, Bedrock profiles, and security fixes
Pydantic-ai version 2.6.0 introduces new features including file support for CodeExecutionTool and additional Bedrock model profiles, enhancing usability for AI development. It also addresses several bug fixes to improve stability and integrates dependency updates to mitigate known security vulnerabilities. These changes are relevant for developers building AI applications with pydantic-ai, particularly those integrating with Anthropic, OpenAI, or AWS Bedrock services.
- →Record time-to-first-token for streaming model requests by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/5967
- →Add files support to CodeExecutionTool for Anthropic and OpenAI by @HenryYYang in https://github.com/pydantic/pydantic-ai/pull/4338
- →Forward WebSearchTool domain filters to Groq search_settings by @Iam-Mil in https://github.com/pydantic/pydantic-ai/pull/6160
- →Give a clear error for non-positive concurrency max_running by @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6282
- →fix(evals): constrain judge_output reason to be concise and retry-safe by @anmolg1997 in https://github.com/pydantic/pydantic-ai/pull/5089
Features (3) ›
- Record time-to-first-token for streaming model requests by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/5967
- feat Add files support to CodeExecutionTool for Anthropic and OpenAI by @HenryYYang in https://github.com/pydantic/pydantic-ai/pull/4338
Add Bedrock model profiles for Writer, Z.AI, and Moonshot AI, and refresh LatestBedrockModelNames by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6318
Fixes (8) ›
- Forward WebSearchTool domain filters to Groq search_settings by @Iam-Mil in https://github.com/pydantic/pydantic-ai/pull/6160
- Give a clear error for non-positive concurrency max_running by @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6282
- fix(evals): constrain judge_output reason to be concise and retry-safe by @anmolg1997 in https://github.com/pydantic/pydantic-ai/pull/5089
- Re-enable Prefect test suite and fix PrefectAgent cache-key drift by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6313
fix(google): recover Gemini 3+ File Search grounding dropped with native tool parts by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6216
- fix serialize callable thinking delta provider details by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6294
Resolve capability for_run once per run and preserve resolved native tools under override(native_tools=...) by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6332
- Reject conflicting native tool IDs within a capability layer by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6242
Maintenance (3) ›
- deps bump torch floor to 2.12.1 to close CVE-2025-3000 by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6309
- deps bump transformers floor to 5.3.0 to close CVE-2026-4372 by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6310
- Bump genai-prices to 0.0.70 by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6330
https://github.com/pydantic/pydantic-ai/releases/tag/v2.6.0
Related releases
- Pydantic-AI v2.35.3 Patch Release Addresses Several Bug Fixes Pydantic AI Releases ·
- pydantic-ai v2.35.2 Patches GLM Routing and Tooling Issues Pydantic AI Releases ·
- Google ADK Python v1.39.1 Patch Addresses Numerous Fixes Google ADK (Python) Releases ·
- LangChain LangGraph SDK 0.4.4 Released LangGraph Releases ·
- crewAI 1.15.18 Improves Conversational Flows and Agent Stability CrewAI Releases ·
- Pydantic-AI v2.35.1 Patch Release Addresses Key Bug Fixes Pydantic AI Releases ·