/** * Leaper Agent – Mixture of Agents Tool * Multi-model consultation, consensus building, and model voting. */ import type { ToolDefinition } from './registry.js'; export interface ModelResponse { model: string; content: string; success: boolean; error?: string; attempt?: number; } export interface MoAResult { success: boolean; response?: string; models_used?: string[]; successful_references?: number; error?: string; } export interface MoAOptions { query: string; reference_models?: string[]; aggregator_model?: string; temperature?: number; max_tokens?: number; } export interface MoAConfiguration { reference_models: string[]; aggregator_model: string; min_successful_references: number; reference_temperature: number; aggregator_temperature: number; } export declare const REFERENCE_MODELS: string[]; export declare const AGGREGATOR_MODEL = "anthropic/claude-3-5-sonnet"; export declare const REFERENCE_TEMPERATURE = 0.6; export declare const AGGREGATOR_TEMPERATURE = 0.4; export declare const MIN_SUCCESSFUL_REFERENCES = 2; export declare const MAX_ATTEMPTS = 3; export declare function constructAggregatorPrompt(query: string, responses: ModelResponse[]): string; export declare function runReferenceModel(model: string, query: string, temperature: number, maxTokens: number): Promise; export declare function runAggregator(prompt: string, model: string, temperature: number, maxTokens: number): Promise; export declare function mixtureOfAgents(opts: MoAOptions): Promise; export declare function getMoAConfiguration(): MoAConfiguration; export declare function checkMoARequirements(): { ok: boolean; error?: string; }; export declare const mixtureOfAgentsTool: ToolDefinition; //# sourceMappingURL=mixture-of-agents.d.ts.map