Skip to content

pydantic-ai

v2.8.0 Feature

This release adds 2 notable features for engineering teams evaluating rollout.

βœ“ No known CVEs patched
Read the diff β†’ Tool health β†’ What is this tool? β†’

✓ No known CVEs patched in this version

Topics

agent-framework genai llm pydantic python

Summary

AI summary

Updates πŸ› Bug Fixes, fix, and πŸš€ Features across a mixed release.

Changes in this release

Feature Medium

Allow `to_cli()` to pass `model` for unset-model agents.

Allow `to_cli()` to pass `model` for unset-model agents.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Feature Medium

Bump bundled chat UI to `2.0.0` and target `sdk_version=7` in `Agent.to_web()`.

Bump bundled chat UI to `2.0.0` and target `sdk_version=7` in `Agent.to_web()`.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Validate Tool `max_retries` and `timeout` parameters.

Validate Tool `max_retries` and `timeout` parameters.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Validate ToolOutput `max_retries`.

Validate ToolOutput `max_retries`.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Validate Agent `tool_timeout`.

Validate Agent `tool_timeout`.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Validate `max_queued` in ConcurrencyLimit and ConcurrencyLimiter.

Validate `max_queued` in ConcurrencyLimit and ConcurrencyLimiter.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Fix `JsonSchemaTransformer` to recurse into `allOf` composition.

Fix `JsonSchemaTransformer` to recurse into `allOf` composition.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Fix empty and thinking-only responses reusing earlier text as the run output.

Fix empty and thinking-only responses reusing earlier text as the run output.

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Full changelog

What's Changed

πŸš€ Features

  • Allow to_cli() to pass model for unset-model agents by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6384
  • Bump bundled chat UI to 2.0.0 and target sdk_version=7 in Agent.to_web() by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6296

πŸ› Bug Fixes

  • fix: validate Tool max_retries and timeout parameters by @isheng-eqi in https://github.com/pydantic/pydantic-ai/pull/6375
  • fix: validate ToolOutput max_retries by @isheng-eqi in https://github.com/pydantic/pydantic-ai/pull/6377
  • fix: validate Agent tool_timeout by @isheng-eqi in https://github.com/pydantic/pydantic-ai/pull/6383
  • fix: validate max_queued in ConcurrencyLimit and ConcurrencyLimiter by @isheng-eqi in https://github.com/pydantic/pydantic-ai/pull/6373
  • Fix JsonSchemaTransformer to recurse into allOf composition by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6394
  • Fix empty and thinking-only responses reusing earlier text as the run output by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6403

New Contributors

  • @isheng-eqi made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6375

Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.7.0...v2.8.0

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track pydantic-ai

Get notified when new releases ship.

Sign up free

About pydantic-ai

AI Agent Framework, the Pydantic way

All releases β†’

Related context

Earlier breaking changes

  • v1.95.0 rename β€˜built-in tools’ to β€˜native tools’, deprecate old fields, register via capabilities=[NativeTool(...)]

Beta — feedback welcome: [email protected]