Skip to content

Releases: pydantic/pydantic-ai

v0.5.0 (2025-08-04)

04 Aug 23:04
d75fd42
Compare
Choose a tag to compare

What's Changed

  • Breaking Change: The EvaluationReport.print and EvaluationReport.console_table methods now require most arguments be passed by keyword. by @dmontagu in #2163
  • Breaking Change: The source field of an EvaluationResult is now of type EvaluatorSpec rather than the actual source Evaluator instance, to help with serialization/deserialization by @dmontagu in #2388
  • Let more BaseModels use OpenAI strict JSON mode by defaulting to additionalProperties=False by @DouweM in #2419
  • Allow string format, pattern and others in OpenAI strict JSON mode by @DouweM in #2420
  • Include default values in tool arguments JSON schema by @DouweM in #2418
  • Fix ImageUrl, VideoUrl, AudioUrl and DocumentUrl not being serializable by @DouweM in #2422
  • Fix test_download_item_no_content_type test failing on macOS by @strawgate in #2404
  • Document performance implications of async vs sync tools by @GuillermoBlasco in #2298
  • Document that tools become toolset internally by @HamzaFarhan in #2395
  • docs: add missing optional packages in install.md by @Kludex in #2412

New Contributors

Full Changelog: v0.4.11...v0.5.0

v0.4.11 (2025-08-01)

01 Aug 23:53
7746f77
Compare
Choose a tag to compare

What's Changed

  • Add convenience functions to handle AG-UI requests with request-specific deps by @DouweM in #2397
  • Support custom thinking tags specified on the model profile by @xjose97x in #2364
  • Rename gemini-2.5-flash-lite-preview-06-17 to gemini-2.5-flash-lite as it's out of preview by @ethan01x in #2387
  • Fix toggleable toolset example so toolset state is not shared across agent runs by @DouweM in #2396
  • Docs: add an example of using RunContext to pass data among tools by @tonyxwz in #2316

New Contributors

Full Changelog: v0.4.10...v0.4.11

v0.4.10 (2025-07-30)

30 Jul 22:53
80a7284
Compare
Choose a tag to compare

What's Changed

  • Fix parallel tool calling with tools returning ToolReturn with content by @DouweM in #2365
  • Always enter Toolset context when running agent by @strawgate in #2361
  • Add priority service_tier to OpenAIModelSettings and respect it in OpenAIResponsesModel by @akenarsari in #2368
  • Add HTTP Referer request header to Vercel AI Gateway provider by @joshualipman123 in #2369

New Contributors

Full Changelog: v0.4.9...v0.4.10

v0.4.9 (2025-07-28)

28 Jul 23:38
ab92e67
Compare
Choose a tag to compare

What's Changed

  • Ensure AG-UI state is isolated between requests by @DouweM in #2343
  • Refine retry logic for parallel tool calling by @DouweM in #2317
  • Fix AgentStream.stream_output and StreamedRunResult.stream_structured with output tools by @DouweM in #2314
  • Allow default in tool schema with Gemini by @strawgate in #2309

Full Changelog: v0.4.8...v0.4.9

v0.4.8 (2025-07-28)

28 Jul 14:52
86d70b5
Compare
Choose a tag to compare

What's Changed

  • Add tenacity utilities/integration for improved retry handling by @dmontagu in #2282
  • fix: close initialized MCP server if any MCP server fails to initalize by @hartungstenio in #2312
  • Adding thinkingpart to otel_events in ModelResponse by @adtyavrdhn in #2237
  • Fix: TypeError in MCPServerSSE due to improper initialization by @tradeqvest in #2319
  • Fix: AG-UI assistant text and tool call order by @ChuckJonas in #2328

New Contributors

Full Changelog: v0.4.7...v0.4.8

v0.4.7 (2025-07-24)

24 Jul 21:36
41dd069
Compare
Choose a tag to compare

What's Changed

  • Add MoonshotAI provider with Kimi-K2 model support by @zachmayer in #2211
  • Add Vercel AI Gateway provider by @joshualipman123 in #2277
  • Support passing files uploaded to Gemini Files API and setting custom media type by @dprov in #2270
  • Parse '' tags in streamed text as thinking parts by @DouweM in #2290
  • Rename MCPServer sse_read_timeout to read_timeout and pass to ClientSession by @AntSan813 in #2240
  • Update cohere and MCP, add support for MCP ResourceLink returned from tools by @medaminezghal in #2094
  • Ignore empty text alongside tool calls when streaming from Ollama by @DouweM in #2286
  • Ignore leading whitespace when streaming text, fixing run_stream + Ollama + Qwen3 by @DouweM in #2294
  • Fix AG-UI parallel tool calls by @DouweM in #2301
  • Fix initial tool call args not being streamed with AG-UI by @DouweM in #2303
  • Handle None created timestamp coming from OpenRouter API by @R0boji in #2247
  • Update MCP docs to show you can pass ssl options via the http_client arg by @assadyousuf in #2214
  • Include ThinkingPart in messages.md API documentation graph by @lfloeer in #2299

New Contributors

Full Changelog: v0.4.6...v0.4.7

v0.4.6 (2025-07-23)

23 Jul 14:42
0b3d020
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.5...v0.4.6

v0.4.5 (2025-07-22)

22 Jul 13:11
3ceff58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.4...v0.4.5

v0.4.4 (2025-07-18)

18 Jul 21:41
01c550c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.3...v0.4.4

v0.4.3 (2025-07-16)

16 Jul 16:28
4d755d2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.2...v0.4.3