This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/node-llama-cpp/dist/evaluator/LlamaGrammarEvaluationState.d.ts
T

20 lines
844 B
TypeScript

import type { LlamaGrammar } from "./LlamaGrammar.js";
import type { LlamaModel } from "./LlamaModel/LlamaModel.js";
export type LlamaGrammarEvaluationStateOptions = {
model: LlamaModel;
grammar: LlamaGrammar;
};
/**
* Grammar evaluation state is used to track the model response to determine the next allowed characters for the model to generate.
*
* Create a new grammar evaluation state for every response you generate with the model.
*
* This is only needed when using the `LlamaContext` class directly, since `LlamaChatSession` already handles this for you.
*/
export declare class LlamaGrammarEvaluationState {
constructor(options: LlamaGrammarEvaluationStateOptions);
constructor(existingState: LlamaGrammarEvaluationState);
/** Clone the grammar evaluation state */
clone(): LlamaGrammarEvaluationState;
}