UNPKG

@langchain/core

Version:
13 lines (11 loc) 397 B
import { sha256 } from "./js-sha256/hash.js"; //#region src/utils/hash.d.ts /** * A function type for encoding hash keys. * Accepts any number of string arguments (such as prompt and LLM key) * and returns a single string to be used as the hash key. */ type HashKeyEncoder = (...strings: string[]) => string; //#endregion export { HashKeyEncoder, sha256 }; //# sourceMappingURL=hash.d.ts.map