Chore(deps): update pydantic-ai-slim requirement from <2,>=1.104.0 to >=1.105.0,<2 - #1893
Conversation
Code Review — Dependabot bump:
|
|
@dependabot rebase |
Updates the requirements on [pydantic-ai-slim](https://github.com/pydantic/pydantic-ai) to permit the latest version. - [Release notes](https://github.com/pydantic/pydantic-ai/releases) - [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md) - [Commits](pydantic/pydantic-ai@v1.104.0...v1.105.0) --- updated-dependencies: - dependency-name: pydantic-ai-slim dependency-version: 1.105.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
195d3f8 to
0e20b7b
Compare
|
test |
|
Code Review: Dependabot pydantic-ai-slim bump. Safe to merge once CI passes. The import-time guard in history_processors.py covers the key risk. |
|
Code Review - pydantic-ai-slim 1.104.0 to 1.105.0. VERDICT: Safe to merge once CI passes. This is a routine lower-bound bump within pydantic-ai stable 1.x API. Key risks checked and cleared: (1) Dataclass-shape assertion in history_processors.py guard will catch any BaseModel migration at import-time - v1.105.0 confirms no such change. (2) dataclasses.replace calls in _shrink_message are unaffected. (3) instructions= enforcement in pydantic_ai_factory.py means new deferred-loading is additive with no regression risk. (4) spacy has no version pin below pydantic-ai line - minor, unrelated cleanup opportunity. Full markdown review with headings was prepared but shell restrictions prevent inline posting of markdown heading syntax. |
|
Deleting test comment - please ignore |
|
NOTE: This comment supersedes the previous 3 test/placeholder comments above (which could not be deleted due to sandbox restrictions). --- Code Review: Dependabot pydantic-ai-slim bump (1.104.0 to 1.105.0) --- OVERVIEW: A one-line lower-bound bump in requirements/base.txt. The diff changes only the minimum pinned version; the less-than-2 ceiling and all provider extras (openai,anthropic,google,mcp) are untouched. The comment pointing at issue 1451 before widening the upper bound is correctly preserved. --- WHAT IS IN v1.105.0: Non-breaking minor release. New: On-demand/deferred-loading for instructions, tools, model settings, and hooks. New: Grok 4.3 reasoning_effort support. Fix: gateway/ model construction in Temporal workflow. Fix: GoogleModelSettings.google_cached_content strips system_instruction/tools/tool_config correctly. None of these touch the internal dataclass shapes of ToolReturnPart, ModelRequest, or ModelResponse. --- KEY RISK AREAS - ALL CLEAR: (1) Dataclass-shape assertion in history_processors.py (pitfall 17): The module-level guard at lines 59-65 checks dataclass_fields on all three message types at import time. If v1.105.0 had migrated any to BaseModel, CI catches it immediately with RuntimeError. Changelog confirms no such migration. (2) dataclasses.replace(msg, parts=new_parts) in _shrink_message: The replace calls at lines 232 and 254 pass list[Any] into parts. The list-to-Sequence change was a v1.0.0 breaking change already absorbed; v1.105.0 does not revisit it. (3) instructions= vs system_prompt=: pydantic_ai_factory.py enforces instructions= and raises TypeError on system_prompt=, so deferred-loading poses no regression risk. (4) Deferred-loading capabilities: Additive API surface; no existing code in opencontractserver/llms/ opts in. --- MINOR (non-blocking): test_pydantic_ai_factory.py will exercise the new version automatically in CI. The spacy entry below the pydantic-ai line has no version pin - unrelated cleanup opportunity. --- VERDICT: Safe to merge once CI passes. Routine lower-bound bump within pydantic-ai stable 1.x API. The import-time guard in history_processors.py is the right safety net. |
Updates the requirements on pydantic-ai-slim to permit the latest version.
Release notes
Sourced from pydantic-ai-slim's releases.
Changelog
Sourced from pydantic-ai-slim's changelog.
... (truncated)
Commits
2a6a1a6Add Grok 4.3reasoning_effortsupport and current xAI model names (#5454)48ce280FixGoogleModelSettings.google_cached_contentso request omits `system_inst...f9f8b95feat: On-demand (deferred loading) capabilities, including instructions, tool...b837c28Pinaiohttpbelow 3.14 for vcrpy (#5752)953f6c5Fixgateway/model construction inside a Temporal workflow by passing provi...cff2825Ignore local agent config files (#5677)e989f1cdocs: correcton_node_run_errortype fromBaseExceptiontoException(#...