2026-06-11 15:01:07 +00:00
2026-06-11 15:01:07 +00:00

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:

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.

S
Description
Повторный экзамен #2: Граф с рефлексией на код
Readme 31 KiB
Languages
Python 100%