/** * Discriminative routing-pattern learner (#2839). * * Outcomes are labelled by the agent that actually completed the task. The * previous implementation collapsed every successful task for an agent into * one insertion-ordered Set and kept the first 50 words forever. This module * ranks terms by within-agent support, cross-agent rarity, outcome quality, * and discriminative share. Generic terms therefore lose to stable, * agent-specific evidence, and later outcomes can replace earlier noise. */ export interface LearnedRoutingOutcome { task: string; agent: string; success: boolean; quality: number; keywords: string[]; timestamp: string; } export interface LearnedRoutingPattern { keywords: string[]; agents: string[]; source: 'learned'; support: number; reliability: number; } export interface LearnedRoutingOptions { maxKeywords?: number; minAgentOutcomes?: number; minKeywordSupport?: number; minOutcomeQuality?: number; minDiscriminativeShare?: number; } export declare function buildLearnedRoutingPatterns(outcomes: LearnedRoutingOutcome[], options?: LearnedRoutingOptions): Record; //# sourceMappingURL=learned-routing.d.ts.map