import { WorkingMemoryContext } from './context'; import { Observable } from 'rxjs'; import { WorkingMemory } from './modules/working/WorkingMemory'; /** * Manages the active working context of an agent. * This component is responsible for maintaining the agent's current state during a session, * including: * - Current conversation state and history * - Active goals and tasks for the session * - Temporary preferences and settings * - Emotional state and trends * - Topic history and interaction phase * * The context is primarily stored in WorkingMemory and is designed to be temporary, * lasting only for the duration of a session. When a session ends, the context can * be cleared and only relevant information will be persisted to long-term memory * through the AgentMemorySystem. */ export declare class WorkingContextManager { private contextCache; private currentContext; private contextChanges$; private emotionalContext; private workingMemory; constructor(workingMemory: WorkingMemory); getContextChanges(): Observable; getCurrentContext(): WorkingMemoryContext; setContext(key: string, value: any): Promise; onContextChange(listener: (context: WorkingMemoryContext) => void): void; /** * Set a context value with timestamp */ setContextWithTimestamp(key: string, value: { content: any; timestamp: Date; }): Promise; /** * Update the current context based on cache */ private updateCurrentContext; /** * Initialize context manager */ initialize(): void; /** * Clean up resources */ dispose(): void; }