github pydantic/pydantic-ai v0.2.7
v0.2.7 (2025-05-24)

latest releases: v1.59.0, v1.58.0, v1.57.0...
8 months ago

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

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.