io.codemodder.plugins.llm.CodeChangingLLMRemediationOutcome Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-plugin-llm Show documentation
Show all versions of codemodder-plugin-llm Show documentation
Codemod plugin for augmenting transformation with LLM assisted analysis and fixes
package io.codemodder.plugins.llm;
import java.util.Objects;
/** Models the parameters for a remediation analysis + actual direction for changing the code. */
public record CodeChangingLLMRemediationOutcome(String key, String description, String fix)
implements LLMRemediationOutcome {
public CodeChangingLLMRemediationOutcome {
Objects.requireNonNull(key);
Objects.requireNonNull(description);
Objects.requireNonNull(fix);
}
@Override
public boolean shouldApplyCodeChanges() {
return true;
}
}