@langchain/core
Version:
Core LangChain.js abstractions and schemas
13 lines (11 loc) • 397 B
TypeScript
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