Shreyas094's picture
Upload 528 files
372531f verified
from typing import List
from pydantic import BaseModel, Field
class Subtopic(BaseModel):
task: str = Field(description="Task name", min_length=1)
class Subtopics(BaseModel):
subtopics: List[Subtopic] = []