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 <string>
5#include <vector>
6#include <memory>
7#include "absl/status/statusor.h"
8
9namespace yaze {
10class Rom;
11
12namespace cli {
13namespace agent {
14
24 public:
25 struct RouteContext {
27 std::string user_intent;
28 std::vector<std::string> tool_calls_made;
30 };
31
33 std::string summary; // High-level answer
34 std::string detailed_data; // Raw data for agent processing
35 std::string next_steps; // Suggested follow-up actions
36 std::vector<std::string> gui_actions; // For test harness
37 bool needs_approval; // For proposals
38 };
39
44 const std::vector<uint8_t>& data,
45 uint32_t address,
46 const RouteContext& ctx);
47
52 const std::string& edit_intent,
53 const RouteContext& ctx);
54
59 const std::vector<uint16_t>& colors,
60 const RouteContext& ctx);
61
66 const std::vector<std::string>& tool_results,
67 const RouteContext& ctx);
68
72 static std::string GenerateGUIScript(
73 const std::vector<std::string>& actions);
74
75 private:
76 static std::string InferDataType(const std::vector<uint8_t>& data);
77 static std::vector<std::string> ExtractPatterns(const std::vector<uint8_t>& data);
78 static std::string FormatForAgent(const std::string& raw_data);
79};
80
81} // namespace agent
82} // namespace cli
83} // namespace yaze
84
85#endif // YAZE_CLI_SERVICE_AGENT_ADVANCED_ROUTING_H_
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:71
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)
Main namespace for the application.