from pydantic import BaseModel from typing import Optional # Step 1️⃣: Create a Pydantic model for inputs class OutlineInput(BaseModel): topic: str domain: str content_type: str audience: str material_type: list units_number: int note: Optional[str] = None # { # "topic": "إدارة الوقت", # "domain": "Management", # "content_type": "Educational", # "audience": "kids", # "material_type": ["Procedural", "Realistic", "Personal"], # } # { # "topic": "(Design thinking) تقنيات التفكير التصميمي لحل المشكلات واتخاذ القرارات", # "domain": "Management", # "content_type": "تدريبي", # "audience": "القادة والموظفون والإداريون", # "material_type": ["مفاهمية", "هيكلية", "شخصية", "واقعية", "اجرائية"], # } # { # "topic": "ريادة الأعمال", # "domain": "Management, Business", # "content_type": "Awareness, Training", # "audience": "CEOs, Directors, Entrepreneurs", # "material_type": ["مفاهمية", "هيكلية", "اجرائية", "واقعية"], # "units_number": 2, # } # TOPIC = "استراتيجية التدريس" # { # "topic": "استراتيجية التدريس", # "domain": "Education, Management", # "content_type": "Educational, Training - Skill development with practice", # "audience": "Teachers", # "material_type": ["مفاهمية", "هيكلية", "اجرائية", "واقعية"], # "units_number": 2, # }