Skip to content

Releases: pydantic/pydantic-ai

v0.4.2 (2025-07-10)

10 Jul 18:43
78f08f8
Compare
Choose a tag to compare

What's Changed

  • Let model settings be passed to model classes by @svilupp in #2136
  • Add StructuredDict for structured outputs with custom JSON schema by @fswair in #2157
  • Handle DeepSeek reasoning_content in streamed responses by @tarruda in #2174
  • Drop FastA2A from PydanticAI repository by @Kludex in #2171
  • Fix type annotations for Agent.iter() by @erosennin in #2168
  • Fix chat-app example doc - python code appear twice by @itayB in #2169
  • Speed up function _ensure_decodeable by 634% by @misrasaurabh1 in #2155

New Contributors

Full Changelog: v0.4.1...v0.4.2

v0.4.1 (2025-07-08)

10 Jul 08:09
4ada2ce
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0 (2025-07-08)

08 Jul 19:40
11d1cde
Compare
Choose a tag to compare

What's Changed

  • BREAKING CHANGE: Make EvaluationReport and ReportCase into generic dataclasses by @dmontagu in #1799
  • Make ToolDefinition.description optional and fix Bedrock description handling by @dmontagu in #1507
  • Add all audio types supported by Gemini to AudioUrl by @ChenghaoMou in #2151
  • Improve number_to_datetime performance by building TypeAdapter only once by @DouweM in #2153
  • Retain defaults in non-strict openai schemas by @dmontagu in #1519

Full Changelog: v0.3.7...v0.4.0

v0.3.7 (2025-07-07)

07 Jul 20:49
036428c
Compare
Choose a tag to compare

What's Changed

  • Make AgentStream.stream_output (available inside agent.iter) stream validated output data instead of raising validation errors by @DouweM in #2134
  • Add model_request_stream_sync to direct API by @hewliyang in #2116
  • Add GitHub Models provider by @sgoedecke in #2114
  • Added support for google specific arguments for video analysis by @Sumered in #2110
  • Implemented a convenient way to use ACI.dev Tools in PydanticAI by @Kamal-Moha in #2093
  • Fix list rendering in documentation by @Viicos in #2145
  • Raise consistent deprecation warnings by @Viicos in #2148
  • Move docstring warning of model settings as a comment by @Viicos in #2146

New Contributors

Full Changelog: v0.3.6...v0.3.7

v0.3.6 (2025-07-04)

04 Jul 15:20
d10f036
Compare
Choose a tag to compare

What's Changed

  • Deprecate {FunctionToolCallEvent,FunctionToolResultEvent}.call_id in favor of tool_call_id by @proever in #2028
  • Indicate to the model that a RetryPromptPart not tied to a tool call contains validation feedback rather than a user message by @hovi in #2008
  • Update starlette subdomain in docs by @alDuncanson in #2099
  • Update client.md - Typo by @kauabh in #2105
  • Add support for predicted outputs in OpenAIModelSettings by @webholics in #2106
  • Record tool response in tool run span by @alexmojaki in #2109
  • Use contextvars for agent overriding, rather than a local attribute by @dmontagu in #2118
  • Fix model parameters not being customized in fallback model request stream by @almeidaalajoel in #2120
  • simplify weather example by @samuelcolvin in #2129

New Contributors

Full Changelog: v0.3.5...v0.3.6

v0.3.5 (2025-06-30)

30 Jun 13:10
81bd32b
Compare
Choose a tag to compare

What's Changed

  • Add progress bar on evaluate by @davide-andreoli in #1871
  • Fix deprecation warning under Pydantic 2.11 by @medaminezghal in #2076
  • fix: async fixtures in conftest.py by @stevenh in #2068
  • fix: docs examples python version in tests by @stevenh in #2069
  • Set 'us-central1' by default on GoogleProvider by @Kludex in #2031
  • Move ThinkingPart to preceed TextPart in OpenAIResponsesModel by @Kludex in #2043
  • Fix deprecated kwargs validation to prevent silent failures by @svilupp in #2047
  • Support strict mode in NativeOutput by @severinh in #2084
  • Let tools return ToolReturn to pass additional content to model, or attach metadata that's not passed to the model by @Wh1isper in #2060
  • Add ability to include snippets in docs with inline-named sections for fragments and highlighting by @dmontagu in #2088
  • Add Slack Lead Qualifier example by @DouweM in #2079

New Contributors

Full Changelog: v0.3.4...v0.3.5

v0.3.4 (2025-06-26)

26 Jun 06:16
a341e56
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.3...v0.3.4

v0.3.3 (2025-06-24)

24 Jun 17:31
8039c20
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2 (2025-06-21)

21 Jun 05:16
a25eb96
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.3.2

v0.3.1 (2025-06-18)

18 Jun 09:00
f2646de
Compare
Choose a tag to compare

What's Changed

  • Update Google models by @tacoo in #2010
  • fix: update ThinkingPart when delta contains signature by @Kludex in #2012

New Contributors

Full Changelog: v0.3.0...v0.3.1