/** * LLM Prompt Generator * * Auto-generates LLM system prompts from CommandSchema[]. Given a set of * domain schemas, produces a structured markdown prompt that teaches LLMs * to output valid LSE bracket syntax and/or LLM-simplified JSON. * * The generated prompt includes: * - Protocol overview (LSE syntax summary) * - Value type reference * - Per-command documentation with role descriptions * - Synthetic examples in both formats * - Output format specification * - Error recovery instructions */ import type { CommandSchema } from '../schema/command-schema'; import type { SemanticJSON } from '../ir/types'; import type { PromptGeneratorConfig, GeneratedPrompt } from './types'; /** * Generate an LLM system prompt from domain command schemas. * * @example * ```typescript * import { generatePrompt } from '@lokascript/framework'; * import { allSchemas } from '@lokascript/domains/flow'; * * const prompt = generatePrompt({ * domain: 'flow', * description: 'Reactive data flow pipelines', * schemas: allSchemas, * }); * * console.log(prompt.text); // Full markdown system prompt * ``` */ export declare function generatePrompt(config: PromptGeneratorConfig): GeneratedPrompt; /** * Generate synthetic LSE examples from a single command schema. * Used by both the prompt generator and training data synthesizer. */ export declare function generateExamples(schema: CommandSchema, count?: number): Array<{ explicit: string; json: SemanticJSON; }>; /** * Generate a condensed LSE protocol reference (for MCP resources). */ export declare function generateProtocolReference(): string; //# sourceMappingURL=prompt-generator.d.ts.map