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

71 lines (70 loc) 2.13 kB
/** * Multi-Judge Workflow * ==================== * * 5-model ensemble with 3-judge voting for maximum reliability: * - 5 diverse models generate responses * - 3 judges independently evaluate (voting consensus) * - Best response selected by aggregate scoring * * Ideal for: Critical decisions requiring high confidence * * @module workflow/workflows/multiJudgeWorkflow */ import type { WorkflowConfig } from "../../types/index.js"; /** * Multi-Judge-5 Workflow Configuration * * Uses 5 models across different providers: * - GPT-4o (OpenAI) * - GPT-4o-mini (OpenAI) * - Claude 3.5 Sonnet (Anthropic) * - Claude 3 Haiku (Anthropic) * - Gemini 2.0 Flash (Google) * * 3 independent judges vote: * - GPT-4o evaluates accuracy & clarity * - Claude 3.5 Sonnet evaluates reasoning & depth * - Gemini 2.0 Flash evaluates completeness & coherence * * Scores are averaged across all judges for final selection * * @example * ```typescript * import { runWorkflow } from '../core/workflowRunner.js'; * import { MULTI_JUDGE_5_WORKFLOW } from './multiJudgeWorkflow.js'; * * const result = await runWorkflow(MULTI_JUDGE_5_WORKFLOW, { * prompt: 'Should we invest in renewable energy?', * verbose: true, * }); * * console.log('Consensus score:', result.score); * console.log('Agreement level:', result.consensus); * ``` */ export declare const MULTI_JUDGE_5_WORKFLOW: WorkflowConfig; /** * Multi-Judge-3 Workflow (Lighter Version) * * 3 models with 2 judges (more cost-effective): * - GPT-4o, Claude 3.5, Gemini 2.0 * - Judged by GPT-4o and Claude 3.5 */ export declare const MULTI_JUDGE_3_WORKFLOW: WorkflowConfig; /** * Create custom multi-judge workflow * * @param modelCount - Number of models (3, 5, or 7) * @param judgeCount - Number of judges (2 or 3) * @returns Configured workflow * * @example * ```typescript * const workflow = createMultiJudgeWorkflow(7, 3); * const result = await runWorkflow(workflow, { * prompt: 'Complex analysis task', * }); * ``` */ export declare function createMultiJudgeWorkflow(modelCount: 3 | 5 | 7, judgeCount: 2 | 3): WorkflowConfig;