pypi pydantic-ai 2.32.0
v2.32.0 (2026-08-18)

one hour ago

What's Changed

🚀 Features

  • Suggest known model names for invalid identifiers by @dsfaccini in #7325
  • Support xAI attachment search lifecycle by @colesmcintosh in #7156
  • Surface OpenRouter web-search sources in provider_details["annotations"] by @dsfaccini in #7458
  • Add instrumentation version 6, emitting tool results under role: 'tool' by @dsfaccini in #7582

🐛 Bug Fixes

  • Run sync hooks in a thread pool and enforce timeout= for blocking sync tools and hooks by @adtyavrdhn in #7557
  • Record RunContext.cancel() from setup-phase for_run hooks instead of raising UserError by @adtyavrdhn in #7567
  • Treat a response containing only empty text parts as having no text output by @adtyavrdhn in #7568
  • Only list available tools in the unknown-tool retry message by @adtyavrdhn in #7572
  • Sort tool results ahead of tool availability announcements so Bedrock accepts turns revealing multiple tools by @adtyavrdhn in #7571
  • Drop native tool calls the replayed payload has no result block for by @dsfaccini in #7504

📦 Dependencies

Full Changelog: v2.31.1...v2.32.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.