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

13 lines (12 loc) 450 B
import { GbnfTerminal } from "../GbnfTerminal.js"; import { GbnfGrammarGenerator } from "../GbnfGrammarGenerator.js"; export declare class GbnfString extends GbnfTerminal { readonly minLength: number; readonly maxLength?: number; constructor({ minLength, maxLength }?: { minLength?: number; maxLength?: number; }); getGrammar(grammarGenerator: GbnfGrammarGenerator): string; protected getRuleName(): string; }