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 { return "Simple text-based chat with the AI agent."; }
14 std::string GetUsage() const override {
15 return "simple-chat [--prompt <message>] [--file <path>] [--format <format>]";
16 }
17
18 protected:
19 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override {
20 return absl::OkStatus();
21 }
22
23 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
24 resources::OutputFormatter& formatter) override;
25};
26
27} // namespace handlers
28} // namespace cli
29} // namespace yaze
30
31#endif // YAZE_CLI_HANDLERS_AGENT_SIMPLE_CHAT_COMMAND_H_
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:74
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.
Main namespace for the application.
Definition controller.cc:20