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

17 lines 397 B
import { GbnfTerminal } from "../GbnfTerminal.js"; export class GbnfBooleanValue extends GbnfTerminal { value; constructor(value) { super(); this.value = value; } getGrammar() { if (this.value) return '"true"'; return '"false"'; } resolve() { return this.getGrammar(); } } //# sourceMappingURL=GbnfBooleanValue.js.map