From e13cdc1d2152bced5a012b64cfcf8d479f2a171a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B8=D0=BD=D0=B0=D1=80=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8=D1=82=D0=BE=D0=B2?= Date: Thu, 18 Jun 2026 09:26:32 +0000 Subject: [PATCH] Solution ready for publishing: add README.md --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e2e192 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# README.md +# LangGraph Code Review Agent + +## Description + +This repository contains a **LangGraph** implementation that performs automated code reviews for a given Python function. The agent: + +1. Generates an initial draft review. +2. Critiques the draft using four criteria (PEP8, type hints, edge cases, naming). +3. If the review is not satisfactory, rewrites the weak part up to a maximum number of rounds. + +The demo function `sort_numbers` is used in the CLI example. + +## How to run + +```bash +# Install dependencies +pip install -r requirements.txt + +# Run the demo +python main.py +``` + +The script will print the final state of the review process. + +## Requirements + +- Python 3.10+ +- LangGraph +- LangChain OpenAI +- python-dotenv (for optional API key handling) + +## License + +MIT