chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
from typing import List
|
||||
from pydantic import Field
|
||||
from models.presentation_outline_model import (
|
||||
PresentationOutlineModel,
|
||||
SlideOutlineModel,
|
||||
)
|
||||
from models.presentation_structure_model import PresentationStructureModel
|
||||
|
||||
|
||||
def get_presentation_outline_model_with_n_slides(n_slides: int):
|
||||
class SlideOutlineModelWithNSlides(SlideOutlineModel):
|
||||
content: str = Field(
|
||||
description="Markdown content for each slide",
|
||||
min_length=100,
|
||||
max_length=1200,
|
||||
)
|
||||
|
||||
class PresentationOutlineModelWithNSlides(PresentationOutlineModel):
|
||||
slides: List[SlideOutlineModelWithNSlides] = Field(
|
||||
description="List of slide outlines",
|
||||
min_length=n_slides,
|
||||
max_length=n_slides,
|
||||
)
|
||||
|
||||
return PresentationOutlineModelWithNSlides
|
||||
|
||||
|
||||
def get_presentation_structure_model_with_n_slides(n_slides: int):
|
||||
class PresentationStructureModelWithNSlides(PresentationStructureModel):
|
||||
slides: List[int] = Field(
|
||||
description="List of slide layouts",
|
||||
min_length=n_slides,
|
||||
max_length=n_slides,
|
||||
)
|
||||
|
||||
return PresentationStructureModelWithNSlides
|
||||
Reference in New Issue
Block a user