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) 441 B
import { GbnfTerminal } from "../GbnfTerminal.js"; import { GbnfGrammarGenerator } from "../GbnfGrammarGenerator.js"; import { GbnfJsonScopeState } from "../utils/GbnfJsonScopeState.js"; export declare class GbnfAnyJson extends GbnfTerminal { readonly scopeState: GbnfJsonScopeState; constructor(scopeState?: GbnfJsonScopeState); getGrammar(grammarGenerator: GbnfGrammarGenerator): string; protected getRuleName(): string; }