yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tool_dispatcher.h
Go to the documentation of this file.
1#ifndef YAZE_SRC_CLI_SERVICE_AGENT_TOOL_DISPATCHER_H_
2#define YAZE_SRC_CLI_SERVICE_AGENT_TOOL_DISPATCHER_H_
3
4#include <string>
5#include "absl/status/statusor.h"
7
8namespace yaze {
9
10class Rom;
11
12namespace cli {
13namespace agent {
14
67
69 public:
70 ToolDispatcher() = default;
71
72 // Execute a tool call and return the result as a string.
73 absl::StatusOr<std::string> Dispatch(const ToolCall& tool_call);
74 // Provide a ROM context for tool calls that require ROM access.
75 void SetRomContext(Rom* rom) { rom_context_ = rom; }
76
77 private:
78 Rom* rom_context_ = nullptr;
79};
80
81} // namespace agent
82} // namespace cli
83} // namespace yaze
84
85#endif // YAZE_SRC_CLI_SERVICE_AGENT_TOOL_DISPATCHER_H_
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:71
absl::StatusOr< std::string > Dispatch(const ToolCall &tool_call)
Main namespace for the application.