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"
8
9namespace yaze {
10namespace cli {
11namespace agent {
12
15 if (!path.ok()) {
16 return "";
17 }
18
19 std::ifstream file(*path);
20 if (!file)
21 return "";
22
23 std::ostringstream ss;
24 ss << file.rdbuf();
25 return ss.str();
26}
27
29 switch (mode) {
31 return "agent/system_prompt_v3.txt";
33 return "agent/oracle_of_secrets_guide.txt";
35 return "agent/custom_prompt.txt";
36 }
37 return "";
38}
39
43
45 switch (mode) {
47 return "ALTTP Standard";
49 return "Oracle of Secrets";
51 return "Custom";
52 }
53 return "Unknown";
54}
55
56} // namespace agent
57} // namespace cli
58} // 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)
static absl::StatusOr< std::filesystem::path > FindAsset(const std::string &relative_path)
Find an asset file in multiple standard locations.