Skip to content

Releases: pydantic/pydantic-ai

v0.2.15 (2025-06-05)

08 Jun 20:00
ea837b9

Choose a tag to compare

What's Changed

  • Allow empty messages when using GoogleModel by @Kludex in #1922

Full Changelog: v0.2.14...v0.2.15

v0.2.14 (2025-06-03)

03 Jun 18:32
aeaa8cf

Choose a tag to compare

What's Changed

  • Temporarily revert "Add support for MCP's Streamable HTTP transport (#1716)" by @DouweM in #1903

Full Changelog: v0.2.13...v0.2.14

v0.2.13 (2025-06-03)

03 Jun 17:18
a7b8074

Choose a tag to compare

What's Changed

  • Make parallel_evaluation_example more robust by @DouweM in #1861
  • Ensure tool call parts with custom argument model validation errors are serializable by @DouweM in #1862
  • Add option to pass expected output to LLMJudge by @hinnefe2 in #1853
  • Fix unexpected part error when Google model returns empty text delta by @Blue9 in #1875
  • Generate ToolCallPart.tool_call_id when OpenAI-compatible API returned an empty string by @DouweM in #1892
  • docs: Fix import for BaseModel in graph example code by @briann in #1894
  • Add new _GeminiThoughtPart to adhere to Gemini response by @dnouri in #1897

New Contributors

Full Changelog: v0.2.12...v0.2.13

v0.2.12 (2025-05-29)

29 May 14:25
57cc515

Choose a tag to compare

What's Changed

  • Add vendor_id and vendor_details.finish_reason to Gemini/Google model responses by @davide-andreoli in #1800
  • Fix units of sse_read_timeout timedelta by @alexmojaki in #1843
  • Support functions as output_type, as well as lists of functions and other types by @DouweM in #1785
  • Enhance Gemini usage tracking to collect comprehensive token data by @kiqaps in #1752
  • docs: add scope when loading credentials from file in google by @Kludex in #1850
  • Add support for Claude 4 Sonnet and Opus models in Bedrock by @samtin0x in #1838
  • Add ModelProfile to let model-specific behaviors be configured independent of the model class by @DouweM in #1835
  • Add new provider classes for Together AI, Fireworks AI, and Grok with automatic model profile selection by @DouweM in #1842
  • Fix weather agent example with UI by @vp777 in #1851

New Contributors

Full Changelog: v0.2.11...v0.2.12

v0.2.11 (2025-05-27)

27 May 15:56
3b12530

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.10...v0.2.11

v0.2.10 (2025-05-27)

27 May 13:24
c8b9ecb

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.9...v0.2.10

v0.2.9 (2025-05-26)

26 May 07:40
c8bad12

Choose a tag to compare

What's Changed

  • Cast non-textual responses in Agent.to_cli to str by @barp in #1823
  • Support field labels for GeminiModel and GoogleModel on Vertex AI by @vricciardulli in #1056

New Contributors

Full Changelog: v0.2.8...v0.2.9

v0.2.8 (2025-05-25)

25 May 17:31
29e9aa9

Choose a tag to compare

What's Changed

Full Changelog: v0.2.7...v0.2.8

v0.2.7 (2025-05-24)

24 May 15:34
cbc6d57

Choose a tag to compare

What's Changed

  • Support streaming tool calls from models that pass args as None when there are no function parameters by @DouweM in #1802
  • Stream tool calls and structured output from Anthropic as it's received instead of in one go by @DouweM in #1669
  • Remove hardcoded n parameter from OpenAIModel requests by @kiqaps in #1807
  • Add tool_prefix option to MCP servers and error on conflicting tool names by @Wh1isper in #1266
  • Allow RunContext to not be documented when require_parameter_descriptions=True as it's not passed to the model anyway by @Kevsnz in #1750
  • Clean up dataclasses reprs by @dmontagu in #1812
  • Addition: Make prog_name customizable by @fswair in #1804
  • Use AsyncBeta instead of AsyncAnthropic by @Kludex in #1818

New Contributors

Full Changelog: v0.2.6...v0.2.7

v0.2.6 (2025-05-20)

21 May 08:12
4967685

Choose a tag to compare

What's Changed

  • Add prepare_tools param to Agent class by @rmaceissoft in #1474
  • fix: remove forgotten print on GoogleModel by @Kludex in #1780
  • fasta2a: be more strict on agent card by @Kludex in #1781
  • fix: rename prepare_tools to _prepare_tools by @Kludex in #1789
  • fix: create prompt history file when using Agent.to_cli() by @Kludex in #1791
  • fix: add 'openrouter' string to OpenAIModel provider param by @Kludex in #1792

New Contributors

Full Changelog: v0.2.5...v0.2.6