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

This commit is contained in:
2026-07-01 15:21:06 +03:00
parent c24bf26577
commit 6283334f30
3 changed files with 26 additions and 32 deletions
+8 -20
View File
@@ -1,27 +1,15 @@
# 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.
This repository contains a simple implementation of a selfcorrecting agent using LangChain.
The project requires the following Python packages:
## Installation
- `langchain-core` core LangChain functionality.
- `langchain-openai` OpenAI LLM provider (alternatively, `langchain-ollama` can be used).
Install the dependencies with:
```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:
```python
from langgraph.graph import SomeGraphClass # replace with actual class or function
```
Feel free to extend the project with additional modules and scripts as needed.
---
Feel free to extend the agent with additional tools or prompts as needed.