yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
advanced_routing.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_SERVICE_AGENT_ADVANCED_ROUTING_H_
2#define YAZE_CLI_SERVICE_AGENT_ADVANCED_ROUTING_H_
3
4#include <memory>
5#include <string>
6#include <vector>
7
8#include "absl/status/statusor.h"
9
10namespace yaze {
11class Rom;
12
13namespace cli {
14namespace agent {
15
25 public:
26 struct RouteContext {
28 std::string user_intent;
29 std::vector<std::string> tool_calls_made;
31 };
32
34 std::string summary; // High-level answer
35 std::string detailed_data; // Raw data for agent processing
36 std::string next_steps; // Suggested follow-up actions
37 std::vector<std::string> gui_actions; // For test harness
38 bool needs_approval; // For proposals
39 };
40
44 static RoutedResponse RouteHexAnalysis(const std::vector<uint8_t>& data,
45 uint32_t address,
46 const RouteContext& ctx);
47
51 static RoutedResponse RouteMapEdit(const std::string& edit_intent,
52 const RouteContext& ctx);
53
58 const std::vector<uint16_t>& colors, const RouteContext& ctx);
59
64 const std::vector<std::string>& tool_results, const RouteContext& ctx);
65
69 static std::string GenerateGUIScript(const std::vector<std::string>& actions);
70
71 private:
72 static std::string InferDataType(const std::vector<uint8_t>& data);
73 static std::vector<std::string> ExtractPatterns(
74 const std::vector<uint8_t>& data);
75 static std::string FormatForAgent(const std::string& raw_data);
76};
77
78} // namespace agent
79} // namespace cli
80} // namespace yaze
81
82#endif // YAZE_CLI_SERVICE_AGENT_ADVANCED_ROUTING_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
Advanced routing system for agent tool responses.
static std::string FormatForAgent(const std::string &raw_data)
static RoutedResponse RouteHexAnalysis(const std::vector< uint8_t > &data, uint32_t address, const RouteContext &ctx)
Route hex data analysis response.
static RoutedResponse SynthesizeMultiToolResponse(const std::vector< std::string > &tool_results, const RouteContext &ctx)
Synthesize multi-tool response.
static RoutedResponse RoutePaletteAnalysis(const std::vector< uint16_t > &colors, const RouteContext &ctx)
Route palette analysis response.
static std::vector< std::string > ExtractPatterns(const std::vector< uint8_t > &data)
static std::string GenerateGUIScript(const std::vector< std::string > &actions)
Generate GUI automation script.
static RoutedResponse RouteMapEdit(const std::string &edit_intent, const RouteContext &ctx)
Route map editing response.
static std::string InferDataType(const std::vector< uint8_t > &data)