import { BaseMessage } from "../schema/index.js"; export type InputValues = Record; export type OutputValues = Record; export type MemoryVariables = Record; export declare abstract class BaseMemory { abstract get memoryKeys(): string[]; abstract loadMemoryVariables(values: InputValues): Promise; abstract saveContext(inputValues: InputValues, outputValues: OutputValues): Promise; } /** * This function is used by memory classes to select the input value * to use for the memory. If there is only one input value, it is used. * If there are multiple input values, the inputKey must be specified. */ export declare const getInputValue: (inputValues: InputValues, inputKey?: string) => any; /** * This function is used by memory classes to select the output value * to use for the memory. If there is only one output value, it is used. * If there are multiple output values, the outputKey must be specified. * If no outputKey is specified, an error is thrown. */ export declare const getOutputValue: (outputValues: OutputValues, outputKey?: string) => any; /** * This function is used by memory classes to get a string representation * of the chat message history, based on the message content and role. */ export declare function getBufferString(messages: BaseMessage[], humanPrefix?: string, aiPrefix?: string): string; export declare function getPromptInputKey(inputs: Record, memoryVariables: string[]): string;