Skip to content

fix: include LangChain Anthropic in agent extras - #516

Open
abhinavrastogi2627 wants to merge 2 commits into
conductor-oss:mainfrom
abhinavrastogi2627:fix/langchain-anthropic-extra
Open

abhinavrastogi2627 wants to merge 2 commits into
conductor-oss:mainfrom
abhinavrastogi2627:fix/langchain-anthropic-extra

Conversation

@abhinavrastogi2627

Copy link
Copy Markdown

The documented pip install 'conductor-python[agents]' leaves 43_react_agent_multi_model.py unable to import ChatAnthropic. Add optional langchain-anthropic>=1.5.5 to agents and expose a standalone langchain-anthropic extra. Update the extras table and regenerate the Poetry lockfile; resolving the new integration also updates the locked Anthropic SDK and LangChain Core versions.

Fixes #486. This is the standalone packaging change requested in #495.

Validation: clean .[agents] install, dependency compatibility check, and the affected example's model/graph construction passed with network access blocked. Built the wheel, verified optional dependency markers, and installed/imported its standalone extra in a second clean environment. Poetry lock validation and 2,671 unit tests passed (1 skipped). The full five-suite run has the same 2 failures and 48 errors as unchanged main (worker collection effects and integration setup requiring a local server); no new failures. Live server/LLM execution was not tested.

@abhinavrastogi2627
abhinavrastogi2627 force-pushed the fix/langchain-anthropic-extra branch from 7cc0327 to 532f18b Compare October 21, 2026 19:16
@abhinavrastogi2627

Copy link
Copy Markdown
Author

Rebased onto the current main branch and regenerated the Poetry lock metadata, preserving the upstream dependency fixes. Validation: poetry check --lock passed; the full unit suite passed with 2,680 tests and 1 skip. The extras were also checked through clean wheel installs, dependency consistency checks, and offline construction of the Claude example model and graph.

@abhinavrastogi2627

abhinavrastogi2627 commented Nov 17, 2026 •

Copy link
Copy Markdown
Author

Could you review this when you have time? GitHub reports no merge conflicts. The lock validation, clean installs of the extra and the unit suite passed, as detailed above. Please let me know if you would prefer a different dependency constraint.

@abhinavrastogi2627

Copy link
Copy Markdown
Author

Resolved the lockfile conflict in 248d4f2 by merging current main and regenerating with Poetry 2.5.1. This preserves the upstream dependency security updates and keeps the integration extra available independently and through agents. The added integration requires newer model/core dependencies; those and their transitive dependencies are reflected in the lockfile.

Validation: poetry check --lock and wheel build passed; the full unit suite passed with 2,680 tests and 1 skip. Clean installs from the exported lock for both extras passed dependency consistency checks and offline model construction; the agents install also imports the graph integration. No live model/API calls were made.

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.

.[agents] extra omits langchain-anthropic, so a shipped example cannot run

1 participant