github pydantic/pydantic-ai v1.0.15
v1.0.15 (2025-10-03)

latest releases: v1.63.0, v1.62.0, v1.61.0...
4 months ago

What's Changed

  • Support image generation and output with Google and OpenAI by @DouweM in #2970
  • Add AgentRunResult.response convenience method to get latest model response by @DouweM in #2970
  • Add ModelResponse.text, thinking, files, images, tool_calls, and builtin_tool_calls convenience methods by @DouweM in #2970
  • Add Agent.run_stream_events() convenience method wrapping run(event_stream_handler=...) by @DouweM in #3084
  • Add content (e.g. files) returned by tool to FunctionToolResultEvent by @DouweM in #3082
  • Set MCPServer id and tool_prefix in load_mcp_servers by @DouweM in #3052
  • Add latest gemini 2.5 flash(-lite) model names and aliases by @moritzwilksch in #3060
  • Support enums in format_as_xml by @DouweM in #3064
  • Fix dataset serialization when inputs have discriminators with defaults by @DouweM in #3079
  • Fix parallel tool call limit enforcement by @tradeqvest in #2978

Full Changelog: v1.0.14...v1.0.15

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.