Skip to content

pydantic-ai

v1.98.0 Breaking

This release includes 2 breaking changes for platform teams planning a safe upgrade.

βœ“ 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 πŸš€ Features, πŸ› Bug Fixes, and new: V2 Preparation across a mixed release.

Changes in this release

Feature Medium

Add OpenAI Responses input token counting (OpenAIResponsesModel.count_tokens)

Add OpenAI Responses input token counting (OpenAIResponsesModel.count_tokens)

Source: granite4.1:8b-q6_K@2026-05-19

Confidence: high

β€”
Deprecation Medium

Deprecate pydantic_ai.ext.aci (tool_from_aci and ACIToolset)

Deprecate pydantic_ai.ext.aci (tool_from_aci and ACIToolset)

Source: granite4.1:8b-q6_K@2026-05-19

Confidence: high

β€”
Bugfix Medium

Don't require fastmcp.server at runtime in mcp module

Don't require fastmcp.server at runtime in mcp module

Source: granite4.1:8b-q6_K@2026-05-19

Confidence: low

β€”
Bugfix Medium

Remove runtime requirement for fastmcp.server in mcp module

Remove runtime requirement for fastmcp.server in mcp module

Source: granite4.1:30b@2026-05-19-audit

Confidence: low

β€”
Refactor Medium

Replace Agent tool_retries=/output_retries= with retries: int | AgentRetries

Replace Agent tool_retries=/output_retries= with retries: int | AgentRetries

Source: granite4.1:8b-q6_K@2026-05-19

Confidence: high

β€”
Full changelog

What's Changed

πŸš€ Features

  • Add OpenAI Responses input token counting (OpenAIResponsesModel.count_tokens) by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/3951
  • Replace Agent tool_retries=/output_retries= with retries: int | AgentRetries by @Kludex in https://github.com/pydantic/pydantic-ai/pull/5500

πŸ› Bug Fixes

  • fix(mcp): Don't require fastmcp.server at runtime by @Kymi808 in https://github.com/pydantic/pydantic-ai/pull/5514

:new: V2 Preparation

  • Deprecate pydantic_ai.ext.aci (tool_from_aci and ACIToolset) by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5510

New Contributors

  • @Kymi808 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5514

Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v1.97.0...v1.98.0

Breaking Changes

  • Deprecation of `pydantic_ai.ext.aci` (functions `tool_from_aci` and class `ACIToolset`) β€” will be removed in v2.
  • Removal of runtime requirement for `fastmcp.server`.

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]