File size: 1,561 Bytes
325b94c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 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,
# }
|