conductor-oss / conductor-oss/python-sdk

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

Aperta Adatta ai principianti
#486 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug dependencies
Lingua principale
Python
Stelle
104
Fork
42
Merge medio
2g 1h
PR unite (30g)
3

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
build-system
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
88/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.