Skip to content

build(deps): support pydantic-ai 2.63 and latest LangChain stack - #75

Merged
fswair merged 2 commits into
mainfrom
deps/latest-pydantic-langchain
Oct 29, 2026
Merged

fswair merged 2 commits into
mainfrom
deps/latest-pydantic-langchain

Conversation

@fswair

@fswair fswair commented Oct 29, 2026

Copy link
Copy Markdown
Member

Supersedes #68, #69 and #70, which could not resolve independently (Harness pins pydantic-ai-slim exactly, and codex-auth-helper still capped at 2.52.0).

Changes

  • Pydantic AI <=2.52.0 → <=2.63.0 (root, pydantic-acp, codex-auth-helper); Harness 0.52.0 → 0.63.0.
  • CI/Makefile compatibility matrix extended with 2.53.0 – 2.63.0.
  • LangChain baseline: langchain 1.3.11 → 1.4.7, langgraph 1.2.7 → 1.2.18, deepagents 0.6.12 → 0.7.32 (floors in langchain-acp, Makefile pins, docs, skills).
  • uv.lock refreshed.
  • Docs, READMEs, skills and CHANGELOG updated for the new ranges.

API notes

Pydantic AI 2.63 deprecates RetryPromptPart in favour of ToolReturnPart(outcome='retried') and RetryFeedbackPart. The adapter already maps non-success ToolReturnPart.outcome to a failed tool call, so no runtime change was needed; legacy RetryPromptPart handling stays for 2.9 – 2.5x.

Test-only fixes: the OpenAI compaction fake now exposes ctx.messages (upstream writes to it), the Harness capability test skips when the installed Pydantic AI does not match Harness' exact pin, and legacy retry events in tests are cast explicitly.

Verification (local)

  • ruff format/check, ty (0 errors), basedpyright (0 errors)
  • pytest tests: 951 passed
  • make check-langchain-stack: passed
  • Pydantic AI matrix samples 2.9.0 (513 passed, 2 skipped), 2.52.0 (514 passed, 1 skipped), 2.63.0 (515 passed)

🤖 Generated with Claude Code

Raise the Pydantic AI ceiling to 2.63.0 and Harness to 0.63.0, extend the CI
compatibility matrix through 2.63.0, and move the LangChain baseline to
langchain 1.4.7, langgraph 1.2.18, and deepagents 0.7.32. Relock dependencies.

Tests: OpenAI compaction fake now exposes ctx.messages, the Harness capability
test is skipped when the installed Pydantic AI does not match Harness' pin,
and legacy RetryPromptPart events are typed explicitly.

Supersedes #68, #69, #70.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant