UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

48 lines (47 loc) 1.68 kB
/** * PPT Content Planner * * Generates structured slide content plan using AI. * Takes a topic and configuration, returns a detailed ContentPlan JSON. * * Follows the video handler pattern (vertexVideoHandler.ts): * - Standalone module with clear responsibility * - Uses AI provider for generation * - Returns structured result * * @module presentation/contentPlanner */ import type { AIProvider, ContentPlan, PPTGenerationContext } from "../../types/index.js"; /** * Generate a content plan for the presentation * * This is the main entry point for content planning. It: * 1. Builds the AI prompt with all configuration * 2. Calls the AI provider to generate the plan * 3. Parses and validates the response * 4. Returns a structured ContentPlan * * @param context - PPT generation context (extracted from GenerateOptions) * @param provider - AI provider instance (already validated) * @returns Promise<ContentPlan> - Structured slide plan * * @example * ```typescript * const context = extractPPTContext(options); * const plan = await generateContentPlan(context, provider); * console.log(`Generated ${plan.totalSlides} slides`); * ``` */ export declare function generateContentPlan(context: PPTGenerationContext, provider: AIProvider): Promise<ContentPlan>; /** * Ensure first slide is title type */ export declare function ensureTitleSlide(plan: ContentPlan): ContentPlan; /** * Ensure last slide is thank-you type */ export declare function ensureThankYouSlide(plan: ContentPlan): ContentPlan; /** * Apply post-processing to ensure plan follows best practices */ export declare function postProcessPlan(plan: ContentPlan): ContentPlan;