Class AIService

java.lang.Object
io.jenkins.plugins.explain_error.AIService

public class AIService extends Object
Service class for communicating with AI APIs. Factory that creates appropriate AI service implementation based on the configured provider.
  • Constructor Details

  • Method Details

    • explainError

      public String explainError(String errorLogs) throws IOException
      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