yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
simple_chat_command.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_AGENT_SIMPLE_CHAT_COMMAND_H_
2#define YAZE_CLI_HANDLERS_AGENT_SIMPLE_CHAT_COMMAND_H_
3
5
6namespace yaze {
7namespace cli {
8namespace handlers {
9
11 public:
12 std::string GetName() const { return "simple-chat"; }
13 std::string GetDescription() const {
14 return "Simple text-based chat with the AI agent.";
15 }
16 std::string GetUsage() const override {
17 return "simple-chat [--prompt <message>] [--file <path>] [--format "
18 "<format>]";
19 }
20
21 protected:
22 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override {
23 return absl::OkStatus();
24 }
25
26 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
27 resources::OutputFormatter& formatter) override;
28};
29
30} // namespace handlers
31} // namespace cli
32} // namespace yaze
33
34#endif // YAZE_CLI_HANDLERS_AGENT_SIMPLE_CHAT_COMMAND_H_
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:24
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetUsage() const override
Get the command usage string.
std::string GetName() const
Get the command name.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.