1#ifndef YAZE_CLI_SERVICE_AI_AI_ACTION_PARSER_H_
2#define YAZE_CLI_SERVICE_AI_AI_ACTION_PARSER_H_
8#include "absl/status/statusor.h"
60 static absl::StatusOr<std::vector<AIAction>>
ParseCommand(
61 const std::string& command);
75 std::map<std::string, std::string>* params);
77 std::map<std::string, std::string>* params);
79 std::map<std::string, std::string>* params);
Parses natural language commands into structured GUI actions.
static std::map< std::string, std::string > ExtractParameters(const std::string &command, AIActionType type)
static absl::StatusOr< std::vector< AIAction > > ParseCommand(const std::string &command)
static bool MatchesSelectTilePattern(const std::string &command, std::map< std::string, std::string > *params)
static AIActionType ParseActionType(const std::string &verb)
static bool MatchesPlaceTilePattern(const std::string &command, std::map< std::string, std::string > *params)
static bool MatchesOpenEditorPattern(const std::string &command, std::map< std::string, std::string > *params)
static std::string ActionToString(const AIAction &action)
AIActionType
Types of actions the AI can request.
Main namespace for the application.
Represents a single action to be performed in the GUI.
AIAction(AIActionType t, const std::map< std::string, std::string > ¶ms)
std::map< std::string, std::string > parameters