Releases: pydantic/pydantic-ai
Releases Β· pydantic/pydantic-ai
v1.70.0 (2026-03-17)
What's Changed
π Features
- Add
bedrock_inference_profileto BedrockModelSettings and BedrockEmbeddingSettings by @dsfaccini in #4697
π Bug Fixes
- fix: OpenRouter Anthropic model profile matching for dotted model numbers by @majdalsado in #4690
- fix: always pass
embedding_typesto Cohereembed()to prevent SDKTypeErrorby @adityasingh2400 in #4524 - fix(google): add '512' as supported image generation size by @nat-bishop in #4649
- fix(bedrock): sanitize tool names before sending to API by @DouweM in #4713
- fix: handle malformed tool call args in Anthropic retry path by @Saad-Azi in #4431
- fix: recover prior text for thinking-only responses instead of retrying by @majiayu000 in #4558
New Contributors
- @adityasingh2400 made their first contribution in #4524
- @nat-bishop made their first contribution in #4649
- @Saad-Azi made their first contribution in #4431
Full Changelog: v1.69.0...v1.70.0
v1.69.0 (2026-03-16)
What's Changed
π Features
- Add
descriptionparameter toAgentand setgen_ai.agent.descriptionon span by @Kludex in #4677 - Send multimodal tool results to APIs directly instead of splitting into user parts by @dsfaccini in #3826
- Add response-based fallback support for
FallbackModelby @sarth6 in #3786
π Bug Fixes
- fix: enforce deps type on
FunctionToolset.toolviatool/tool_plainsplit by @adtyavrdhn in #4626 - fix: copy
detailsdict inUsage.__add__to prevent mutation of or⦠by @sksvineeth in #4606
Full Changelog: v1.68.0...v1.69.0
v1.68.0 (2026-03-12)
What's Changed
Changes
π Bug Fixes
- fix(openai): thinking detection for
gpt-5.3-chat-latestby @dsfaccini in #4567 - fix: AG-UI follow-up messages failing after built-in tool use by @gcheshkov in #4624
π¦ Dependencies
- fix: remediate open Dependabot security alerts by @dsfaccini in #4520
New Contributors
- @gcheshkov made their first contribution in #4624
Full Changelog: v1.67.0...v1.68.0
What's Changed
π Features
π Bug Fixes
- fix(openai): thinking detection for
gpt-5.3-chat-latestby @dsfaccini in #4567 - fix: AG-UI follow-up messages failing after built-in tool use by @gcheshkov in #4624
π¦ Dependencies
- fix: remediate open Dependabot security alerts by @dsfaccini in #4520
New Contributors
- @gcheshkov made their first contribution in #4624
Full Changelog: v1.67.0...v1.68.0
v1.67.0 (2026-03-06)
What's Changed
π Features
- Add GPT-5.4 support by @theadityarao in #4554
- Support
WebSearchToolforOpenRouterModelthrough OpenRouter plugins by @mochow13 in #4022 - Rehaul Tavily search tool by @sarth6 in #4158
- Enable native structured output support for Ollama provider by @OiPunk in #4536
π Bug Fixes
- Add missing Vercel AI SDK v6 tool approval part types by @bendrucker in #4388
New Contributors
- @theadityarao made their first contribution in #4554
Full Changelog: v1.66.0...v1.67.0
v1.66.0 (2026-03-04)
What's Changed
π Features
- Enable native structured output for Qwen 3.5 models by @ggozad in #4534
- Add Nano Banana 2 (
gemini-3.1-flash-image-preview) by @adtyavrdhn in #4525
π Bug Fixes
- Fix builtin tool availability checking when using
TemporalAgentwith multiple models by @mattbrandman in #4100 - Fix
HasMatchingSpanYAML export/import round-trip forSpanQueryarguments by @debu-sinha in #4454
New Contributors
- @debu-sinha made their first contribution in #4454
- @advaitathreya made their first contribution in #4499
Full Changelog: v1.65.0...v1.66.0
v1.65.0 (2026-03-03)
What's Changed
π Features
- Support files uploaded to providers via new
UploadedFileobject by @mattbrandman in #3942 - feat: add
gemini-3.1-flash-lite-previewmodel by @rian-dolphin in #4517
π Bug Fixes
- fix: add
__reduce__to exception classes for pickle support by @OiPunk in #4504
New Contributors
- @OiPunk made their first contribution in #4504
Full Changelog: v1.64.0...v1.65.0
v1.64.0 (2026-03-02)
What's Changed
π Features
- feat: support
template=FalseonPromptedOutputandNativeOutputto disable schema prompt by @DouweM in #4497
π Bug Fixes
- Fix missing
run_idonModelRequestin UI adapter runs by @madanlalit in #4419 - Wrap Google streaming errors as
ModelHTTPError/ModelAPIErrorby @saakshigupta2002 in #4437 - fix(mcp): move
__aexit__guard inside lock to prevent TOCTOU race by @jameslcowan in #4435 - fix:
BaseToolCallPart.has_content()incorrectly returns False for falsy arg values by @bsherifi in #4442 - fix(anthropic): auto-fallback to streaming for high
max_tokensby @DouweM in #4496 - fix(vercel): Align
dump_messagesoutput with Vercel spec by @dsfaccini in #4196 - fix: cancel sibling tasks on any exception in parallel tool execution by @LakshmiSravyaVedantham in #4502
New Contributors
- @jameslcowan made their first contribution in #4435
- @bsherifi made their first contribution in #4442
- @LakshmiSravyaVedantham made their first contribution in #4502
Full Changelog: v1.63.0...v1.64.0
v1.63.0 (2026-02-23)
What's Changed
π Features
- Add Gemini 3.1 Pro Preview support by @majdalsado in #4372
- feat(gemini): Logprob Support by @DRXD1000 in #4269
- Add
args_validatorparameter to tools for pre-execution validation by @jerry-reevo in #4016
π Bug Fixes
- Fix Temporal and DBOS MCP to use cached tools instead of fetching each time by @DouweM in #4331
- Updated Cohere content item typing to fix the incompatibility by @DarthJuri in #4384
- Fix Anthropic model on Bedrock incorrectly being treated as supporting json schema output by @vimota in #4369
- fix(pydantic-evals): gracefully handle custom
TracerProviderswithoutadd_span_processorby @AtharvaJaiswal005 in #4328 - fix: use non-greedy regex in
strip_markdown_fencesto stop at closing fence by @sksvineeth in #4398 - fix: add defaults for optional fields in OpenRouter streaming models by @majdalsado in #4371
- Set
BuiltinToolCallPart.idfor OpenAI Responses WebSearch/FileSearch by @yipstar in #4391 - fix: Identify new messages by
run_idinstead of index by @madanlalit in #4086
New Contributors
- @majdalsado made their first contribution in #4372
- @DarthJuri made their first contribution in #4384
- @AtharvaJaiswal005 made their first contribution in #4328
- @sksvineeth made their first contribution in #4398
- @DRXD1000 made their first contribution in #4269
- @yipstar made their first contribution in #4391
Full Changelog: v1.62.0...v1.63.0
v1.62.0 (2026-02-18)
What's Changed
π Features
- Add tool approval integration for Vercel AI adapter by @bendrucker in #3772
- Add LinePlot analysis type, ROCAUCEvaluator, and KolmogorovSmirnovEvaluator by @dmontagu in #4356
π Bug Fixes
- Fix missing pages in llms.txt and llms-full.txt by @DouweM in #4355
- Handle Groq
tool_use_failederrors without tool name/args by retrying by @DouweM in #4354 - fix: handle content filter refusals for Google
prompt_feedbackand OpenAI refusals by @DouweM in #4315
π¦ Dependencies
- bump
huggingfaceto 1.3.4 by @dsfaccini in #4119 - Use
griffelibinstead ofgriffeby @dsfaccini in #4313
Full Changelog: v1.61.0...v1.62.0