Releases: pydantic/pydantic-ai
Releases Β· pydantic/pydantic-ai
Release list
v1.85.0 (2026-04-21)
v1.84.1 (2026-04-17)
What's Changed
π Bug Fixes
- Skip tool hooks for internal output tools by @DouweM in #5128
- Always pass
dict-shaped validated args to hooks for single-BaseModeltools by @DouweM in #5137
Full Changelog: v1.84.0...v1.84.1
v1.84.0 (2026-04-16)
What's Changed
π Security
- Fix exponential-time regex in Google
FileSearchToolresponse parsing by @DouweM in #5106. This was first released in yesterday's v1.83.0. The pattern was reachable in principle from Gemini streaming responses but could not be triggered via real Gemini output in testing, so we're treating it as a hardening fix rather than a vulnerability.
π Features
- Add Claude Opus 4.7 support by @dsfaccini in #5118
- Add stateful compaction mode to
OpenAICompactionby @DouweM in #5108 - Add
OllamaModelsubclass and correct Ollama capability flags to fix structured output on Ollama Cloud by @Goldokpa in #4160
π Bug Fixes
- Fix deferred tool search keyword matching by @pandego in #5014
- Fixing parsing
openai_logprobsfor streamed responses by @iAmir97 in #5091 - fix(openai): handle null text in Responses API output by @DouweM in #5124
- Chain OpenAI Responses retries through concrete
openai_previous_response_idseeds by @DouweM in #5126 - fix: exclude resumed requests from
new_messages()even with currentrun_idby @madanlalit in #4731
New Contributors
Full Changelog: v1.83.0...v1.84.0
v1.83.0 (2026-04-15)
π€ Pydantic AI Harness is now live with Code Mode powered by Monty!
What's Changed
π Features
- feat: Add
XSearchToolandFileSearchsupport for xAI by @colesmcintosh in #4165 - Allow injecting metadata per tool call with
FastMCPToolsetby @Boryotto in #4929 - feat(bedrock): add prompt cache TTL support by @imdigitalashish in #4581
- Add Anthropic automatic prompt caching support by @DenysMoskalenko in #4840
- Add 'graceful' end strategy for parallel tool calls by @awkoy in #4333
- Support Agent(output_type=str | None) for optional output by @Pavanmanikanta98 in #4042
New Contributors
- @colesmcintosh made their first contribution in #4165
- @Boryotto made their first contribution in #4929
- @imdigitalashish made their first contribution in #4581
- @awkoy made their first contribution in #4333
Full Changelog: v1.82.0...v1.83.0
v1.82.0 (2026-04-14)
π€ Pydantic AI Harness is now live with Code Mode powered by Monty!
What's Changed
π Bug Fixes
- Fix OpenAI compaction chain when
openai_previous_response_id='auto'by @DouweM in #5086 - Fix orphan-task leak in
CombinedToolsetandCombinedCapabilityby @DouweM in #5085 - Lazily compute
ToolDefinition.function_signatureby @DouweM in #5087
π¦ Dependencies
- chore: bump fastmcp 2.x β 3.2.0 by @dsfaccini in #4982
New Contributors
Full Changelog: v1.81.0...v1.82.0
v1.81.0 (2026-04-13)
π€ Pydantic AI Harness is now live with Code Mode powered by Monty!
What's Changed
π Bug Fixes
- Fix Anthropic compaction usage totals by @pandego in #5068
- Exclude
run_idfrom cache key computation inPrefectAgentInputsby @adtyavrdhn in #3890 - fix: handle boolean JSON Schema nodes in
JsonSchemaTransformerby @Dharit13 in #4989 - fix: close pending tool calls on stream error by @proever in #4963
- fix: skip api-version query parameter for Azure AI Foundry serverless endpoints by @Ricardo-M-L in #5071
New Contributors
Full Changelog: v1.80.0...v1.81.0
v1.80.0 (2026-04-10)
What's Changed
π Features
- Add
CapabilityOrdering(innermost,outermost,wraps, wrapped_by,requires`) by @DouweM in #5036 Hooksordering parameter and instance refs inwraps/wrapped_byby @DouweM in #5048- Add server-side compaction support via
OpenAICompactionandAnthropicCompactioncapabilities by @DouweM in #4943
π Bug Fixes
- Reverse capability
get_wrapper_toolsetiteration for consistency withwrap_hooks by @DouweM in #5036 - Remove warning suppression fixed by the bump to mistral version >= 2.0.0 by @DarthJuri in #4629
- fix: make
mcpoptional for DBOS module import by @DouweM in #5050 - bug: Warn about Azure OpenAI completions file-incompatibility by @dsfaccini in #4048
- fix: unknown tool calls no longer exhaust global retry counter by @dsfaccini in #4940
- fix: output validators see global retry counter on tool output path by @dsfaccini in #4956
Full Changelog: v1.79.0...v1.80.0
v1.79.0 (2026-04-09)
What's Changed
π Features
- Full support for AG-UI 0.1.13 and 0.1.15: reasoning, multi-modal,
dump_messagesby @dsfaccini in #3971 - Replace HTTP client cache with
create_async_http_clientand context manager by @dsfaccini in #4421 - Add
apply()toAbstractCapability,CombinedCapability, andWrapperCapabilityby @DouweM in #5022
π Bug Fixes
- fix: update internal
$refs in renamed schemadefs, handle missing keywords, and detect semantically different defs by @Ricardo-M-L in #5020 - fix: force streaming in
run()when capability/hook overrideswrap_run_event_streamby @DouweM in #5028 - Fix
on_node_run_errorandafter_node_runhook recovery by @DouweM in #5023 - fix: add missing space in provider
UserErrormessages by @graydeon in #4976
New Contributors
Full Changelog: v1.78.0...v1.79.0
v1.78.0 (2026-04-07)
What's Changed
π Features
- Add cached token span attributes per OTel spec by @alexmojaki in #5013
- feat: add
return_schemaandfunction_signaturetoToolDefinitionby @adtyavrdhn in #4964 - feat: add
SetToolMetadatacapability by @DouweM in #4964
New Contributors
- @Ricardo-M-L made their first contribution in #4968
- @chernistry made their first contribution in #5005
- @vladdoster made their first contribution in #4620
- @edmcman made their first contribution in #4584
- @drPod made their first contribution in #4809
- @1Ninad made their first contribution in #4945
Full Changelog: v1.77.0...v1.78.0
v1.77.0 (2026-04-02)
What's Changed
π Features
- feat: add local
WebFetchtool and haveWebFetchcapability use it when provider lacks builtin support by @DEENUU1 in #4906 - Add
defer_loadingto tools and toolsets to enable tool search by @dsfaccini in #4090 - Add
ThreadExecutorcapability andAgent.using_thread_executor()by @DouweM in #4942 - feat: smart instruction caching β automatically insert Anthropic/Bedrock cache boundary at static/dynamic split by @Alex-Resch in #4865
- Support
server_message_idinVercelAIEventStreamby @dsfaccini in #4579
π Bug Fixes
- fix: run output validators for image outputs by @dsfaccini in #4938
- Wrap streaming SDK errors in
ModelHTTPError/ModelAPIErrorby @dsfaccini in #4889
New Contributors
- @Alex-Resch made their first contribution in #4865
Full Changelog: v1.76.0...v1.77.0