agsamantha/node_modules/@langchain/community/dist/indexes/memory.d.ts
2024-10-02 15:15:21 -05:00

17 lines
614 B
TypeScript

import { ListKeyOptions, RecordManager, UpdateOptions } from "./base.js";
interface MemoryRecord {
updatedAt: number;
groupId: string | null;
}
export declare class InMemoryRecordManager extends RecordManager {
lc_namespace: string[];
records: Map<string, MemoryRecord>;
constructor();
createSchema(): Promise<void>;
getTime(): Promise<number>;
update(keys: string[], updateOptions?: UpdateOptions): Promise<void>;
exists(keys: string[]): Promise<boolean[]>;
listKeys(options?: ListKeyOptions): Promise<string[]>;
deleteKeys(keys: string[]): Promise<void>;
}
export {};