Skip to content

fix: bound langchain-anthropic<1.7.0 in uipath-langchain-client - #132

Merged
andreibalas-uipath merged 1 commit into
mainfrom
hotfix/bound-langchain-anthropic-1.7
Sep 1, 2026
Merged

fix: bound langchain-anthropic<1.7.0 in uipath-langchain-client#132
andreibalas-uipath merged 1 commit into
mainfrom
hotfix/bound-langchain-anthropic-1.7

Conversation

@andreibalas-uipath

Copy link
Copy Markdown
Contributor

What changed and why

Interim hotfix (follow-up to the 1.18.1 anthropic<1.0.0 bedrock pin, #130 — second incompatibility from the same dependency-drift event):

  • Bound langchain-anthropic>=1.4.1,<1.7.0 on the anthropic extra.
  • Added the same bound explicitly to the bedrock extra, which previously admitted it unbounded via langchain-aws[anthropic].
  • Bumped uipath-langchain-client to 1.18.2, changelog entry, regenerated lockfile (metadata-only diff; locked version stays 1.4.1).

langchain-anthropic 1.7.0 (2026-08-27) changed the private _create/_acreate contract to raw responses (with_raw_response.create + raw_response.parse()). UiPathChatAnthropic overrides those methods with the ≤1.6.1-style bodies, so under 1.7.0 every operation fails with 'Message'/'Stream'/'AsyncStream' object has no attribute 'parse'. Evidence: the uipath-langchain-python chat-models integration suite fails on exactly the UiPathChatAnthropic section on all environments (run).

This pin is interim — to be reverted when the _create/_acreate overrides adopt the raw-response contract and the floor moves to >=1.7.0 (tracked separately). No Python code changes.

Affected packages

  • uipath-langchain-client only (1.18.1 → 1.18.2). Core untouched.

Verification

  • Fresh (unlocked) resolution of [anthropic], [bedrock], and [all] against PyPI lands on langchain-anthropic==1.6.1 + anthropic==0.125.0, no conflicts. The other extras pull no anthropic packages.
  • ruff check, ruff format, pyright pass; full test suite passes (2080 passed), including the Anthropic chat-model tests run explicitly against langchain-anthropic 1.6.1.

🤖 Generated with Claude Code

langchain-anthropic 1.7.0 changed the private _create/_acreate contract
to raw responses, breaking every UiPathChatAnthropic operation. Bound
<1.7.0 on the anthropic extra and explicitly on the bedrock extra
(previously unbounded there via langchain-aws[anthropic]). Interim pin
until the overrides adopt the new contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@andreibalas-uipath
andreibalas-uipath merged commit ccb3a99 into main Sep 1, 2026
12 checks passed
@andreibalas-uipath
andreibalas-uipath deleted the hotfix/bound-langchain-anthropic-1.7 branch September 1, 2026 12:48
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.

2 participants