File size: 536 Bytes
775ba42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from enum import Enum
from pydantic import BaseModel, Field

class SOLOLevel(str,Enum):
    """
    Enum for SOLO levels.
    """
    UNISTRUCTURAL = "unistructural"
    MULTISTRUCTURAL = "multistructural"


class MCQResponse(BaseModel):
    """
    Response model for MCQ generation.
    """
    question_text: str = Field(..., description="The generated question text.")
    options: list[str] = Field(..., description="List of answer options.")
    correct_answer: str = Field(..., description="The correct answer from the options.")