python Pydantic AI Releases · · 2.11.0

pydantic-ai v2.11.0 adds exportable history and bug fixes

sdkaiengineerpython-agentic
feature patch

This release of pydantic-ai introduces an exportable `HistoryProcessor` for better history management and includes several bug fixes. These improvements enhance usability and address validation and schema transformation issues for specific providers like Anthropic and Bedrock. The update is available now for users of the pydantic-ai library.

  • fix(onboarding): suggest Agent('test') when provider credentials are missing by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6342
Features (1)
  • 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

Fixes (4)
  • 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

Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.11.0

Related releases