UNPKG

@gork-labs/secondbrain-mcp

Version:

Second Brain MCP Server - Agent team orchestration with dynamic tool discovery

22 lines (21 loc) 620 B
/** * Forgiving JSON Parser for AI-generated content * Handles common JSON syntax errors from AI model responses */ export interface JsonParseResult { success: boolean; data?: any; error?: string; fixesApplied?: string[]; } /** * Attempts to parse JSON with various fallback strategies for common AI errors */ export declare function parseJsonForgiving(jsonString: string): JsonParseResult; /** * Validates that the parsed JSON has the basic structure expected for sub-agent responses */ export declare function validateSubAgentStructure(data: any): { valid: boolean; issues: string[]; };