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
Modifier and TypeMethodDescriptionString[]Returns the file extensions (without the dot) that this reviewer can process.Reviews a file and returns a formatted fragment (often including file content and/or extracted guidance) for use by the Ghostwriter pipeline.
-
Constructor Details
-
PythonReviewer
public PythonReviewer()
-
-
Method Details
-
getSupportedFileExtensions
Description copied from interface:ReviewerReturns the file extensions (without the dot) that this reviewer can process.- Specified by:
getSupportedFileExtensionsin interfaceReviewer- Returns:
- supported file extensions
-
perform
Description copied from interface:ReviewerReviews a file and returns a formatted fragment (often including file content and/or extracted guidance) for use by the Ghostwriter pipeline.- Specified by:
performin interfaceReviewer- Parameters:
projectDir- the project root directory used to compute related paths for contextguidancesFile- the file to analyze- Returns:
- a formatted prompt fragment, or
nullwhen no relevant guidance is present - Throws:
IOException- if an error occurs reading the file
-