feat: solution for 'Экзамен: Самокорректирующийся агент'

This commit is contained in:
2026-07-01 15:16:44 +03:00
parent 3e0a7af30f
commit c24bf26577
3 changed files with 29 additions and 33 deletions
+15 -13
View File
@@ -1,25 +1,27 @@
# Самокорректирующийся агент
# SelfCorrecting Agent Project
## Описание
This repository contains a minimal setup for a selfcorrecting agent that relies on the `langgraph` library.
The `requirements.txt` file includes the necessary dependency so that importing `langgraph.graph` works without errors.
В этом репозитории реализован самокорректирующийся агент на базе LangChain. Для корректной работы проекта необходимо установить зависимости, указанные в `requirements.txt`.
## Установка зависимостей
## Installation
```bash
# Create a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
# Install dependencies
pip install -r requirements.txt
```
## Запуск
## Usage
После установки зависимостей можно запустить основной скрипт (если он присутствует в репозитории):
After installing the dependencies, you can import `langgraph.graph` in your Python code:
```bash
python main.py
```python
from langgraph.graph import SomeGraphClass # replace with actual class or function
```
> **Важно:** Убедитесь, что у вас настроены переменные окружения для доступа к OpenAI API, если это требуется вашим агентом.
Feel free to extend the project with additional modules and scripts as needed.
## Примечание
В файле `requirements.txt` добавлены пакеты `langchain-openai` и `langchain-core`, которые ранее отсутствовали и вызывали ошибки при запуске. Это решение соответствует требованиям преподавателя.
---