import { GoalManager } from '../goals/GoalManager'; import { MemorySystem } from '../memory/MemorySystem'; import { ConfigService } from '../services/config'; import { ToolService } from '../services/tools'; import { AIModel, Config, Goal, GoalStatus, Memory, SystemResponse } from '../types'; export interface Plugin { getTools(): any[]; getName(): string; } /** * AISystem作为核心协调类,负责整合和管理各个子系统 */ export declare class AISystem { private memory; private goals; private model; private logger; private performance; private requestTimeoutMs; private config; private storageFactory; private conversation; private pluginManager; private responseProcessor; private promptBuilder; constructor(config: Config, model: AIModel, plugins?: Plugin[]); initialize(): Promise; getGoalManager(): GoalManager; getMemorySystem(): MemorySystem; processInput(input: string): Promise; /** * 添加超时机制的Promise包装 */ private withTimeout; addMemory(content: string, metadata?: Record): Promise; searchMemories(query: string, limit?: number): Promise; getAllMemories(): Promise; deleteMemory(id: string): Promise; clearMemories(): Promise; addGoal(goal: Omit): Promise; getGoal(id: string): Promise; getActiveGoals(): Promise; updateGoalStatus(goalId: string, status: GoalStatus): Promise; updateGoalProgress(goalId: string, progress: number): Promise; clearGoals(): Promise; getAllGoals(): Promise; deleteGoal(id: string): Promise; clearCurrentConversation(): Promise; getToolService(): ToolService; getConfigService(): ConfigService; }