UNPKG

@hivetechs/hive-ai

Version:

Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API

25 lines 886 B
/** * Quality Scorer for Consensus Effectiveness * * Calculates quality scores and improvement metrics for the * Consensus Effectiveness Index (CEI) dashboard metric. */ /** * Calculate quality score for a consensus result * Based on stage agreement and output coherence */ export declare function calculateConsensusQuality(conversationId: string, stageResults: Array<{ stageName: string; answer: string; tokenCount: number; }>): Promise<number>; /** * Calculate content quality score for individual stage output * Used by the enhanced consensus engine for per-stage analytics */ export declare function calculateContentQuality(content: string, stageName: string, question: string): Promise<number>; /** * Get average CEI score for dashboard */ export declare function getAverageCEI(hours?: number): Promise<number>; //# sourceMappingURL=quality-scorer.d.ts.map