langchain
Version:
Typescript bindings for langchain
13 lines (12 loc) • 512 B
TypeScript
import { Serializable } from "@langchain/core/load/serializable";
/**
* Base class for all entity stores. All entity stores should extend this
* class.
*/
export declare abstract class BaseEntityStore extends Serializable {
abstract get(key: string, defaultValue?: string): Promise<string | undefined>;
abstract set(key: string, value?: string): Promise<void>;
abstract delete(key: string): Promise<void>;
abstract exists(key: string): Promise<boolean>;
abstract clear(): Promise<void>;
}