/** * Pattern Recognition - Neural pattern analysis and learning * * Identifies patterns in agent behavior, task execution, and system performance * to improve swarm intelligence and coordination effectiveness. */ import { EventEmitter } from 'eventemitter3'; import { Agent, Task, OperationResult } from '../types'; export interface Pattern { id: string; type: PatternType; confidence: number; frequency: number; context: any; triggers: string[]; outcomes: any[]; learnedAt: Date; updatedAt: Date; } export type PatternType = 'task-execution' | 'agent-behavior' | 'performance-trend' | 'error-pattern' | 'coordination-pattern' | 'resource-usage'; export interface PatternAnalysis { patterns: Pattern[]; insights: string[]; recommendations: string[]; confidence: number; timestamp: Date; } export declare class PatternRecognition extends EventEmitter { private patterns; private executionHistory; private maxHistorySize; private minConfidenceThreshold; constructor(); initialize(): Promise; /** * Analyze execution data to identify patterns */ analyzeExecution(task: Task, agents: Agent[], result: any): Promise; private analyzeTaskPatterns; private analyzeAgentBehaviorPatterns; private analyzePerformancePatterns; private analyzeCoordinationPatterns; private groupExecutionsByTaskType; private calculateTrend; private generateInsights; private generateRecommendations; private calculateOverallConfidence; getPatternById(patternId: string): Pattern | undefined; getPatternsByType(type: PatternType): Pattern[]; getAllPatterns(): Pattern[]; shutdown(): Promise; } //# sourceMappingURL=PatternRecognition.d.ts.map