v1.41.0
pydantic/pydantic-aiv1.41.0Jan 10, 2026by DouweM
AI Summary
Adds YAML and TOML media type support in `BinaryContent.from_path` and introduces metadata support for `DeferredToolResults.
Key Highlights
- Add YAML and TOML media type support in `BinaryContent.from_path`
- Add `metadata` support for `DeferredToolResults`
- Fix Mistral `ReferenceChunk` handling
New Features
- YAML and TOML media type support in `BinaryContent.from_path`
- Metadata support for `DeferredToolResults`
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add YAML and TOML media type support in `BinaryContent.from_path` by @majiayu000 in https://github.com/pydantic/pydantic-ai/pull/3907 * Add `metadata` support for `DeferredToolResults` by @Wh1isper in https://github.com/pydantic/pydantic-ai/pull/3811 ### 🐛 Bug Fixes * Don't raise error when Mistral returns `ReferenceChunk` by @ilancoulon in https://github.com/pydantic/pydantic-ai/pull/3958 ## New Contributors * @ilancoulon made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3958 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.40.0...v1.41.0