v1.32.0

pydantic/pydantic-aiv1.32.0Dec 13, 2025by DouweM

AI Summary

Adds tool timeout support and allows Temporal Agents to be registered to workflows. It also replaces OpenTelemetry events with logs and fixes UIAdapter typing.

Key Highlights

  • Add tool timeout support
  • Let TemporalAgents be registered to a Temporal workflow
  • Make `end_strategy` work for output tools
  • Replace OTel events with logs

New Features

  • Tool timeout support
  • Temporal workflow registration
  • End strategy for output tools
  • OpenTelemetry logging

Full Release Notes

## What's Changed
* Add tool timeout support by @DEENUU1 in https://github.com/pydantic/pydantic-ai/pull/3594
* Let `TemporalAgent`s be registered to a Temporal workflow using `__pydantic_ai_agents__` field by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/3676
* Make `end_strategy` also work for output tools, not just tools by @Danipulok in https://github.com/pydantic/pydantic-ai/pull/3523
* Replace OTel events with logs by @alexmojaki in https://github.com/pydantic/pydantic-ai/pull/3641
* Fix `UIAdapter.dispatch_request` typing by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/3721

## New Contributors
* @DEENUU1 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3594

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.31.0...v1.32.0