Package io.jenkins.plugins.explain_error
Class BaseAIService
java.lang.Object
io.jenkins.plugins.explain_error.BaseAIService
- Direct Known Subclasses:
GeminiService,OllamaService,OpenAIService
Base class for AI service implementations using LangChain4j.
Provides common functionality for different AI providers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GlobalConfigurationImplprotected static final Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract io.jenkins.plugins.explain_error.BaseAIService.AssistantexplainError(String errorLogs) Explain error logs using the configured AI provider.
-
Field Details
-
LOGGER
-
config
-
-
Constructor Details
-
BaseAIService
-
-
Method Details
-
explainError
Explain error logs using the configured AI provider.- Parameters:
errorLogs- the error logs to explain- Returns:
- the AI explanation
- Throws:
IOException- if there's a communication error
-
createAssistant
protected abstract io.jenkins.plugins.explain_error.BaseAIService.Assistant createAssistant()
-