conductor-oss / conductor-oss/python-sdk

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

Abierto Apto para principiantes
#486 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug dependencies
Lenguaje dominante
Python
Estrellas
104
Forks
42
Merge medio
2 d 1 h
PR fusionados (30 d)
3

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
build-system
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Tranquilo
Claridad
Bien especificado
Aptitud para principiantes
88/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.