/** * Orchestrator Agent * Single agent with tool-use capabilities that maintains journey memory and executes scenarios */ import { LLMFacade } from '../llm-facade'; import { ProgressReporter, DebugStats } from '../progress-reporter'; import { ToolRegistry } from './tool-registry'; import { AgentConfig, JourneyMemory, SiteLearnings, OrchestratorStepResult, ExplorationMode } from './types'; import { PageSoMHandler } from './page-som-handler'; /** * Orchestrator Agent - manages step execution with tool use and memory */ export declare class OrchestratorAgent { private llmFacade; private toolRegistry; private progressReporter?; private config; private logger?; private debugMode; private decisionParser; private somHandler?; private previousSomScreenshot?; private debugStats; constructor(llmFacade: LLMFacade, toolRegistry: ToolRegistry, config?: Partial, progressReporter?: ProgressReporter, logger?: (message: string, level?: 'log' | 'error' | 'warn' | 'debug') => void, debugMode?: boolean); setDebugMode(enabled: boolean): void; /** * Get the SOM handler for external access (e.g., journey-runner for bug artifact analysis) */ getSomHandler(): PageSoMHandler | undefined; /** * Execute a single step of the scenario */ executeStep(page: any, stepDescription: string, stepNumber: number, totalSteps: number, scenarioSteps: string[], memory: JourneyMemory, jobId: string, priorSteps?: string[], // For repair mode: completed steps before this one nextSteps?: string[], // For repair mode: steps after this one successfulCommandsInStep?: string[], // For repair mode: commands that succeeded within THIS step failingCommand?: string, // For repair mode: the specific command that failed remainingCommandsInStep?: string[], // For repair mode: commands after the failing one existingSiteLearnings?: SiteLearnings): Promise; /** * Build context for agent */ private buildAgentContext; /** * Call agent to make decision */ private callAgent; /** * Execute tools */ private executeTools; /** * Parse SomCommand from command object */ private parseSomCommand; /** * Execute commands (mix of ref and playwright commands) */ private executeCommands; /** * Report step progress */ private reportStepProgress; /** * Execute exploration mode - agent autonomously explores to achieve journey goal * Fires onStepProgress callbacks for each autonomous action (transparent to caller) */ executeExploration(page: any, explorationConfig: ExplorationMode, jobId: string, existingSiteLearnings?: SiteLearnings): Promise; private buildExploratoryContext; private callExploratoryAgent; /** * Get accumulated debug statistics */ getDebugStats(): DebugStats; } //# sourceMappingURL=orchestrator-agent.d.ts.map