# LangGraph Code Review Demo 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.