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

70 lines (69 loc) 1.99 kB
/** * Consensus-3 Workflow * ==================== * * 3-model ensemble with judge selecting best response based on: * - Accuracy * - Clarity * - Completeness * * Ideal for: Balanced quality across multiple providers * * @module workflow/workflows/consensusWorkflow */ import type { WorkflowConfig } from "../../types/index.js"; /** * Consensus-3 Workflow Configuration * * Uses 3 high-quality models in parallel: * - GPT-4o (OpenAI) - Strong reasoning * - Claude 3.5 Sonnet (Anthropic) - Thoughtful analysis * - Gemini 2.0 Flash (Google) - Fast and capable * * Judge: GPT-4o evaluates on accuracy, clarity, and completeness * * @example * ```typescript * import { runWorkflow } from '../core/workflowRunner.js'; * import { CONSENSUS_3_WORKFLOW } from './consensusWorkflow.js'; * * const result = await runWorkflow(CONSENSUS_3_WORKFLOW, { * prompt: 'Explain the theory of relativity', * verbose: true, * }); * * console.log('Best response:', result.content); * console.log('Score:', result.score); * console.log('Reasoning:', result.reasoning); * ``` */ export declare const CONSENSUS_3_WORKFLOW: WorkflowConfig; /** * Consensus-3 with Custom System Prompt * * Same as CONSENSUS_3_WORKFLOW but allows custom system prompt * * @param systemPrompt - Custom system prompt for all models * @returns Workflow configuration with custom prompt * * @example * ```typescript * const workflow = createConsensus3WithPrompt( * 'You are a technical expert. Provide detailed, accurate responses.' * ); * * const result = await runWorkflow(workflow, { * prompt: 'Explain async/await in JavaScript', * }); * ``` */ export declare function createConsensus3WithPrompt(systemPrompt: string): WorkflowConfig; /** * Consensus-3 Fast (Lower Cost, Faster) * * Uses faster/cheaper models with same consensus approach: * - GPT-4o-mini * - Claude 3 Haiku * - Gemini 2.0 Flash */ export declare const CONSENSUS_3_FAST_WORKFLOW: WorkflowConfig;