python Pydantic AI Releases · · 2.6.0

pydantic-ai v2.6.0 adds file support, Bedrock profiles, and security fixes

sdkaisecuritysecurity-advisoryengineermediapython-agentic
feature patch

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
Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.6.0

Related releases