Package io.codemodder.plugins.llm
Class SarifPluginLLMCodemod
java.lang.Object
io.codemodder.RawFileChanger
io.codemodder.SarifPluginRawFileChanger
io.codemodder.plugins.llm.SarifPluginLLMCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
- Direct Known Subclasses:
SarifToLLMForBinaryVerificationAndFixingCodemod
,SarifToLLMForMultiOutcomeCodemod
public abstract class SarifPluginLLMCodemod
extends io.codemodder.SarifPluginRawFileChanger
A base class for LLM codemods that process SARIF and use the OpenAI service.
-
Field Summary
FieldsFields inherited from class io.codemodder.RawFileChanger
reporter
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.codemodder.SarifPluginRawFileChanger
onFileFound, visitFile
Methods inherited from class io.codemodder.RawFileChanger
getDescription, getIndividualChangeDescription, getReferences, getSummary
-
Field Details
-
openAI
-
-
Constructor Details
-
SarifPluginLLMCodemod
-
-
Method Details
-
shouldRun
public boolean shouldRun()Indicates whether the codemod should run.Subclasses can override this method to add additional hecks but should call super.shouldRun() to ensure the OpenAI service is available.
-