Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
v0.6.2 (2025-08-07)
What's Changed
- Add
builtin_tools
toAgent
by @mattbrandman in #2102
New Contributors
- @mattbrandman made their first contribution in #2102
Full Changelog: v0.6.1...v0.6.2
v0.6.1 (2025-08-07)
What's Changed
- Automatically use OpenAI strict mode for strict-compatible native output types by @DouweM in #2447
- Make
InlineDefsJsonSchemaTransformer
public by @DouweM in #2455 - Send
ThinkingPart
s back to Anthropic used through Bedrock by @DouweM in #2454 - Support
AWS_BEARER_TOKEN_BEDROCK
API key env var by @DouweM in #2456 - Add new Heroku models by @Kludex in #2459
Full Changelog: v0.6.0...v0.6.1
v0.6.0 (2025-08-06)
What's Changed
- Remove older deprecated models and add new model of Anthropic by @medaminezghal in #2435
- BREAKING CHANGE: Remove
next()
method fromGraph
by @Kludex in #2440 - BREAKING CHANGE: Remove
data
fromFinalResult
by @Kludex in #2443 - BREAKING CHANGE: Remove
get_data
andvalidate_structured_result
fromStreamedRunResult
by @Kludex in #2445 - docs: add
griffe_warnings_deprecated
by @Kludex in #2444 - BREAKING CHANGE: Remove
format_as_xml
module by @Kludex in #2446 - BREAKING CHANGE: Remove
result_type
parameter and similar fromAgent
by @Kludex in #2441 - Deprecate
GoogleGLAProvider
andGoogleVertexProvider
by @Kludex in #2450 - BREAKING CHANGE: drop 4 months old deprecation warnings by @Kludex in #2451
Full Changelog: v0.5.1...v0.6.0
v0.5.1 (2025-08-06)
v0.5.0 (2025-08-04)
What's Changed
- Breaking Change: The
EvaluationReport.print
andEvaluationReport.console_table
methods now require most arguments be passed by keyword. by @dmontagu in #2163 - Breaking Change: The
source
field of anEvaluationResult
is now of typeEvaluatorSpec
rather than the actual sourceEvaluator
instance, to help with serialization/deserialization by @dmontagu in #2388 - Let more
BaseModel
s use OpenAI strict JSON mode by defaulting toadditionalProperties=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
- @GuillermoBlasco made their first contribution in #2298
Full Changelog: v0.4.11...v0.5.0
v0.4.11 (2025-08-01)
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
- @tonyxwz made their first contribution in #2316
- @ethan01x made their first contribution in #2387
- @xjose97x made their first contribution in #2364
Full Changelog: v0.4.10...v0.4.11
v0.4.10 (2025-07-30)
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
toOpenAIModelSettings
and respect it inOpenAIResponsesModel
by @akenarsari in #2368 - Add HTTP Referer request header to Vercel AI Gateway provider by @joshualipman123 in #2369
New Contributors
- @akenarsari made their first contribution in #2368
Full Changelog: v0.4.9...v0.4.10
v0.4.9 (2025-07-28)
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)
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
- @hartungstenio made their first contribution in #2312
- @tradeqvest made their first contribution in #2319
- @ChuckJonas made their first contribution in #2328
Full Changelog: v0.4.7...v0.4.8
v0.4.7 (2025-07-24)
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
toread_timeout
and pass toClientSession
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
- @R0boji made their first contribution in #2247
- @AntSan813 made their first contribution in #2240
- @joshualipman123 made their first contribution in #2277
- @dprov made their first contribution in #2270
Full Changelog: v0.4.6...v0.4.7