Files: pyproject.toml ([tool.poetry.extras]), affects examples/agents/langgraph/43_react_agent_multi_model.py
Symptom: After the documented install — pip install -e '.[agents]', which is what CI runs — the example fails immediately:
ModuleNotFoundError: No module named 'langchain_anthropic'
Cause: The agents extra lists langchain, langchain-core, langchain-openai, langgraph, google-adk, openai, openai-agents, anthropic, claude-code-sdk — but not langchain-anthropic, which 43_react_agent_multi_model.py imports for ChatAnthropic.
Fix: Add langchain-anthropic to the agents extra (and its own langchain-anthropic extra alongside the existing langchain / langgraph ones).
Verify: From a clean env, pip install -e '.[agents]' then python examples/agents/langgraph/43_react_agent_multi_model.py runs. Confirmed: with langchain-anthropic 1.5.5 installed manually it passes on both server types (5.8s / 76.7s).
Files:
pyproject.toml([tool.poetry.extras]), affectsexamples/agents/langgraph/43_react_agent_multi_model.pySymptom: After the documented install —
pip install -e '.[agents]', which is what CI runs — the example fails immediately:Cause: The
agentsextra listslangchain,langchain-core,langchain-openai,langgraph,google-adk,openai,openai-agents,anthropic,claude-code-sdk— but notlangchain-anthropic, which43_react_agent_multi_model.pyimports forChatAnthropic.Fix: Add
langchain-anthropicto theagentsextra (and its ownlangchain-anthropicextra alongside the existinglangchain/langgraphones).Verify: From a clean env,
pip install -e '.[agents]'thenpython examples/agents/langgraph/43_react_agent_multi_model.pyruns. Confirmed: withlangchain-anthropic 1.5.5installed manually it passes on both server types (5.8s / 76.7s).