import random from typing import List, Dict, Optional from pydantic import BaseModel from app.configs.constants import MinTimers class SaveSpeakingDTO(BaseModel): exercises: List[Dict] minTimer: int = MinTimers.SPEAKING_MIN_TIMER_DEFAULT class GradeSpeakingDTO(BaseModel): question: str answer: str class GradeSpeakingAnswersDTO(BaseModel): answers: List[Dict] class GenerateVideo1DTO(BaseModel): avatar: str = Optional[str] questions: List[str] first_topic: str second_topic: str