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#include <fstream>
3#include <sstream>
4#include "util/file_util.h"
5
6namespace yaze {
7namespace cli {
8namespace agent {
9
11 std::string path = GetPromptPath(mode);
12 std::ifstream file(path);
13 if (!file) return "";
14
15 std::ostringstream ss;
16 ss << file.rdbuf();
17 return ss.str();
18}
19
21 switch (mode) {
23 return "assets/agent/system_prompt_v3.txt";
25 return "assets/agent/oracle_of_secrets_guide.txt";
27 return "assets/agent/custom_prompt.txt";
28 }
29 return "";
30}
31
35
37 switch (mode) {
38 case PromptMode::kStandard: return "ALTTP Standard";
39 case PromptMode::kOracleOfSecrets: return "Oracle of Secrets";
40 case PromptMode::kCustom: return "Custom";
41 }
42 return "Unknown";
43}
44
45} // namespace agent
46} // namespace cli
47} // 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)
Main namespace for the application.