Index
All Classes and Interfaces|All Packages
B
- BinaryThreatRisk - Enum Class in io.codemodder.plugins.llm
-
The possible outcomes of a binary risk analysis -- "high" or "low".
C
- configure() - Method in class io.codemodder.plugins.llm.LLMServiceModule
- createChatCompletion(ChatCompletionRequest) - Method in class io.codemodder.plugins.llm.OpenAIService
G
- getFixPrompt() - Method in class io.codemodder.plugins.llm.SarifToLLMForBinaryVerificationAndFixingCodemod
-
Instructs the LLM on how to fix the threat.
- getModules(Path, List<Class<? extends CodeChanger>>, List<RuleSarif>) - Method in class io.codemodder.plugins.llm.LLMProvider
- getThreatPrompt() - Method in class io.codemodder.plugins.llm.SarifToLLMForBinaryVerificationAndFixingCodemod
-
Instructs the LLM on how to assess the risk of the threat.
H
- HIGH - Enum constant in enum class io.codemodder.plugins.llm.BinaryThreatRisk
I
- io.codemodder.plugins.llm - package io.codemodder.plugins.llm
- isPatchExpected(Patch<String>) - Method in class io.codemodder.plugins.llm.SarifToLLMForBinaryVerificationAndFixingCodemod
-
Returns whether the patch returned by the LLM is within the expectations of this codemod.
L
- LLMProvider - Class in io.codemodder.plugins.llm
-
Provides LLM-related functionality to codemods.
- LLMProvider() - Constructor for class io.codemodder.plugins.llm.LLMProvider
- LLMServiceModule - Class in io.codemodder.plugins.llm
-
Provides configured LLM services.
- LLMServiceModule() - Constructor for class io.codemodder.plugins.llm.LLMServiceModule
- LOW - Enum constant in enum class io.codemodder.plugins.llm.BinaryThreatRisk
O
- onFileFound(CodemodInvocationContext, List<Result>) - Method in class io.codemodder.plugins.llm.SarifToLLMForBinaryVerificationAndFixingCodemod
- OpenAIService - Class in io.codemodder.plugins.llm
-
A custom service class to call the
OpenAiApi
, since the out-of-the boxOpenAiService
does not support automatic retries. - OpenAIService(String) - Constructor for class io.codemodder.plugins.llm.OpenAIService
S
- SarifToLLMForBinaryVerificationAndFixingCodemod - Class in io.codemodder.plugins.llm
-
An extension of
SarifPluginRawFileChanger
that uses large language models (LLMs) to more deeply analyze and then fix the files found by the static analysis tool. - SarifToLLMForBinaryVerificationAndFixingCodemod(RuleSarif, OpenAIService) - Constructor for class io.codemodder.plugins.llm.SarifToLLMForBinaryVerificationAndFixingCodemod
V
- valueOf(String) - Static method in enum class io.codemodder.plugins.llm.BinaryThreatRisk
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.codemodder.plugins.llm.BinaryThreatRisk
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages