Skip to content

Releases: pydantic/pydantic-ai

v0.2.7 (2025-05-24)

24 May 15:34
cbc6d57
Compare
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
Compare
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

v0.2.5 (2025-05-20)

20 May 14:31
c6a0e97
Compare
Choose a tag to compare

What's Changed

  • fasta2a: make capabilities required on AgentCard by @Kludex in #1733
  • Fix formatting of ints in eval reports by @dmontagu in #1738
  • Bugfix: record instructions properly on agent run span when using structured output by @dmontagu in #1740
  • Add ability to specify the evaluation name for all provided Evaluators by @dmontagu in #1725
  • Add include_binary_content flag to InstrumentationSettings, rename OTel attribute key from content to binary_content for BinaryParts by @alexmojaki in #1739
  • Add logprobs to OpenAI model settings and response by @eliassoares in #1238
  • Added vendor_id to the model response. by @peterHoburg in #1547
  • Fix ImportError when opentelemetry is not installed by @dmontagu in #1773
  • Add licenses to all packages. by @tobiasraabe in #1775
  • Add OpenRouter provider by @Kludex in #1778
  • Add Google GenAI provider by @Kludex in #1751

New Contributors

Full Changelog: v0.2.4...v0.2.5

v0.2.4 (2025-05-14)

14 May 20:50
e06aa32
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.3...v0.2.4

v0.2.3 (2025-05-13)

13 May 13:54
36e900a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.2...v0.2.3

v0.2.2 (2025-05-13)

13 May 09:50
3bc5219
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.1...v0.2.2

v0.2.1 (2025-05-13)

13 May 09:27
cb37b74
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.2.1

v0.2.0 (2025-05-12)

12 May 15:32
51755ef
Compare
Choose a tag to compare

Breaking Changes

See #1647 โ€” usage makes sense as part of ModelResponse, and could be really useful in "messages" (really a sequence of requests and response). In this PR:

  • Adds usage to ModelResponse (field has a default factory of Usage() so it'll work to load data that doesn't have usage)
  • changes the return type of Model.request to just ModelResponse instead of tuple[ModelResponse, Usage]

Other Changes

New Contributors

Full Changelog: v0.1.11...v0.2.0

v0.1.11 (2025-05-10)

10 May 06:41
240b012
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.10...v0.1.11

v0.1.10 (2025-05-06)

06 May 14:40
dd22595
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.9...v0.1.10