conductor-oss / conductor-oss/python-sdk

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

Ouverte Adaptée aux débutants
#486 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug dependencies
Langage dominant
Python
Étoiles
104
Forks
42
Merge moyen
2 j 1 h
PR mergées (30 j)
3

Description

**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).

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
build-system
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
Calme
Clarté
Clairement spécifiée
Accessibilité débutants
88/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.