Skip to content

Releases: pydantic/pydantic-ai

v1.85.0 (2026-04-21)

Choose a tag to compare

@DouweM DouweM released this 21 Apr 16:53
629aaff

What's Changed

πŸš€ Features

Full Changelog: v1.84.1...v1.85.0

v1.84.1 (2026-04-17)

Choose a tag to compare

@DouweM DouweM released this 18 Apr 00:21
531d6da

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-BaseModel tools by @DouweM in #5137

Full Changelog: v1.84.0...v1.84.1

v1.84.0 (2026-04-16)

Choose a tag to compare

@DouweM DouweM released this 17 Apr 00:19
c456f5e

What's Changed

πŸ”’ Security

  • Fix exponential-time regex in Google FileSearchTool response 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 OpenAICompaction by @DouweM in #5108
  • Add OllamaModel subclass 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_logprobs for 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_id seeds by @DouweM in #5126
  • fix: exclude resumed requests from new_messages() even with current run_id by @madanlalit in #4731

New Contributors

Full Changelog: v1.83.0...v1.84.0

v1.83.0 (2026-04-15)

Choose a tag to compare

@DouweM DouweM released this 16 Apr 01:23
81bb8d2

πŸ€– Pydantic AI Harness is now live with Code Mode powered by Monty!

What's Changed

πŸš€ Features

New Contributors

Full Changelog: v1.82.0...v1.83.0

v1.82.0 (2026-04-14)

Choose a tag to compare

@DouweM DouweM released this 15 Apr 02:40
7f57f5d

πŸ€– 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 CombinedToolset and CombinedCapability by @DouweM in #5085
  • Lazily compute ToolDefinition.function_signature by @DouweM in #5087

πŸ“¦ Dependencies

New Contributors

Full Changelog: v1.81.0...v1.82.0

v1.81.0 (2026-04-13)

Choose a tag to compare

@DouweM DouweM released this 14 Apr 01:36
8349a9c

πŸ€– 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_id from cache key computation in PrefectAgentInputs by @adtyavrdhn in #3890
  • fix: handle boolean JSON Schema nodes in JsonSchemaTransformer by @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)

Choose a tag to compare

@DouweM DouweM released this 10 Apr 23:20
4dcfb01

What's Changed

πŸš€ Features

  • Add CapabilityOrdering (innermost, outermost, wraps, wrapped_by, requires`) by @DouweM in #5036
  • Hooks ordering parameter and instance refs in wraps/wrapped_by by @DouweM in #5048
  • Add server-side compaction support via OpenAICompaction and AnthropicCompaction capabilities by @DouweM in #4943

πŸ› Bug Fixes

  • Reverse capability get_wrapper_toolset iteration for consistency with wrap_ hooks by @DouweM in #5036
  • Remove warning suppression fixed by the bump to mistral version >= 2.0.0 by @DarthJuri in #4629
  • fix: make mcp optional 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)

Choose a tag to compare

@DouweM DouweM released this 10 Apr 01:11
8a4a4bc

What's Changed

πŸš€ Features

  • Full support for AG-UI 0.1.13 and 0.1.15: reasoning, multi-modal, dump_messages by @dsfaccini in #3971
  • Replace HTTP client cache with create_async_http_client and context manager by @dsfaccini in #4421
  • Add apply() to AbstractCapability, CombinedCapability, and WrapperCapability by @DouweM in #5022

πŸ› Bug Fixes

  • fix: update internal $refs in renamed schema defs, handle missing keywords, and detect semantically different defs by @Ricardo-M-L in #5020
  • fix: force streaming in run() when capability/hook overrides wrap_run_event_stream by @DouweM in #5028
  • Fix on_node_run_error and after_node_run hook recovery by @DouweM in #5023
  • fix: add missing space in provider UserError messages by @graydeon in #4976

New Contributors

Full Changelog: v1.78.0...v1.79.0

v1.78.0 (2026-04-07)

Choose a tag to compare

@DouweM DouweM released this 08 Apr 05:10
9c51f80

What's Changed

πŸš€ Features

New Contributors

Full Changelog: v1.77.0...v1.78.0

v1.77.0 (2026-04-02)

Choose a tag to compare

@DouweM DouweM released this 03 Apr 02:07
a282bca

What's Changed

πŸš€ Features

  • feat: add local WebFetch tool and have WebFetch capability use it when provider lacks builtin support by @DEENUU1 in #4906
  • Add defer_loading to tools and toolsets to enable tool search by @dsfaccini in #4090
  • Add ThreadExecutor capability and Agent.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_id in VercelAIEventStream by @dsfaccini in #4579

πŸ› Bug Fixes

  • fix: run output validators for image outputs by @dsfaccini in #4938
  • Wrap streaming SDK errors in ModelHTTPError/ModelAPIError by @dsfaccini in #4889

New Contributors

Full Changelog: v1.76.0...v1.77.0