yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
agent_knowledge_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_AGENT_PANELS_AGENT_KNOWLEDGE_PANEL_H_
2#define YAZE_APP_EDITOR_AGENT_PANELS_AGENT_KNOWLEDGE_PANEL_H_
3
4#include <functional>
5#include <string>
6#include <vector>
7
9
10namespace yaze {
11
12namespace cli {
13namespace agent {
15} // namespace agent
16} // namespace cli
17
18namespace editor {
19
20class ToastManager;
21
33 public:
34 struct Callbacks {
35 std::function<void(const std::string&, const std::string&)> set_preference;
36 std::function<void(const std::string&)> remove_preference;
37 std::function<void()> clear_all_knowledge;
38 std::function<void()> export_knowledge;
39 std::function<void(const std::string&)> import_knowledge;
40 std::function<void()> refresh_knowledge;
41 };
42
44
45 void Draw(AgentUIContext* context,
46 cli::agent::LearnedKnowledgeService* knowledge_service,
47 const Callbacks& callbacks, ToastManager* toast_manager);
48
49 private:
51 const Callbacks& callbacks,
52 ToastManager* toast_manager);
57
58 // UI state
59 char new_pref_key_[128] = {};
60 char new_pref_value_[256] = {};
61 char memory_search_[256] = {};
63};
64
65} // namespace editor
66} // namespace yaze
67
68#endif // YAZE_APP_EDITOR_AGENT_PANELS_AGENT_KNOWLEDGE_PANEL_H_
Manages persistent learned information across agent sessions.
Panel for viewing/editing learned knowledge patterns.
void RenderStatsSection(cli::agent::LearnedKnowledgeService *service)
void RenderPreferencesTab(cli::agent::LearnedKnowledgeService *service, const Callbacks &callbacks, ToastManager *toast_manager)
void RenderPatternsTab(cli::agent::LearnedKnowledgeService *service)
void Draw(AgentUIContext *context, cli::agent::LearnedKnowledgeService *knowledge_service, const Callbacks &callbacks, ToastManager *toast_manager)
void RenderProjectsTab(cli::agent::LearnedKnowledgeService *service)
void RenderMemoriesTab(cli::agent::LearnedKnowledgeService *service)
Unified context for agent UI components.
std::function< void(const std::string &) import_knowledge)
std::function< void(const std::string &) remove_preference)
std::function< void(const std::string &, const std::string &) set_preference)