pypi pydantic-ai 2.46.0
v2.46.0 (2026-09-18)

5 hours ago

What's Changed

🚀 Features

  • Let TypeSafeModel fill a tool's arguments when Jev can express them by @DouweM in #8501
  • Add RealtimeSession.wait_for_playback() and let the docs examples finish the reply before closing by @DouweM in #8141
  • Add supports_text_output to ModelProfile, and run LLMJudge and GEval on a model without it by @DouweM in #8480
  • Add typesafe_boolean_threshold for what a yes/no has to be before it is True by @DouweM in #8505
  • Let TypeSafeModel fill a union of output types by choosing the type first by @DouweM in #8481
  • Add event_stream_topic to TemporalDurability to stream agent events via Workflow Streams by @brianstrauch in #6639
  • Describe an Enum's options by its member docstrings when it mixes in UseEnumMemberDocstrings by @DouweM in #8479
  • Add a Choices helper for a set of described options built at run time by @DouweM in #8530

🐛 Bug Fixes

  • Refuse more options than Jev can pick from in TypeSafeModel by @DouweM in #8484
  • Record a failed ToolReturnPart when a realtime tool raises, and keep a tool call and its speech in one ModelResponse by @DouweM in #8135
  • Dispatch tool calls with the live ToolDefinition in CombinedToolset and FunctionToolset by @adtyavrdhn in #8082
  • Allow adaptive thinking with tool output and forced tool choice on Bedrock by @pydanty in #7967
  • Fix gateway IDs being misclassified as OpenAI o-series models by @DouweM in #8512
  • Keep late realtime input transcripts attached to the user turn they belong to by @DouweM in #8139
  • Lay the first-run banner out for the terminal's actual width by @DouweM in #8517
  • Raise ModelRetry when web_fetch_tool gets a URL httpx2 rejects as invalid by @DouweM in #8521
  • Price realtime responses so usage.cost and UsageLimits.cost_limit work in a session by @DouweM in #8136
  • Re-arm coverage for code already seen when the dataclass walk resumes it by @DouweM in #8438

New Contributors

Full Changelog: v2.45.0...v2.46.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.