Class AiAnalysisService
java.lang.Object
io.jenkins.plugins.changeinvestigator.ai.AiAnalysisService
Orchestrates one AI analysis: builds the prompt, calls the configured provider, parses the
result. Never throws - every failure mode becomes a
AiAssessment.failed(String) so
callers can always render observed evidence even when AI analysis is unavailable. Which
provider is called, and how, is entirely delegated to providerConfig - this class
knows nothing about any specific provider's API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyze(BuildInvestigationEvidence evidence, AiProviderConfig providerConfig, int timeoutSeconds, double temperature)
-
Constructor Details
-
AiAnalysisService
public AiAnalysisService(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
analyze
public AiAssessment analyze(BuildInvestigationEvidence evidence, AiProviderConfig providerConfig, int timeoutSeconds, double temperature)
-