Class AIUtils.ModelResponseFormat

java.lang.Object
ai.tutor.cab302exceptionalhandlers.Utils.AIUtils.ModelResponseFormat
Enclosing class:
AIUtils

public class AIUtils.ModelResponseFormat extends Object
The response format for the AI's responses.
  • Field Details

    • response

      public final String response
    • isError

      public final boolean isError
    • quizzes

      public final AIUtils.QuizFormat[] quizzes
      An array of quizzes, if generated by the AI.
  • Constructor Details

    • ModelResponseFormat

      public ModelResponseFormat(boolean isError, String response, AIUtils.QuizFormat[] quizzes)
      Constructor of ModelResponseFormat.
      Parameters:
      isError - True if an error occurred, false otherwise.
      response - The AI's response text.
      quizzes - An array of AIUtils.QuizFormat objects, or null if no quizzes were generated.
  • Method Details