TrainingCourseGen / classes.py
aimanzoqi's picture
fixed module content output in markdown
27ab1be
Raw History Blame Contribute Delete
628 Bytes
from pydantic import BaseModel
from typing import List, Optional
from enum import Enum
class FeatureEnum(str, Enum):
video = "video"
image = "image"
interactive = "interactive"
class Module(BaseModel):
name: str
duration: str
subtopics: List[str]
features: List[FeatureEnum]
class CourseOutline(BaseModel):
title: str
objectives: List[str]
duration: str
modules: List[Module]
summary: str
class ModuleContent(BaseModel):
title: str
estimated_reading_time: str
introduction: str
key_concepts: List[str]
explanation: str
examples: str
summary: str