UNPKG

node-llama-cpp

Version:

Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level

10 lines (9 loc) 316 B
export declare class ReplHistory { private readonly _filePath; private _fileContent; private constructor(); add(line: string): Promise<void>; get history(): readonly string[]; private _addItemToHistory; static load(filePath: string, saveAndLoadHistory?: boolean): Promise<ReplHistory>; }