Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import { EventEmitter } from 'events';
import { OperationMode } from '../types/OperationMode';
import { Task, TaskResult } from '../types/Task';
import { SystemEvent } from '../types/SystemEvent';
import { AgentStatus } from '../types/Agent';
export interface IOrchestratorConfig {
apiKey: string;
model: string;
maxTokens: number;
memoryPath: string;
}
export interface IOrchestratorManager extends EventEmitter {
// Initialization
initialize(config: IOrchestratorConfig): Promise<void>;
isInitialized(): boolean;
// Mode management
switchMode(mode: OperationMode): Promise<void>;
getCurrentMode(): OperationMode;
// Task execution
executeTask(task: Task): Promise<TaskResult>;
processMessage(message: string, mode: OperationMode): Promise<void>;
stopExecution(): Promise<void>;
// Agent management
getActiveAgents(): AgentStatus[];
// Event handling
subscribeToEvents(handler: (event: SystemEvent) => void): () => void;
// Lifecycle
dispose(): void;
} |