2 #ifndef _NNDEPLOY_LLM_LLM_OUT_H_
3 #define _NNDEPLOY_LLM_LLM_OUT_H_
23 #include "nndeploy/tokenizer/tokenizer_cpp/tokenizer_cpp.h"
30 LlmOut(
const std::string& name, std::vector<dag::Edge*> inputs,
31 std::vector<dag::Edge*> outputs)
32 : Node(name, inputs, outputs) {
33 key_ =
"nndeploy::llm::LlmOut";
34 desc_ =
"Print TokenizerText content and save to temporary output file.";
35 this->setInputTypeInfo<tokenizer::TokenizerText>();
43 rapidjson::Document::AllocatorType& allocator);
46 void set_path(std::string path) { path_ = path; }
49 std::string path_ =
"resources/others/llm_out.txt";
virtual base::Status run()
Run node (pure virtual function)
virtual base::Status deserialize(rapidjson::Value &json)
Deserialize from JSON.
LlmOut(const std::string &name, std::vector< dag::Edge * > inputs, std::vector< dag::Edge * > outputs)
virtual base::Status serialize(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator)
Serialize to JSON.
void set_path(std::string path)
#define NNDEPLOY_CC_API
api