Class AIUtils.ModelResponseFormat
java.lang.Object
ai.tutor.cab302exceptionalhandlers.Utils.AIUtils.ModelResponseFormat
- Enclosing class:
AIUtils
The response format for the AI's responses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
final AIUtils.QuizFormat[]
An array of quizzes, if generated by the AI.final String
-
Constructor Summary
ConstructorsConstructorDescriptionModelResponseFormat
(boolean isError, String response, AIUtils.QuizFormat[] quizzes) Constructor ofModelResponseFormat
. -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
response
-
isError
public final boolean isError -
quizzes
An array of quizzes, if generated by the AI.
-
-
Constructor Details
-
ModelResponseFormat
Constructor ofModelResponseFormat
.- Parameters:
isError
- True if an error occurred, false otherwise.response
- The AI's response text.quizzes
- An array ofAIUtils.QuizFormat
objects, or null if no quizzes were generated.
-
-
Method Details
-
getQuizTitle
-
getQuizQuestions
-