v1.96.0

pydantic/pydantic-aiv1.96.0May 14, 2026by DouweM

AI Summary

Adds OpenAI prefix warnings, deprecates history processors and method-style accessors, AGUI, and OutlinesModel.

Key Highlights

  • Add openai-chat: prefix and warn on bare openai:
  • Deprecate Agent(history_processors=)
  • Deprecate method-style result.usage() in favor of result.usage
  • Deprecate AGUIApp and bundled fasta2a integration
  • Deprecate OutlinesModel and OutlinesProvider

New Features

  • OpenAI prefix warning

Full Release Notes

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

## What's Changed
### 🆕 V2 Preparation (coming in June)
* Add `openai-chat:` prefix and warn on bare `openai:` which will switch to use the Responses API in v2 by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5334
* Deprecate `Agent(history_processors=)` in favor of `capabilities=[ProcessHistory(...)]` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5425
* Deprecate method-style `result.usage()`, `result.timestamp()`, `stream.get()` in favor of property-style `result.usage`, `result.timestamp`, `stream.response` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5263
* Deprecate `AGUIApp`, `Agent.to_ag_ui()`, and `pydantic_ai.ag_ui` shim in favor of `AGUIAdapter` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5345
* Deprecate `OutlinesModel` and `OutlinesProvider` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5432


**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.95.1...v1.96.0