First upload version 0.0.1
This commit is contained in:
22
node_modules/node-llama-cpp/llama/addon/AddonGrammar.h
generated
vendored
Normal file
22
node_modules/node-llama-cpp/llama/addon/AddonGrammar.h
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "llama.h"
|
||||
#include "common/common.h"
|
||||
#include "llama-grammar.h"
|
||||
#include "src/unicode.h"
|
||||
#include "napi.h"
|
||||
#include "addonGlobals.h"
|
||||
|
||||
class AddonGrammar : public Napi::ObjectWrap<AddonGrammar> {
|
||||
public:
|
||||
std::string grammarCode = "";
|
||||
std::string rootRuleName = "root";
|
||||
Napi::Reference<Napi::Object> addonExportsRef;
|
||||
bool hasAddonExportsRef = false;
|
||||
|
||||
AddonGrammar(const Napi::CallbackInfo& info);
|
||||
~AddonGrammar();
|
||||
|
||||
Napi::Value isTextCompatible(const Napi::CallbackInfo& info);
|
||||
|
||||
static void init(Napi::Object exports);
|
||||
};
|
||||
Reference in New Issue
Block a user