presenton/servers/fastapi/models/generate_presentation_request.py
2025-08-28 20:35:27 +05:45

22 lines
865 B
Python

from typing import List, Literal, Optional
from pydantic import BaseModel, Field
class GeneratePresentationRequest(BaseModel):
content: str = Field(..., description="The content for generating the presentation")
instruction: Optional[str] = Field(
default=None, description="The instruction for generating the presentation"
)
n_slides: int = Field(default=8, description="Number of slides to generate")
language: str = Field(
default="English", description="Language for the presentation"
)
template: str = Field(
default="general", description="Template to use for the presentation"
)
files: Optional[List[str]] = Field(
default=None, description="Files to use for the presentation"
)
export_as: Literal["pptx", "pdf"] = Field(
default="pptx", description="Export format"
)