@langchain/community
Version:
Third-party integrations for LangChain.js
21 lines (20 loc) • 707 B
TypeScript
import { ListKeyOptions, RecordManager, UpdateOptions } from "@langchain/core/indexing";
//#region src/indexes/memory.d.ts
interface MemoryRecord {
updatedAt: number;
groupId: string | null;
}
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>;
}
//#endregion
export { InMemoryRecordManager };
//# sourceMappingURL=memory.d.ts.map