@agentkai/core
Version:
AgentKai核心包,提供AI助手系统的基础功能
24 lines • 1.13 kB
TypeScript
import { StorageProvider } from '../storage';
import { Goal, GoalStatus } from '../types';
export declare class GoalManager {
private goals;
private storage;
private logger;
constructor(storage: StorageProvider);
initialize(): Promise<void>;
addGoal(goal: Omit<Goal, 'id' | 'createdAt' | 'status' | 'progress' | 'updatedAt' | 'completedAt'>): Promise<Goal>;
getGoal(id: string): Promise<Goal | null>;
getActiveGoals(): Promise<Goal[]>;
getAllGoals(): Promise<Goal[]>;
updateGoalStatus(goalId: string, status: GoalStatus): Promise<void>;
updateGoalProgress(goalId: string, progress: number): Promise<void>;
clearGoals(): Promise<void>;
activateGoal(goalId: string): Promise<void>;
deactivateGoal(goalId: string): Promise<void>;
deleteGoal(id: string): Promise<boolean>;
updateGoal(id: string, updates: Partial<Goal>): Promise<Goal | null>;
addDependency(childId: string, parentId: string): Promise<boolean>;
private wouldCreateCircularDependency;
balanceActiveGoals(maxActiveGoals?: number): Promise<void>;
}
//# sourceMappingURL=GoalManager.d.ts.map