UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

38 lines (37 loc) • 1.28 kB
/** * Presentation Orchestrator * * Main orchestration module for PPT generation. * Coordinates the full pipeline: validation → content planning → slide generation → assembly → file output. * * Follows the video handler pattern (vertexVideoHandler.ts): * - Standalone module with clear responsibility * - Uses AI provider for generation * - Returns structured result * * @module presentation/presentationOrchestrator */ import type { PPTGenerationResult, PresentationGenerationOptions } from "../../types/index.js"; /** * Generate a complete PowerPoint presentation * * This is the main entry point for PPT generation. It orchestrates: * 1. Content planning via AI * 2. Individual slide generation (with images) * 3. PPTX assembly and file output * * @param options - Presentation generation options * @returns Promise<PPTGenerationResult> - Result with file path and metadata * * @example * ```typescript * const result = await generatePresentation({ * context: extractPPTContext(options), * provider: aiProvider, * neurolink: neurolinkInstance, * }); * * console.log(`Presentation saved: ${result.filePath}`); * ``` */ export declare function generatePresentation(options: PresentationGenerationOptions): Promise<PPTGenerationResult>;