Skip to content

Update dependency pydantic-ai to v2 - #87

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pydantic-ai-2.x
Open

Update dependency pydantic-ai to v2#87
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pydantic-ai-2.x

Conversation

@renovate

@renovate renovate Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pydantic-ai (changelog) <2.0.0<2.11.1 age confidence

Release Notes

pydantic/pydantic-ai (pydantic-ai)

v2.11.0: (2026-07-15)

Compare Source

What's Changed

🚀 Features
  • feat: export HistoryProcessor and add actionable hints to usage-limit and tool-retry errors by @​DouweM in #​6346
🐛 Bug Fixes
  • Fix MistralStreamedResponse streamed number/integer validation to accept int-valued numbers and reject bools by @​pydanty[bot] in #​6479
  • fix(onboarding): suggest Agent('test') when provider credentials are missing by @​DouweM in #​6342
  • fix(anthropic): transform native output schema when reached via profile={"default_structured_output_mode": "native"} by @​dsfaccini in #​6521
  • Fix Bedrock profile={'default_structured_output_mode': 'native'} sending untransformed schema by @​dsfaccini in #​6539

Full Changelog: pydantic/pydantic-ai@v2.10.0...v2.11.0

v2.10.0: (2026-07-14)

Compare Source

What's Changed

🚀 Features
  • Make message_history provider-valid out of the box (repair tool-call/result pairing) by @​DouweM in #​6319
  • Add support for OpenAI background mode and handle Anthropic stop_reason=pause_turn by @​DouweM in #​6303
🐛 Bug Fixes
📦 Dependencies

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.9.1...v2.10.0

v2.9.1: (2026-07-13)

Compare Source

What's Changed

🐛 Bug Fixes
📦 Dependencies

Full Changelog: pydantic/pydantic-ai@v2.9.0...v2.9.1

v2.9.0: (2026-07-10)

Compare Source

What's Changed

🛡️ Security

A moderate advisory, GHSA-jpr8-2v3g-wgf9 (CWE-863), affecting the AG-UI UIAdapter.sanitize_messages dangling-tool-call strip, was fixed in 2.5.0 and backported to 1.107.1 on the v1 line. If you are on 2.5.0 or later you already have the fix; this note calls it out now that the advisory is public.

  • Affected: pydantic-ai / pydantic-ai-slim >= 2.0.0, < 2.5.0 (v2) and >= 1.88.0, < 1.107.1 (v1)
  • Patched: 2.5.0 (v2) and 1.107.1 (v1)
  • Not affected if every sensitive tool uses requires_approval=True / ApprovalRequiredToolset, or if your tool handlers validate their arguments and enforce authorization themselves.
🚀 Features
🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.8.0...v2.9.0

v2.8.0: (2026-07-09)

Compare Source

What's Changed

🚀 Features
🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.7.0...v2.8.0

v2.7.0: (2026-07-08)

Compare Source

What's Changed

🚀 Features
🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.6.0...v2.7.0

v2.6.0: (2026-07-07)

Compare Source

What's Changed

🚀 Features
  • Record time-to-first-token for streaming model requests by @​dmontagu in #​5967
  • feat: Add files support to CodeExecutionTool for Anthropic and OpenAI by @​HenryYYang in #​4338
  • Add Bedrock model profiles for Writer, Z.AI, and Moonshot AI, and refresh LatestBedrockModelNames by @​DouweM in #​6318
🐛 Bug Fixes
📦 Dependencies

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.5.1...v2.6.0

v2.5.1: (2026-07-06)

Compare Source

What's Changed

🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.5.0...v2.5.1

v2.5.0: (2026-07-03)

Compare Source

What's Changed

🚀 Features
  • Add sanitize_messages for inbound message-history hardening by @​dsfaccini in #​6169
  • Round-trip multimodal tool returns through the AG-UI and Vercel AI adapters (history and streaming) by @​dsfaccini in #​5255
🐛 Bug Fixes
📦 Dependencies

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.4.0...v2.5.0

v2.4.0: (2026-07-02)

Compare Source

What's Changed

🚀 Features
  • Split preserve_file_data into allow_uploaded_files (inbound security) and an AG-UI representation opt-in by @​DouweM in #​6232
  • Add GEval evaluator and standard quality metric rubrics for LLMJudge by @​dmontagu in #​5129
  • Add agentic span-based evaluators (ToolCorrectness, TrajectoryMatch, ArgumentCorrectness, MaxToolCalls, MaxModelRequests) by @​dmontagu in #​5130
🐛 Bug Fixes
📦 Dependencies

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.3.0...v2.4.0

v2.3.0: (2026-07-01)

Compare Source

What's Changed

🚀 Features
🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.2.0...v2.3.0

v2.2.0: (2026-06-30)

Compare Source

What's Changed

🚀 Features
🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.1.0...v2.2.0

v2.1.0: (2026-06-29)

Compare Source

What's Changed

🚀 Features
🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v2.0.0...v2.1.0

v2.0.0: (2026-06-23)

Compare Source

🎉 Pydantic AI V2.0 is here!

After seven betas, Pydantic AI V2 is now stable. V2 leans into a harness-first design with capabilities as a core primitive — a single composable unit that bundles an agent's tools, hooks, instructions, and model settings, reaching every layer of the agent through one concept.

Install it with:

uv add pydantic-ai

See the Upgrade Guide for everything that's changed and the recommended path from V1.


What's Changed
🚀 Features
🐛 Bug Fixes
New Contributors

Full Changelog: pydantic/pydantic-ai@v2.0.0b7...v2.0.0

v1.107.1: (2026-07-10)

Compare Source

What's Changed

🛡️ Security

This release patches GHSA-jpr8-2v3g-wgf9 (moderate, CWE-863) on the v1 line. On the AG-UI serving path (Agent.to_ag_ui() / AGUIAdapter), UIAdapter.sanitize_messages anchored its dangling-tool-call strip to an index computed before sanitization. When a trailing client message was dropped during sanitization (for example a client system message under the default manage_system_prompt='server'), a preceding assistant response carrying an unresolved tool call could be re-exposed as the new tail and executed with client-chosen arguments.

  • Affected: pydantic-ai / pydantic-ai-slim >= 1.88.0, < 1.107.1 (v1) and >= 2.0.0, < 2.5.0 (v2)
  • Patched: 1.107.1 (v1) and 2.5.0 (v2)
  • Not affected if every sensitive tool uses requires_approval=True / ApprovalRequiredToolset, or if your tool handlers validate their arguments and enforce authorization themselves.

See the advisory for details and workarounds.

🐛 Bug Fixes
  • Fix sanitize_messages tail handling when a trailing client message is dropped by @​dsfaccini in #​6407

Full Changelog: pydantic/pydantic-ai@v1.107.0...v1.107.1


Configuration

📅 Schedule: (in timezone Europe/Zurich)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Jul 26, 2026
@renovate
renovate Bot force-pushed the renovate/pydantic-ai-2.x branch 3 times, most recently from e339f24 to 9502f46 Compare July 29, 2026 04:32
@renovate
renovate Bot force-pushed the renovate/pydantic-ai-2.x branch from 9502f46 to bb68c2a Compare July 30, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants