-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.hpp
More file actions
27 lines (23 loc) · 882 Bytes
/
plugin.hpp
File metadata and controls
27 lines (23 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include "illixr/data_format/string_data.hpp"
#include "illixr/phonebook.hpp"
#include "illixr/plugin.hpp"
#include "illixr/switchboard.hpp"
#include "illixr/record_logger.hpp"
#include <string>
namespace ILLIXR {
class llama_cli : public plugin {
public:
[[maybe_unused]] llama_cli(const std::string& name, phonebook* pb);
void start() override;
~llama_cli() override = default;
private:
const std::shared_ptr<switchboard> switchboard_;
switchboard::reader<data_format::string_data> text_reader_;
switchboard::buffered_reader<data_format::string_data> reader_;
switchboard::writer<data_format::string_data> response_publisher_;
std::string prompt_scene_desc;
std::shared_ptr<ILLIXR::record_logger> record_logger_;
// switchboard::reader<data_format::string_data> response_reader_;
};
} // namespace ILLIXR