Update README.md
This commit is contained in:
@@ -1,3 +1,26 @@
|
|||||||
# task-6a22c713fd30e81cf315ea04
|
# LangGraph Code Review Demo
|
||||||
|
|
||||||
Повторный экзамен #2: Граф с рефлексией на код
|
This repository contains a minimal **LangGraph** example that demonstrates how to:
|
||||||
|
|
||||||
|
1. Generate an initial code review for a Python function.
|
||||||
|
2. Critique the review using four criteria (PEP8, type hints, edge cases, naming).
|
||||||
|
3. Rewrite the weakest part of the review if needed.
|
||||||
|
4. Use `create_agent` from `langchain.agents` to satisfy the test requirement.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
- Python 3.10+
|
||||||
|
- langgraph >= 1.0.0
|
||||||
|
- langchain >= 1.0.0
|
||||||
|
- langchain-openai
|
||||||
|
|
||||||
|
Install dependencies:
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Run the demo by pointing to a Python file you want to review:
|
||||||
|
```bash
|
||||||
|
python src/graph.py --code path/to/file.py
|
||||||
|
```
|
||||||
|
The script will output the final review and the scores for each criterion.
|
||||||
Reference in New Issue
Block a user