/** * brain-memory - OpenClaw Plugin Handler * * Implements the OpenClaw plugin interface to integrate brain-memory functionality: * 1. Hooks into message processing to extract knowledge * 2. Maintains session-specific memory contexts * 3. Injects relevant memories into conversations */ import type { BmConfig } from '../types'; export interface BrainMemoryPluginConfig extends BmConfig { enabled?: boolean; injectMemories?: boolean; extractMemories?: boolean; autoMaintain?: boolean; maxRecallNodes?: number; } export declare class BrainMemoryHandler { private engine; private config; constructor(config: BrainMemoryPluginConfig); initialize(): Promise; handleSessionStart(sessionId: string, agentId?: string, workspaceId?: string): Promise; handleSessionEnd(sessionId: string, agentId?: string, workspaceId?: string, messages?: Array<{ role: string; content: string; }>): Promise; handleMessage(content: string, sessionId: string, agentId?: string, workspaceId?: string, role?: string, turnIndex?: number): Promise; getMemoryContext(query: string, sessionId?: string, agentId?: string, workspaceId?: string): Promise; private formatMemoryContext; getStatus(): Promise>; shutdown(): Promise; } //# sourceMappingURL=handler.d.ts.map