This release includes 2 breaking changes for platform teams planning a safe upgrade.
✓ No known CVEs patched in this version
Topics
Summary
AI summaryUpdates π Features, π Bug Fixes, and new: V2 Preparation across a mixed release.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| 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
Agenttool_retries=/output_retries=withretries: int | AgentRetriesby @Kludex in https://github.com/pydantic/pydantic-ai/pull/5500
π Bug Fixes
- fix(mcp): Don't require
fastmcp.serverat runtime by @Kymi808 in https://github.com/pydantic/pydantic-ai/pull/5514
:new: V2 Preparation
- Deprecate
pydantic_ai.ext.aci(tool_from_aciandACIToolset) 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
Related context
Related tools
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]