Package org.machanism.machai.gw.reviewer
Class PythonReviewer
java.lang.Object
org.machanism.machai.gw.reviewer.PythonReviewer
- All Implemented Interfaces:
Reviewer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PythonReviewer
public PythonReviewer()
-
-
Method Details
-
getSupportedFileExtensions
Returns the file extensions supported by this reviewer.- Specified by:
getSupportedFileExtensionsin interfaceReviewer- Returns:
- an array containing
"py"
-
perform
Reviews the provided Python file and, if guidance is present, returns a formatted prompt fragment.- Specified by:
performin interfaceReviewer- Parameters:
projectDir- the project root directory used to compute a project-relative path for contextguidancesFile- the Python file to analyze- Returns:
- a formatted prompt fragment, or
nullwhen the file does not contain guidance - Throws:
IOException- if an error occurs while reading the file
-