v2.11.0

pydantic/pydantic-aiv2.11.0Jul 16, 2026by dsfaccini

AI Summary

This release focuses on improving error handling and onboarding by exporting the `HistoryProcessor` and adding actionable hints to errors. It also addresses several bug fixes regarding streaming validation, credential suggestions, and schema transformation for Anthropic and Bedrock providers.

Key Highlights

  • Export `HistoryProcessor` and add actionable hints to usage-limit and tool-retry errors
  • Fix `MistralStreamedResponse` to accept integer-valued numbers and reject booleans
  • Suggest `Agent('test')` in onboarding when provider credentials are missing
  • Fix schema transformation for Anthropic and Bedrock when using `native_structured_output_mode`

New Features

  • Export `HistoryProcessor`
  • Add actionable hints to usage-limit and tool-retry errors

Full Release Notes

<!-- Release notes generated using configuration in .github/release.yml at main -->

## What's Changed
### 🚀 Features
* feat: export `HistoryProcessor` and add actionable hints to usage-limit and tool-retry errors by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6346
### 🐛 Bug Fixes
* Fix `MistralStreamedResponse` streamed number/integer validation to accept int-valued numbers and reject bools by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6479
* fix(onboarding): suggest `Agent('test')` when provider credentials are missing by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6342
* fix(anthropic): transform native output schema when reached via `profile={"default_structured_output_mode": "native"}` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6521
* Fix Bedrock `profile={'default_structured_output_mode': 'native'}` sending untransformed schema by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6539


**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.10.0...v2.11.0