Files
povtornyy-ekzamen-graf-s-re…/README.md
T

40 lines
856 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Self-Correcting Agent
This repository contains a simple implementation of a selfcorrecting agent using **LangGraph**.
The agent follows these steps:
1. **Ask** Generates an answer to the users question.
2. **Check** Evaluates the answers quality.
3. **Correct** If the answer is flagged as poor, it rewrites it.
4. **Final** Returns the final answer.
## Installation
```bash
pip install -r requirements.txt
```
> **Note**: The implementation uses deterministic placeholders instead of real LLM calls, so no API keys are required.
## Usage
```python
from src.agent import run_agent
question = "What is the capital of France?"
answer = run_agent(question)
print(answer)
```
## Project Structure
```
├── requirements.txt
├── src
│ └── agent.py
└── README.md
```
## License
MIT License