Skip to content

fix: include LangChain Anthropic in agent extras - #516

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

abhinavrastogi2627 wants to merge 1 commit 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.

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