feat: solution for 'Экзамен: Самокорректирующийся агент'
This commit is contained in:
@@ -1,27 +1,15 @@
|
||||
# Self‑Correcting Agent Project
|
||||
# Самокорректирующийся агент
|
||||
|
||||
This repository contains a minimal setup for a self‑correcting 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 self‑correcting 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.
|
||||
Reference in New Issue
Block a user