Class AiAssessment
java.lang.Object
io.jenkins.plugins.changeinvestigator.ai.AiAssessment
- All Implemented Interfaces:
Serializable
The AI's interpretation of a
BuildInvestigationEvidence
bundle. This is always kept as a distinct object from the observed evidence so the UI can
never confuse "what Jenkins observed" with "what the model guessed".
Exactly one of three states holds at any time:
isDisabled()- AI analysis is turned off in global configuration.isFailed()- AI analysis was attempted but did not succeed;getErrorMessage()explains why. Observed evidence is still shown to the user regardless.- otherwise - a real (possibly "insufficient evidence") assessment is present.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AiAssessmentcompleted(String mostLikelyCause, Confidence confidence, String reasoning, List<String> supportingEvidence, List<String> recommendedChecks, boolean insufficientEvidence, String providerUsed, String modelUsed) static AiAssessmentdisabled()static AiAssessmentlongbooleanbooleanbooleanisFailed()boolean
-
Method Details
-
disabled
-
failed
-
completed
public static AiAssessment completed(String mostLikelyCause, Confidence confidence, String reasoning, List<String> supportingEvidence, List<String> recommendedChecks, boolean insufficientEvidence, String providerUsed, String modelUsed) -
isDisabled
public boolean isDisabled() -
isFailed
public boolean isFailed() -
isCompleted
public boolean isCompleted() -
getErrorMessage
-
getMostLikelyCause
-
getConfidence
-
getConfidenceLabel
-
getReasoning
-
getSupportingEvidence
-
getRecommendedChecks
-
isInsufficientEvidence
public boolean isInsufficientEvidence() -
getProviderUsed
-
getModelUsed
-
getGeneratedAtMillis
public long getGeneratedAtMillis()
-