import { IMemoryEventHandler, MemoryEvent, MemoryEventType } from './events'; /** * Abstract base class for memory event handlers that use LLM inference * to process memory events and generate appropriate responses. */ export declare abstract class AbstractMemoryEventInferHandler implements IMemoryEventHandler { /** * Handle a memory event by extracting relevant data, prompting LLM, * and processing the response. */ onEvent(event: MemoryEvent): Promise; /** * Get the list of event types this handler can process */ canHandleEventTypes(): MemoryEventType[]; /** * Extract data from memory event to create a prompt for LLM */ private extractPromptData; /** * Send a prompt to the LLM and get its response * @param prompt The prompt to send to the LLM * @returns Promise resolving to the LLM's response */ protected abstract promptLLM(prompt: string): Promise; /** * Process the LLM's response in the context of the original event * @param response The LLM's response string * @param originalEvent The original memory event that triggered this processing */ protected abstract processMemory(response: string, originalEvent: MemoryEvent): Promise; }