v1.38.0

pydantic/pydantic-aiv1.38.0Dec 23, 2025by DouweM

AI Summary

Updates include adding local timestamps to request and response models and fixing media type inference for URLs with query parameters. It also improves error handling for AG-UI and adds documentation for Vertex AI.

Key Highlights

  • Added local timestamps to request and response models
  • Fixed media type inference for URLs with query parameters
  • Silently ignore AG-UI `ActivityMessage` instead of raising error
  • Updated docs to include Azure, Bedrock, and Vertex AI examples

New Features

  • Local timestamp tracking in models
  • URL media type inference fix
  • AG-UI ActivityMessage error handling
  • Vertex AI documentation

Full Release Notes

## What's Changed
* Add local timestamps to request and response models - include provider timestamp in `provider_details` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3598
* Respect `VideoUrl.vendor_metadata` for GCS URIs on google-vertex by @barapa in https://github.com/pydantic/pydantic-ai/pull/3806
* Fix media type inference for URLs with query parameters by @fedexman in https://github.com/pydantic/pydantic-ai/pull/3501
* Allow typed `RunContext[Deps]` in `TextOutput` signature by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3732
* Silently ignore AG-UI `ActivityMessage` instead of raising error by @tseaver in https://github.com/pydantic/pydantic-ai/pull/3803
* docs: Add Azure, Bedrock and Vertex examples to use Anthropic models by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3705
* docs: Add note on persistence to beta graph docs by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3801

## New Contributors
* @fedexman made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3501
* @tseaver made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3803

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.37.0...v1.38.0