feat: solution for 'Экзамен: Самокорректирующийся агент'
This commit is contained in:
+13
-18
@@ -1,21 +1,16 @@
|
||||
**Что реализовано**
|
||||
В файл `requirements.txt` добавлены недостающие зависимости:
|
||||
**What was implemented**
|
||||
I added the `langgraph` package to the project’s `requirements.txt` so that the import
|
||||
`from langgraph.graph import ...` works without raising a `ModuleNotFoundError`.
|
||||
|
||||
```
|
||||
langchain-openai
|
||||
langchain-core
|
||||
**Why this satisfies the requirement**
|
||||
The assignment explicitly asked to include `langgraph` in the dependencies. By listing it in `requirements.txt`, the package manager will install it during the environment setup, making the import statement valid.
|
||||
|
||||
**Key code excerpt**
|
||||
|
||||
```txt
|
||||
# requirements.txt
|
||||
langgraph
|
||||
```
|
||||
|
||||
**Почему это решает задачу**
|
||||
В репозитории отсутствовали пакеты `langchain-openai` и `langchain-core`, из‑за чего при запуске возникали ошибки импорта. Добавив их в список зависимостей, мы гарантируем, что при установке проекта через `pip install -r requirements.txt` эти библиотеки будут доступны, и агент сможет корректно работать с OpenAI‑интеграцией и ядром LangChain.
|
||||
|
||||
**Краткие фрагменты кода**
|
||||
|
||||
- `requirements.txt`
|
||||
```txt
|
||||
langchain-openai
|
||||
langchain-core
|
||||
```
|
||||
|
||||
**Ограничения**
|
||||
В текущей версии решения не было необходимости в дополнительных изменениях кода. Если в дальнейшем появятся новые зависимости, их также следует добавить в `requirements.txt`.
|
||||
**Limitations**
|
||||
None – the change is minimal and directly addresses the reviewer’s feedback.
|
||||
Reference in New Issue
Block a user