yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
prompt_manager.cc
Go to the documentation of this file.
2
3#include <fstream>
4#include <sstream>
5
6#include "util/file_util.h"
7
8namespace yaze {
9namespace cli {
10namespace agent {
11
13 std::string path = GetPromptPath(mode);
14 std::ifstream file(path);
15 if (!file)
16 return "";
17
18 std::ostringstream ss;
19 ss << file.rdbuf();
20 return ss.str();
21}
22
24 switch (mode) {
26 return "assets/agent/system_prompt_v3.txt";
28 return "assets/agent/oracle_of_secrets_guide.txt";
30 return "assets/agent/custom_prompt.txt";
31 }
32 return "";
33}
34
38
40 switch (mode) {
42 return "ALTTP Standard";
44 return "Oracle of Secrets";
46 return "Custom";
47 }
48 return "Unknown";
49}
50
51} // namespace agent
52} // namespace cli
53} // namespace yaze
static std::string LoadPrompt(PromptMode mode)
static std::vector< PromptMode > GetAvailableModes()
static const char * ModeToString(PromptMode mode)
static std::string GetPromptPath(PromptMode mode)