conductor-oss / conductor-oss/python-sdk
`.[agents]` extra omits `langchain-anthropic`, so a shipped example cannot run
- 主要言語
- Python
- スター
- 104
- フォーク
- 42
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 3
説明
**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).
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Update the [tool.poetry.extras] entries in pyproject.toml, adding langchain-anthropic to the agents extra and its own extra. Start by checking the dependency declarations, then run pip install -e '.[agents]' in a clean environment and execute examples/agents/langgraph/43_react_agent_multi_model.py; done means the example runs without ModuleNotFoundError.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 88/100