/** * Dynamic Agent Resolver Service * * Main orchestration service for intelligent agent selection. * Coordinates task classification, context analysis, and capability matching * to automatically select the most appropriate agent for a given task. */ import type { AgentScore, AgentSelection, CodebaseContext, TaskClassification, TaskContext } from '../types/agent.types.js'; import type { AgentCapabilityMatcherService } from './agent-capability-matcher.service.js'; import type { AgentCapabilityRegistryService } from './agent-capability-registry.service.js'; import type { ContextAnalyzerService } from './context-analyzer.service.js'; import type { TaskClassifierService } from './task-classifier.service.js'; export declare class DynamicAgentResolverService { private readonly capabilityMatcher; private readonly contextAnalyzer; private readonly HIGH_CONFIDENCE_THRESHOLD; private readonly logger; private readonly MIN_CONFIDENCE_THRESHOLD; private readonly registryService; private readonly taskClassifier; constructor(taskClassifier: TaskClassifierService, contextAnalyzer: ContextAnalyzerService, capabilityMatcher: AgentCapabilityMatcherService, registryService: AgentCapabilityRegistryService); /** * Resolve the best agent for a given task context */ resolveAgent(taskContext: TaskContext): Promise; /** * Select the optimal agent based on scoring results and business logic */ private selectOptimalAgent; /** * Create a standard agent selection result */ private createSelection; /** * Create a fallback selection when automatic resolution fails */ private createFallbackSelection; /** * Determine the most appropriate fallback agent based on task context. * Uses registry to find agents dynamically, so new language/framework * agents are automatically considered for fallback. */ private determineFallbackAgent; /** * Detect domain hints from file paths. * Returns domains in priority order (most specific first). */ private detectDomainHintsFromFiles; /** * Get detailed analysis for debugging or transparency */ getDetailedAnalysis(taskContext: TaskContext): Promise<{ agentScores: AgentScore[]; codebaseContext: CodebaseContext; selection: AgentSelection; taskClassification: TaskClassification; }>; /** * Validate that all required services are properly initialized */ validateServices(): Promise<{ issues: string[]; stats: { analyzerCacheSize: number; classifierCacheSize: number; registryAgents: number; registryDomains: number; }; valid: boolean; }>; /** * Clear all caches (useful for development/testing) */ clearCaches(): void; /** * Get performance and usage statistics */ getStats(): { cacheSizes: { contextAnalyzer: number; }; thresholds: { highConfidence: number; minConfidence: number; }; }; } //# sourceMappingURL=dynamic-agent-resolver.service.d.ts.map