Skip to content

pydantic-ai

v2.5.1 Breaking

This release includes breaking changes for platform teams planning a safe upgrade.

βœ“ No known CVEs patched
Read the diff β†’ Tool health β†’ What is this tool? β†’

✓ No known CVEs patched in this version

Topics

agent-framework genai llm pydantic python

Summary

AI summary

Updates πŸ› Bug Fixes, bedrock, and fix across a mixed release.

Full changelog

What's Changed

πŸ› Bug Fixes

  • fix(bedrock): handle toolResult attachment co-location per-model via bedrock_tool_result_colocatable_content by @Hasnaathussain in https://github.com/pydantic/pydantic-ai/pull/6098
  • fix(groq): map unified thinking setting to Groq reasoning_effort by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6231
  • fix(evals): reject non-positive OnlineEvaluator.max_concurrency by @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6267
  • fix: write relative schema refs for AgentSpec files by @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6251
  • fix(agent): honor end_strategy="early" for NativeOutput by @Oxygen56 in https://github.com/pydantic/pydantic-ai/pull/6279
  • send retry prompt for empty model responses instead of silent resubmit by @dcosson in https://github.com/pydantic/pydantic-ai/pull/5643
  • Preserve FileUrl.force_download in UI round-trips by @HarperZ9 in https://github.com/pydantic/pydantic-ai/pull/6205
  • Exclude deprecated Bedrock gateway model anthropic.claude-3-5-sonnet-20240620-v1:0 by @ddanielcruzz in https://github.com/pydantic/pydantic-ai/pull/6297
  • fix: preserve union NativeOutput description instead of last member's docstring by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6265
  • fix(bedrock): deliver unsupported tool-return media to models that isolate toolResult turns by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6259
  • Revert "fix(agent): honor end_strategy="early" for NativeOutput" by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6301
  • Accept thinking-only responses when output_type allows None by @kmike in https://github.com/pydantic/pydantic-ai/pull/5146
  • Omit empty ModelResponse from Mistral and Cohere request payloads by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6302

New Contributors

  • @Hasnaathussain made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6098
  • @saime428 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6268
  • @NotFoundOvO made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6285
  • @dcosson made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5643
  • @HarperZ9 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6205
  • @kmike made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5146

Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.5.0...v2.5.1

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track pydantic-ai

Get notified when new releases ship.

Sign up free

About pydantic-ai

AI Agent Framework, the Pydantic way

All releases β†’

Related context

Earlier breaking changes

  • v1.95.0 rename β€˜built-in tools’ to β€˜native tools’, deprecate old fields, register via capabilities=[NativeTool(...)]

Beta — feedback welcome: [email protected]