pydantic-ai v2.15.0: Prompt caching, Mistral prompts, tool retries, and more
Pydantic-AI v2.15.0 introduces several new features including explicit prompt caching for OpenAI, inline text files in MistralModel prompts, and support for overriding tool-retry budgets. It also addresses multiple bug fixes related to hosted tool search, array handling, and durability capabilities. This release is primarily for developers and engineers using Pydantic-AI for LLM integrations and agent development.
- →feat(openai): support explicit prompt caching for gpt-5.6 by @Wh1isper in https://github.com/pydantic/pydantic-ai/pull/6423
- →Inline text-like files in MistralModel prompts by @pulphix in https://github.com/pydantic/pydantic-ai/pull/6556
- →Support overriding the tool-retry budget at run/iter/override time by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6072
- →Fix hosted tool_search replay with null call IDs by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6604
- →Mark untyped arrays as not strict-compatible for OpenAI by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6547
Features (6) ›
- feat(openai): support explicit prompt caching for gpt-5.6 by @Wh1isper in https://github.com/pydantic/pydantic-ai/pull/6423
- Inline text-like files in MistralModel prompts by @pulphix in https://github.com/pydantic/pydantic-ai/pull/6556
- Support overriding the tool-retry budget at run/iter/override time by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6072
Support DynamicCapability toolsets in durable execution and wrap DynamicToolset in DBOS steps and Prefect tasks by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6623
Add openai_moderation setting and expose OpenAI Responses API moderation results in provider_details by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6628
Deprecate the Exa search common tools in favor of the ExaSearch capability in Pydantic AI Harness by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6644
Fixes (5) ›
- Fix hosted tool_search replay with null call IDs by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6604
- Mark untyped arrays as not strict-compatible for OpenAI by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6547
- Fix durability capability compatibility regressions by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6631
Fix OpenAI background retrieve 400 for reasoning.encrypted_content on persisted responses by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6614
Round-trip tool control-flow exceptions on DBOS/Prefect, fix Prefect replay edges, and add register_legacy_workflows to DBOSDurability for clean DBOSAgent migration by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6640
https://github.com/pydantic/pydantic-ai/releases/tag/v2.15.0
Related releases
- OpenAI Agents Python v0.19.1: Bug fixes and documentation updates OpenAI Agents SDK (Python) Releases ·
- pydantic-ai v2.20.0: New Claude Opus, OpenAI Responses API, and Usage Fixes Pydantic AI Releases ·
- LangGraph 1.2.10: Stream events typing, trace policy changes LangGraph Releases ·
- crewAI 1.15.8: WaitTool, FileWriter fix, and docs CrewAI Releases ·
- Pydantic-AI v2.19.0 adds headers and retry_after to ModelHTTPError Pydantic AI Releases ·
- OpenAI Agents Python: Programmatic Tool Calling and SDK Enhancements OpenAI Agents SDK (Python) Releases ·