slidedeckai.core#
Core functionality of SlideDeck AI.
The main class for generating slide decks. |
Core functionality of SlideDeck AI.
- class slidedeckai.core.SlideDeckAI(model: str, topic: str, api_key: str | None = None, pdf_path_or_stream=None, pdf_page_range=None, template_idx: int = 0)[source]#
Bases:
objectThe main class for generating slide decks.
- generate(progress_callback=None)[source]#
Generate the initial slide deck.
- Parameters:
progress_callback – Optional callback function to report progress.
- Returns:
The path to the generated .pptx file.
- revise(instructions: str, template_idx: int | None = None, progress_callback=None)[source]#
Revise the slide deck with new instructions.
- Parameters:
instructions – The instructions for revising the slide deck.
template_idx – Optional index of the PowerPoint template to use for the revised deck.
progress_callback – Optional callback function to report progress.
- Returns:
The path to the revised .pptx file.
- Raises:
ValueError – If no slide deck exists or chat history is full.