Package io.jenkins.plugins.explain_error
Class AIService
java.lang.Object
io.jenkins.plugins.explain_error.AIService
Service class for communicating with AI APIs.
Factory that creates appropriate AI service implementation based on the configured provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexplainError
(String errorLogs) Explain error logs using the configured AI provider.
-
Constructor Details
-
AIService
-
-
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
-