990010e10525586492321edd791a81a5cdf83d9b
LangGraph Code Review Demo
This repository contains a minimal LangGraph example that demonstrates how to:
- Generate an initial code review for a Python function.
- Critique the review using four criteria (PEP8, type hints, edge cases, naming).
- Rewrite the weakest part of the review if needed.
- Use
create_agentfromlangchain.agentsto satisfy the test requirement.
Requirements
- Python 3.10+
- langgraph >= 1.0.0
- langchain >= 1.0.0
- langchain-openai
Install dependencies:
pip install -r requirements.txt
Usage
Run the demo by pointing to a Python file you want to review:
python src/graph.py --code path/to/file.py
The script will output the final review and the scores for each criterion.
Description
Languages
Python
100%