yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
agent_editor_panels.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_AGENT_PANELS_AGENT_EDITOR_PANELS_H_
2#define YAZE_APP_EDITOR_AGENT_PANELS_AGENT_EDITOR_PANELS_H_
3
4#include <functional>
5#include <string>
6
9
10namespace yaze {
11namespace editor {
12
13// Forward declaration
14class AgentChat;
15
16// =============================================================================
17// EditorPanel wrappers for AgentEditor panels
18// Each panel uses a callback to delegate drawing to AgentEditor methods
19// =============================================================================
20
24class AgentConfigurationPanel : public EditorPanel {
25 public:
26 using DrawCallback = std::function<void()>;
27
28 explicit AgentConfigurationPanel(DrawCallback draw_callback)
29 : draw_callback_(std::move(draw_callback)) {}
30
31 std::string GetId() const override { return "agent.configuration"; }
32 std::string GetDisplayName() const override { return "AI Configuration"; }
33 std::string GetIcon() const override { return ICON_MD_SETTINGS; }
34 std::string GetEditorCategory() const override { return "Agent"; }
35 int GetPriority() const override { return 10; }
36
37 void Draw(bool* p_open) override {
38 if (draw_callback_) {
40 }
41 }
42
43 private:
45};
46
51 public:
52 using DrawCallback = std::function<void()>;
53
54 explicit AgentStatusPanel(DrawCallback draw_callback)
55 : draw_callback_(std::move(draw_callback)) {}
56
57 std::string GetId() const override { return "agent.status"; }
58 std::string GetDisplayName() const override { return "Agent Status"; }
59 std::string GetIcon() const override { return ICON_MD_INFO; }
60 std::string GetEditorCategory() const override { return "Agent"; }
61 int GetPriority() const override { return 20; }
62
63 void Draw(bool* p_open) override {
64 if (draw_callback_) {
66 }
67 }
68
69 private:
71};
72
77 public:
78 using DrawCallback = std::function<void()>;
79
80 explicit AgentPromptEditorPanel(DrawCallback draw_callback)
81 : draw_callback_(std::move(draw_callback)) {}
82
83 std::string GetId() const override { return "agent.prompt_editor"; }
84 std::string GetDisplayName() const override { return "Prompt Editor"; }
85 std::string GetIcon() const override { return ICON_MD_EDIT; }
86 std::string GetEditorCategory() const override { return "Agent"; }
87 int GetPriority() const override { return 30; }
88
89 void Draw(bool* p_open) override {
90 if (draw_callback_) {
92 }
93 }
94
95 private:
97};
98
103 public:
104 using DrawCallback = std::function<void()>;
105
106 explicit AgentBotProfilesPanel(DrawCallback draw_callback)
107 : draw_callback_(std::move(draw_callback)) {}
108
109 std::string GetId() const override { return "agent.profiles"; }
110 std::string GetDisplayName() const override { return "Bot Profiles"; }
111 std::string GetIcon() const override { return ICON_MD_FOLDER; }
112 std::string GetEditorCategory() const override { return "Agent"; }
113 int GetPriority() const override { return 40; }
114
115 void Draw(bool* p_open) override {
116 if (draw_callback_) {
118 }
119 }
120
121 private:
123};
124
129 public:
130 using DrawCallback = std::function<void()>;
131
132 explicit AgentChatHistoryPanel(DrawCallback draw_callback)
133 : draw_callback_(std::move(draw_callback)) {}
134
135 std::string GetId() const override { return "agent.history"; }
136 std::string GetDisplayName() const override { return "Chat History"; }
137 std::string GetIcon() const override { return ICON_MD_HISTORY; }
138 std::string GetEditorCategory() const override { return "Agent"; }
139 int GetPriority() const override { return 50; }
140
141 void Draw(bool* p_open) override {
142 if (draw_callback_) {
144 }
145 }
146
147 private:
149};
150
155 public:
156 using DrawCallback = std::function<void()>;
157
159 : draw_callback_(std::move(draw_callback)) {}
160
161 std::string GetId() const override { return "agent.metrics"; }
162 std::string GetDisplayName() const override { return "Metrics Dashboard"; }
163 std::string GetIcon() const override { return ICON_MD_ANALYTICS; }
164 std::string GetEditorCategory() const override { return "Agent"; }
165 int GetPriority() const override { return 60; }
166
167 void Draw(bool* p_open) override {
168 if (draw_callback_) {
170 }
171 }
172
173 private:
175};
176
181 public:
182 using DrawCallback = std::function<void()>;
183
184 explicit AgentBuilderPanel(DrawCallback draw_callback)
185 : draw_callback_(std::move(draw_callback)) {}
186
187 std::string GetId() const override { return "agent.builder"; }
188 std::string GetDisplayName() const override { return "Agent Builder"; }
189 std::string GetIcon() const override { return ICON_MD_AUTO_FIX_HIGH; }
190 std::string GetEditorCategory() const override { return "Agent"; }
191 int GetPriority() const override { return 70; }
192
193 void Draw(bool* p_open) override {
194 if (draw_callback_) {
196 }
197 }
198
199 private:
201};
202
210 public:
211 using DrawCallback = std::function<void()>;
212
213 explicit AgentKnowledgeBasePanel(DrawCallback draw_callback)
214 : draw_callback_(std::move(draw_callback)) {}
215
216 std::string GetId() const override { return "agent.knowledge"; }
217 std::string GetDisplayName() const override { return "Knowledge Base"; }
218 std::string GetIcon() const override { return ICON_MD_PSYCHOLOGY; }
219 std::string GetEditorCategory() const override { return "Agent"; }
220 int GetPriority() const override { return 25; } // Between Status and Prompt
221
222 void Draw(bool* p_open) override {
223 if (draw_callback_) {
225 }
226 }
227
228 private:
230};
231
236 public:
237 explicit AgentChatPanel(AgentChat* chat)
238 : chat_(chat) {}
239
240 std::string GetId() const override { return "agent.chat"; }
241 std::string GetDisplayName() const override { return "Agent Chat"; }
242 std::string GetIcon() const override { return ICON_MD_CHAT; }
243 std::string GetEditorCategory() const override { return "Agent"; }
244 int GetPriority() const override { return 5; }
245
246 void Draw(bool* p_open) override;
247
248 private:
250};
251
252} // namespace editor
253} // namespace yaze
254
255#endif // YAZE_APP_EDITOR_AGENT_PANELS_AGENT_EDITOR_PANELS_H_
EditorPanel for Bot Profiles panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetId() const override
Unique identifier for this panel.
int GetPriority() const override
Get display priority for menu ordering.
AgentBotProfilesPanel(DrawCallback draw_callback)
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
void Draw(bool *p_open) override
Draw the panel content.
EditorPanel for Agent Builder panel.
AgentBuilderPanel(DrawCallback draw_callback)
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
std::string GetIcon() const override
Material Design icon for this panel.
int GetPriority() const override
Get display priority for menu ordering.
EditorPanel for Chat History panel.
AgentChatHistoryPanel(DrawCallback draw_callback)
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetId() const override
Unique identifier for this panel.
EditorPanel for Agent Chat panel.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetId() const override
Unique identifier for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
void Draw(bool *p_open) override
Draw the panel content.
Unified Agent Chat Component.
Definition agent_chat.h:31
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
AgentConfigurationPanel(DrawCallback draw_callback)
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
int GetPriority() const override
Get display priority for menu ordering.
EditorPanel for Knowledge Base panel.
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetIcon() const override
Material Design icon for this panel.
AgentKnowledgeBasePanel(DrawCallback draw_callback)
std::string GetId() const override
Unique identifier for this panel.
EditorPanel for Metrics Dashboard panel.
std::string GetId() const override
Unique identifier for this panel.
std::string GetIcon() const override
Material Design icon for this panel.
AgentMetricsDashboardPanel(DrawCallback draw_callback)
void Draw(bool *p_open) override
Draw the panel content.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
EditorPanel for Prompt Editor panel.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetId() const override
Unique identifier for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
AgentPromptEditorPanel(DrawCallback draw_callback)
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
EditorPanel for Agent Status panel.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetIcon() const override
Material Design icon for this panel.
std::function< void()> DrawCallback
AgentStatusPanel(DrawCallback draw_callback)
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Base interface for all logical panel components.
#define ICON_MD_SETTINGS
Definition icons.h:1699
#define ICON_MD_INFO
Definition icons.h:993
#define ICON_MD_CHAT
Definition icons.h:394
#define ICON_MD_EDIT
Definition icons.h:645
#define ICON_MD_AUTO_FIX_HIGH
Definition icons.h:218
#define ICON_MD_PSYCHOLOGY
Definition icons.h:1523
#define ICON_MD_FOLDER
Definition icons.h:809
#define ICON_MD_ANALYTICS
Definition icons.h:154
#define ICON_MD_HISTORY
Definition icons.h:946