pydantic-ai 1.98.0 released

pydantic-ai 1.98.0 adds OpenAI Responses input token counting via `OpenAIResponsesModel.count_tokens`, which helps agent builders estimate usage/costs more accurately before sending requests. It also replaces the old `Agent(tool_retries=..., output_retries=...)` knobs with a single `retries: int | AgentRetries` setting, and deprecates `pydantic_ai.ext.aci` (`tool_from_aci` and `ACIToolset`) as part of V2 preparation.

pydantic-ai 1.98.0 is available. Release notes →

pydantic-ai 1.98.0 adds OpenAI Responses input token counting via OpenAIResponsesModel.count_tokens, which helps agent builders estimate usage/costs more accurately before sending requests.
It also replaces the old Agent(tool_retries=..., output_retries=...) knobs with a single retries: int | AgentRetries setting, and deprecates pydantic_ai.ext.aci (tool_from_aci and ACIToolset) as part of V2 preparation.

What changed. 1.98.0 is the latest release.

Why it matters. Review the release notes for breaking changes before upgrading.

Builder takeaway. Pin your version or upgrade in a branch and run your eval suite before deploying.

The Agent Brief

Three things in agentic AI, every Tuesday.

What changed, what matters, what builders should do next. No hype. No paid placement.

More news