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

11 lines (10 loc) 554 B
import { GbnfGrammarGenerator } from "./GbnfGrammarGenerator.js"; export declare abstract class GbnfTerminal { private _ruleName; /** To be used only by `getRuleName` */ protected generateRuleName(grammarGenerator: GbnfGrammarGenerator): string; protected getRuleName(grammarGenerator: GbnfGrammarGenerator): string; abstract getGrammar(grammarGenerator: GbnfGrammarGenerator): string; protected getGrammarFromResolve(grammarGenerator: GbnfGrammarGenerator): string; resolve(grammarGenerator: GbnfGrammarGenerator): string; }