@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
50 lines • 1.33 kB
TypeScript
/**
* Mermaid Validation Tools for AI-Powered Visualization
*
* Provides Mermaid diagram validation tools for the visualization AI.
* Allows AI to validate diagrams before returning them to the user.
*
* PRD #320: Milestone 2.6 - Mermaid Diagram Validation
*/
import { AITool } from './ai-provider.interface';
/**
* Input for mermaid validation tools
*/
export interface MermaidToolInput {
diagram?: string;
}
/**
* Result of mermaid validation
*/
interface MermaidValidationResult {
success: boolean;
valid?: boolean;
error?: string | null;
parseError?: {
text?: string;
token?: string;
line?: number;
loc?: unknown;
expected?: string[];
} | null;
message: string;
}
/**
* Tool: validate_mermaid
* Validates Mermaid diagram syntax and returns errors if any
*/
export declare const VALIDATE_MERMAID_TOOL: AITool;
/**
* All mermaid tools for visualization
*/
export declare const MERMAID_TOOLS: AITool[];
/**
* Execute Mermaid-related tools
*
* @param toolName - Name of the tool to execute
* @param input - Tool input parameters
* @returns Tool execution result
*/
export declare function executeMermaidTools(toolName: string, input: MermaidToolInput): Promise<MermaidValidationResult>;
export {};
//# sourceMappingURL=mermaid-tools.d.ts.map