v2.32.1
pydantic/pydantic-aiv2.32.1Aug 20, 2026by dsfaccini
AI Summary
A hotfix release addressing issues with synchronous callbacks, Anthropic thinking blocks, and function model callables to prevent runtime errors.
Key Highlights
- Fixed rejection of `Agent.run_sync()` from synchronous callbacks
- Fixed sending Anthropic `thinking` blocks with empty signatures
- Allowed any callable as a `FunctionModel` function
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🐛 Bug Fixes * Reject `Agent.run_sync()` from synchronous callbacks inside agent runs by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7277 * Don't send Anthropic `thinking` blocks with an empty signature by @mpfaffenberger in https://github.com/pydantic/pydantic-ai/pull/7601 * Accept any callable as a `FunctionModel` `function` or `stream_function` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7589 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.32.0...v2.32.1