pypi pydantic-ai 1.97.0
v1.97.0 (2026-05-15)

9 hours ago

What's Changed

🚀 Features

  • feat(evals): add OnlineEvaluator.run_on_errors to opt into evaluating failed calls by @dmontagu in #5456
  • Split GoogleProvider(vertexai=True|False) into GoogleProvider + GoogleCloudProvider; rename provider ID google-gla: to google:, google-vertex: to google-cloud:; deprecate old names by @dsfaccini in #5336
  • Add MCPToolset that uses fastmcp-slim[client], deprecate MCPServer* and FastMCPToolset by @DouweM in #5325
  • Set ModelResponse.state to incomplete while response is still streaming by @adtyavrdhn in #5455
  • Move pydantic_graph.beta API out of beta, deprecate old API by @dmontagu in #5306

🆕 V2 Preparation

  • Deprecate stream_responses() for stream_response(); new singular yields ModelResponse instead of (ModelResponse, is_last) tuple by @dsfaccini in #5296
  • Deprecate Agent.to_a2a() and bundled fasta2a integration; fasta2a has been adopted by DataLayer and users can use fasta2a.pydantic_ai (requires fasta2a v0.6.1) instead by @dsfaccini in #5426

New Contributors

Full Changelog: v1.96.1...v1.97.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.