yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::AgentEditor Class Reference

Comprehensive AI Agent Platform & Bot Creator. More...

#include <agent_editor.h>

Inheritance diagram for yaze::editor::AgentEditor:

Classes

struct  AgentBuilderState
 
struct  AgentConfig
 
struct  BotProfile
 
struct  CaptureConfig
 
struct  SessionInfo
 

Public Types

enum class  CollaborationMode { kLocal , kNetwork }
 
using KnowledgePanelCallback = std::function<void()>
 

Public Member Functions

 AgentEditor ()
 
 ~AgentEditor () override
 
void Initialize () override
 
absl::Status Load () override
 
absl::Status Save () override
 
absl::Status Update () override
 
absl::Status Cut () override
 
absl::Status Copy () override
 
absl::Status Paste () override
 
absl::Status Undo () override
 
absl::Status Redo () override
 
absl::Status Find () override
 
void InitializeWithDependencies (ToastManager *toast_manager, ProposalDrawer *proposal_drawer, Rom *rom)
 
void SetRomContext (Rom *rom)
 
void DrawDashboard ()
 
const BotProfileGetCurrentProfile () const
 
BotProfileGetCurrentProfile ()
 
AgentConfig GetCurrentConfig () const
 
void ApplyConfig (const AgentConfig &config)
 
absl::Status SaveBotProfile (const BotProfile &profile)
 
absl::Status LoadBotProfile (const std::string &name)
 
absl::Status DeleteBotProfile (const std::string &name)
 
std::vector< BotProfileGetAllProfiles () const
 
void SetCurrentProfile (const BotProfile &profile)
 
absl::Status ExportProfile (const BotProfile &profile, const std::filesystem::path &path)
 
absl::Status ImportProfile (const std::filesystem::path &path)
 
AgentChatGetAgentChat ()
 
bool IsChatActive () const
 
void SetChatActive (bool active)
 
void ToggleChat ()
 
void OpenChatWindow ()
 
void SetKnowledgePanelCallback (KnowledgePanelCallback callback)
 
absl::StatusOr< SessionInfoHostSession (const std::string &session_name, CollaborationMode mode=CollaborationMode::kLocal)
 
absl::StatusOr< SessionInfoJoinSession (const std::string &session_code, CollaborationMode mode=CollaborationMode::kLocal)
 
absl::Status LeaveSession ()
 
absl::StatusOr< SessionInfoRefreshSession ()
 
absl::Status CaptureSnapshot (std::filesystem::path *output_path, const CaptureConfig &config)
 
absl::Status SendToGemini (const std::filesystem::path &image_path, const std::string &prompt)
 
bool IsInSession () const
 
CollaborationMode GetCurrentMode () const
 
std::optional< SessionInfoGetCurrentSession () const
 
AgentCollaborationCoordinatorGetLocalCoordinator ()
 
- Public Member Functions inherited from yaze::editor::Editor
 Editor ()=default
 
virtual ~Editor ()=default
 
void SetDependencies (const EditorDependencies &deps)
 
virtual void SetGameData (zelda3::GameData *game_data)
 
virtual absl::Status Clear ()
 
EditorType type () const
 
bool * active ()
 
void set_active (bool active)
 
void toggle_active ()
 
virtual bool IsRomLoaded () const
 
virtual std::string GetRomStatus () const
 
Romrom () const
 
zelda3::GameDatagame_data () const
 
EditorContext context () const
 
bool HasContext () const
 

Public Attributes

float pulse_animation_ = 0.0f
 
float scanline_offset_ = 0.0f
 
float glitch_timer_ = 0.0f
 
int blink_counter_ = 0
 

Private Member Functions

void DrawConfigurationPanel ()
 
void DrawStatusPanel ()
 
void DrawMetricsPanel ()
 
void DrawPromptEditorPanel ()
 
void DrawBotProfilesPanel ()
 
void DrawChatHistoryViewer ()
 
void DrawAdvancedMetricsPanel ()
 
void DrawCommonTilesEditor ()
 
void DrawNewPromptCreator ()
 
void DrawAgentBuilderPanel ()
 
void SetupMultimodalCallbacks ()
 
void SetupAutomationCallbacks ()
 
std::filesystem::path GetProfilesDirectory () const
 
absl::Status EnsureProfilesDirectory ()
 
std::string ProfileToJson (const BotProfile &profile) const
 
absl::StatusOr< BotProfileJsonToProfile (const std::string &json) const
 
absl::Status SaveBuilderBlueprint (const std::filesystem::path &path)
 
absl::Status LoadBuilderBlueprint (const std::filesystem::path &path)
 
void RegisterPanels ()
 

Private Attributes

std::unique_ptr< AgentChatagent_chat_
 
std::unique_ptr< AgentCollaborationCoordinatorlocal_coordinator_
 
ToastManagertoast_manager_ = nullptr
 
ProposalDrawerproposal_drawer_ = nullptr
 
Romrom_ = nullptr
 
AgentConfig current_config_
 
BotProfile current_profile_
 
std::vector< BotProfileloaded_profiles_
 
AgentBuilderState builder_state_
 
std::unique_ptr< TextEditorprompt_editor_
 
std::unique_ptr< TextEditorcommon_tiles_editor_
 
bool prompt_editor_initialized_ = false
 
bool common_tiles_initialized_ = false
 
std::string active_prompt_file_ = "system_prompt_v3.txt"
 
char new_prompt_name_ [128] = {}
 
CollaborationMode current_mode_ = CollaborationMode::kLocal
 
bool in_session_ = false
 
std::string current_session_id_
 
std::string current_session_name_
 
std::vector< std::string > current_participants_
 
bool show_advanced_settings_ = false
 
bool show_prompt_editor_ = false
 
bool show_bot_profiles_ = false
 
bool show_chat_history_ = false
 
bool show_metrics_dashboard_ = false
 
int selected_tab_ = 0
 
bool show_config_card_ = true
 
bool show_status_card_ = true
 
bool show_prompt_editor_card_ = false
 
bool show_profiles_card_ = false
 
bool show_history_card_ = false
 
bool show_metrics_card_ = false
 
bool show_builder_card_ = false
 
bool show_chat_card_ = true
 
std::vector< cli::agent::ChatMessagecached_history_
 
bool history_needs_refresh_ = true
 
KnowledgePanelCallback knowledge_panel_callback_
 

Additional Inherited Members

- Protected Member Functions inherited from yaze::editor::Editor
std::string MakePanelTitle (const std::string &base_title) const
 
std::string MakePanelId (const std::string &base_id) const
 
template<typename T >
absl::StatusOr< T > SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const
 
- Protected Attributes inherited from yaze::editor::Editor
bool active_ = false
 
EditorType type_
 
EditorDependencies dependencies_
 

Detailed Description

Comprehensive AI Agent Platform & Bot Creator.

A full-featured bot creation and management platform:

  • Agent provider configuration (Ollama, Gemini, Mock)
  • Model selection and parameters
  • System prompt editing with live syntax highlighting
  • Bot profile management (create, save, load custom bots)
  • Chat history viewer and management
  • Session metrics and analytics dashboard
  • Collaboration settings (Local/Network)
  • Z3ED command automation presets
  • Multimodal/vision configuration
  • Export/Import bot configurations

The chat widget is separate and managed by EditorManager, with a dense/compact mode for focused conversations.

Definition at line 55 of file agent_editor.h.

Member Typedef Documentation

◆ KnowledgePanelCallback

Definition at line 190 of file agent_editor.h.

Member Enumeration Documentation

◆ CollaborationMode

Enumerator
kLocal 
kNetwork 

Definition at line 196 of file agent_editor.h.

Constructor & Destructor Documentation

◆ AgentEditor()

◆ ~AgentEditor()

yaze::editor::AgentEditor::~AgentEditor ( )
overridedefault

Member Function Documentation

◆ Initialize()

◆ Load()

absl::Status yaze::editor::AgentEditor::Load ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 143 of file agent_editor.cc.

References GetProfilesDirectory(), JsonToProfile(), and loaded_profiles_.

Referenced by DeleteBotProfile(), and SaveBotProfile().

Here is the call graph for this function:

◆ Save()

absl::Status yaze::editor::AgentEditor::Save ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 167 of file agent_editor.cc.

References current_profile_, yaze::editor::AgentEditor::BotProfile::modified_at, and SaveBotProfile().

Referenced by DrawConfigurationPanel().

Here is the call graph for this function:

◆ Update()

absl::Status yaze::editor::AgentEditor::Update ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 173 of file agent_editor.cc.

References yaze::editor::Editor::active_, and DrawDashboard().

Here is the call graph for this function:

◆ Cut()

absl::Status yaze::editor::AgentEditor::Cut ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 65 of file agent_editor.h.

◆ Copy()

absl::Status yaze::editor::AgentEditor::Copy ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 68 of file agent_editor.h.

◆ Paste()

absl::Status yaze::editor::AgentEditor::Paste ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 71 of file agent_editor.h.

◆ Undo()

absl::Status yaze::editor::AgentEditor::Undo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 74 of file agent_editor.h.

◆ Redo()

absl::Status yaze::editor::AgentEditor::Redo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 77 of file agent_editor.h.

◆ Find()

absl::Status yaze::editor::AgentEditor::Find ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 80 of file agent_editor.h.

◆ InitializeWithDependencies()

◆ SetRomContext()

void yaze::editor::AgentEditor::SetRomContext ( Rom * rom)

Definition at line 239 of file agent_editor.cc.

References agent_chat_, yaze::editor::Editor::rom(), and rom_.

Here is the call graph for this function:

◆ DrawDashboard()

void yaze::editor::AgentEditor::DrawDashboard ( )

◆ GetCurrentProfile() [1/2]

const BotProfile & yaze::editor::AgentEditor::GetCurrentProfile ( ) const
inline

Definition at line 116 of file agent_editor.h.

References current_profile_.

◆ GetCurrentProfile() [2/2]

BotProfile & yaze::editor::AgentEditor::GetCurrentProfile ( )
inline

Definition at line 117 of file agent_editor.h.

References current_profile_.

◆ GetCurrentConfig()

AgentEditor::AgentConfig yaze::editor::AgentEditor::GetCurrentConfig ( ) const

Definition at line 1563 of file agent_editor.cc.

References current_config_.

◆ ApplyConfig()

◆ SaveBotProfile()

absl::Status yaze::editor::AgentEditor::SaveBotProfile ( const BotProfile & profile)

Definition at line 1312 of file agent_editor.cc.

References EnsureProfilesDirectory(), GetProfilesDirectory(), Load(), yaze::editor::AgentEditor::BotProfile::name, and ProfileToJson().

Referenced by ExportProfile(), ImportProfile(), and Save().

Here is the call graph for this function:

◆ LoadBotProfile()

absl::Status yaze::editor::AgentEditor::LoadBotProfile ( const std::string & name)

Definition at line 1333 of file agent_editor.cc.

References ApplyConfig(), current_config_, current_profile_, yaze::editor::AgentEditor::BotProfile::gemini_api_key, yaze::editor::AgentEditor::AgentConfig::gemini_api_key, GetProfilesDirectory(), JsonToProfile(), yaze::editor::AgentEditor::BotProfile::max_output_tokens, yaze::editor::AgentEditor::AgentConfig::max_output_tokens, yaze::editor::AgentEditor::BotProfile::max_retry_attempts, yaze::editor::AgentEditor::AgentConfig::max_retry_attempts, yaze::editor::AgentEditor::BotProfile::max_tool_iterations, yaze::editor::AgentEditor::AgentConfig::max_tool_iterations, yaze::editor::AgentEditor::BotProfile::model, yaze::editor::AgentEditor::AgentConfig::model, yaze::editor::AgentEditor::BotProfile::ollama_host, yaze::editor::AgentEditor::AgentConfig::ollama_host, yaze::editor::AgentEditor::BotProfile::openai_api_key, yaze::editor::AgentEditor::AgentConfig::openai_api_key, yaze::editor::AgentEditor::BotProfile::provider, yaze::editor::AgentEditor::AgentConfig::provider, yaze::editor::AgentEditor::BotProfile::show_reasoning, yaze::editor::AgentEditor::AgentConfig::show_reasoning, yaze::editor::AgentEditor::BotProfile::stream_responses, yaze::editor::AgentEditor::AgentConfig::stream_responses, yaze::editor::AgentEditor::BotProfile::temperature, yaze::editor::AgentEditor::AgentConfig::temperature, yaze::editor::AgentEditor::BotProfile::top_p, yaze::editor::AgentEditor::AgentConfig::top_p, yaze::editor::AgentEditor::BotProfile::verbose, and yaze::editor::AgentEditor::AgentConfig::verbose.

Referenced by DrawBotProfilesPanel().

Here is the call graph for this function:

◆ DeleteBotProfile()

absl::Status yaze::editor::AgentEditor::DeleteBotProfile ( const std::string & name)

Definition at line 1377 of file agent_editor.cc.

References GetProfilesDirectory(), and Load().

Referenced by DrawBotProfilesPanel().

Here is the call graph for this function:

◆ GetAllProfiles()

std::vector< AgentEditor::BotProfile > yaze::editor::AgentEditor::GetAllProfiles ( ) const

Definition at line 1388 of file agent_editor.cc.

References loaded_profiles_.

◆ SetCurrentProfile()

void yaze::editor::AgentEditor::SetCurrentProfile ( const BotProfile & profile)

Definition at line 1392 of file agent_editor.cc.

References ApplyConfig(), current_config_, current_profile_, yaze::editor::AgentEditor::BotProfile::gemini_api_key, yaze::editor::AgentEditor::AgentConfig::gemini_api_key, yaze::editor::AgentEditor::BotProfile::max_output_tokens, yaze::editor::AgentEditor::AgentConfig::max_output_tokens, yaze::editor::AgentEditor::BotProfile::max_retry_attempts, yaze::editor::AgentEditor::AgentConfig::max_retry_attempts, yaze::editor::AgentEditor::BotProfile::max_tool_iterations, yaze::editor::AgentEditor::AgentConfig::max_tool_iterations, yaze::editor::AgentEditor::BotProfile::model, yaze::editor::AgentEditor::AgentConfig::model, yaze::editor::AgentEditor::BotProfile::ollama_host, yaze::editor::AgentEditor::AgentConfig::ollama_host, yaze::editor::AgentEditor::BotProfile::openai_api_key, yaze::editor::AgentEditor::AgentConfig::openai_api_key, yaze::editor::AgentEditor::BotProfile::provider, yaze::editor::AgentEditor::AgentConfig::provider, yaze::editor::AgentEditor::BotProfile::show_reasoning, yaze::editor::AgentEditor::AgentConfig::show_reasoning, yaze::editor::AgentEditor::BotProfile::stream_responses, yaze::editor::AgentEditor::AgentConfig::stream_responses, yaze::editor::AgentEditor::BotProfile::temperature, yaze::editor::AgentEditor::AgentConfig::temperature, yaze::editor::AgentEditor::BotProfile::top_p, yaze::editor::AgentEditor::AgentConfig::top_p, yaze::editor::AgentEditor::BotProfile::verbose, and yaze::editor::AgentEditor::AgentConfig::verbose.

Here is the call graph for this function:

◆ ExportProfile()

absl::Status yaze::editor::AgentEditor::ExportProfile ( const BotProfile & profile,
const std::filesystem::path & path )

Definition at line 1411 of file agent_editor.cc.

References ProfileToJson(), and SaveBotProfile().

Here is the call graph for this function:

◆ ImportProfile()

absl::Status yaze::editor::AgentEditor::ImportProfile ( const std::filesystem::path & path)

Definition at line 1429 of file agent_editor.cc.

References JsonToProfile(), and SaveBotProfile().

Here is the call graph for this function:

◆ GetAgentChat()

AgentChat * yaze::editor::AgentEditor::GetAgentChat ( )
inline

Definition at line 183 of file agent_editor.h.

References agent_chat_.

◆ IsChatActive()

bool yaze::editor::AgentEditor::IsChatActive ( ) const

Definition at line 1597 of file agent_editor.cc.

References agent_chat_.

Referenced by ToggleChat().

◆ SetChatActive()

void yaze::editor::AgentEditor::SetChatActive ( bool active)

Definition at line 1601 of file agent_editor.cc.

References yaze::editor::Editor::active(), and agent_chat_.

Referenced by ToggleChat().

Here is the call graph for this function:

◆ ToggleChat()

void yaze::editor::AgentEditor::ToggleChat ( )

Definition at line 1607 of file agent_editor.cc.

References IsChatActive(), and SetChatActive().

Here is the call graph for this function:

◆ OpenChatWindow()

void yaze::editor::AgentEditor::OpenChatWindow ( )

Definition at line 1611 of file agent_editor.cc.

References agent_chat_.

Referenced by DrawStatusPanel().

◆ SetKnowledgePanelCallback()

void yaze::editor::AgentEditor::SetKnowledgePanelCallback ( KnowledgePanelCallback callback)
inline

Definition at line 191 of file agent_editor.h.

References knowledge_panel_callback_.

◆ HostSession()

◆ JoinSession()

◆ LeaveSession()

absl::Status yaze::editor::AgentEditor::LeaveSession ( )

◆ RefreshSession()

◆ CaptureSnapshot()

◆ SendToGemini()

◆ IsInSession()

bool yaze::editor::AgentEditor::IsInSession ( ) const

Definition at line 1931 of file agent_editor.cc.

References in_session_.

◆ GetCurrentMode()

AgentEditor::CollaborationMode yaze::editor::AgentEditor::GetCurrentMode ( ) const

Definition at line 1933 of file agent_editor.cc.

References current_mode_.

◆ GetCurrentSession()

std::optional< AgentEditor::SessionInfo > yaze::editor::AgentEditor::GetCurrentSession ( ) const

◆ GetLocalCoordinator()

AgentCollaborationCoordinator * yaze::editor::AgentEditor::GetLocalCoordinator ( )
inline

Definition at line 238 of file agent_editor.h.

References local_coordinator_.

◆ DrawConfigurationPanel()

void yaze::editor::AgentEditor::DrawConfigurationPanel ( )
private

Definition at line 262 of file agent_editor.cc.

References ApplyConfig(), current_config_, current_profile_, yaze::editor::AgentEditor::BotProfile::description, DrawMetricsPanel(), yaze::editor::AgentEditor::BotProfile::gemini_api_key, yaze::editor::AgentEditor::AgentConfig::gemini_api_key, yaze::editor::AgentUI::GetTheme(), yaze::gui::HelpMarker(), ICON_MD_AUTO_AWESOME, ICON_MD_CHECK, ICON_MD_CHECK_CIRCLE, ICON_MD_CLOUD, ICON_MD_INFO, ICON_MD_LOOP, ICON_MD_REFRESH, ICON_MD_SETTINGS, ICON_MD_SMART_TOY, ICON_MD_TERMINAL, ICON_MD_TUNE, yaze::editor::kSuccess, yaze::editor::kWarning, yaze::editor::AgentEditor::BotProfile::max_output_tokens, yaze::editor::AgentEditor::AgentConfig::max_output_tokens, yaze::editor::AgentEditor::BotProfile::max_retry_attempts, yaze::editor::AgentEditor::AgentConfig::max_retry_attempts, yaze::editor::AgentEditor::BotProfile::max_tool_iterations, yaze::editor::AgentEditor::AgentConfig::max_tool_iterations, yaze::editor::AgentEditor::BotProfile::model, yaze::editor::AgentEditor::AgentConfig::model, yaze::editor::AgentEditor::BotProfile::name, yaze::editor::AgentEditor::BotProfile::ollama_host, yaze::editor::AgentEditor::AgentConfig::ollama_host, yaze::editor::AgentEditor::BotProfile::openai_api_key, yaze::editor::AgentEditor::AgentConfig::openai_api_key, yaze::editor::AgentEditor::BotProfile::provider, yaze::editor::AgentEditor::AgentConfig::provider, yaze::editor::AgentUI::RenderSectionHeader(), Save(), yaze::editor::ToastManager::Show(), yaze::editor::AgentEditor::BotProfile::show_reasoning, yaze::editor::AgentEditor::AgentConfig::show_reasoning, yaze::editor::AgentEditor::BotProfile::stream_responses, yaze::editor::AgentEditor::AgentConfig::stream_responses, yaze::editor::AgentUI::StyledButton(), yaze::editor::AgentEditor::BotProfile::tags, yaze::editor::AgentEditor::BotProfile::temperature, yaze::editor::AgentEditor::AgentConfig::temperature, toast_manager_, yaze::editor::AgentEditor::BotProfile::top_p, yaze::editor::AgentEditor::AgentConfig::top_p, yaze::editor::AgentEditor::BotProfile::verbose, and yaze::editor::AgentEditor::AgentConfig::verbose.

Referenced by Initialize().

◆ DrawStatusPanel()

◆ DrawMetricsPanel()

void yaze::editor::AgentEditor::DrawMetricsPanel ( )
private

Definition at line 588 of file agent_editor.cc.

References ICON_MD_ANALYTICS.

Referenced by DrawConfigurationPanel().

◆ DrawPromptEditorPanel()

◆ DrawBotProfilesPanel()

◆ DrawChatHistoryViewer()

void yaze::editor::AgentEditor::DrawChatHistoryViewer ( )
private

◆ DrawAdvancedMetricsPanel()

void yaze::editor::AgentEditor::DrawAdvancedMetricsPanel ( )
private

Definition at line 814 of file agent_editor.cc.

References agent_chat_, yaze::editor::AgentUI::GetTheme(), ICON_MD_ANALYTICS, and yaze::editor::AgentUI::RenderSectionHeader().

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawCommonTilesEditor()

◆ DrawNewPromptCreator()

◆ DrawAgentBuilderPanel()

void yaze::editor::AgentEditor::DrawAgentBuilderPanel ( )
private

Definition at line 1011 of file agent_editor.cc.

References yaze::editor::AgentEditor::AgentBuilderState::active_stage, agent_chat_, yaze::editor::AgentEditor::AgentBuilderState::auto_focus_proposals, yaze::editor::AgentEditor::AgentBuilderState::auto_run_tests, yaze::editor::AgentEditor::AgentBuilderState::auto_sync_rom, yaze::editor::AgentEditor::AgentBuilderState::blueprint_path, builder_state_, current_profile_, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::dialogue, yaze::cli::agent::ToolDispatcher::ToolPreferences::dialogue, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::dungeon, yaze::cli::agent::ToolDispatcher::ToolPreferences::dungeon, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::emulator, yaze::cli::agent::ToolDispatcher::ToolPreferences::emulator, yaze::editor::AgentUI::GetTheme(), yaze::editor::AgentEditor::AgentBuilderState::goals, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::gui, yaze::cli::agent::ToolDispatcher::ToolPreferences::gui, ICON_MD_ADD, ICON_MD_AUTO_FIX_HIGH, ICON_MD_CLOSE, ICON_MD_FOLDER_OPEN, ICON_MD_LINK, ICON_MD_SAVE, yaze::editor::kError, yaze::editor::kSuccess, LoadBuilderBlueprint(), yaze::editor::AgentEditor::BotProfile::max_retry_attempts, yaze::editor::AgentEditor::BotProfile::max_tool_iterations, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::music, yaze::cli::agent::ToolDispatcher::ToolPreferences::music, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::overworld, yaze::cli::agent::ToolDispatcher::ToolPreferences::overworld, yaze::editor::AgentEditor::AgentBuilderState::persona_notes, yaze::editor::AgentEditor::AgentBuilderState::ready_for_e2e, yaze::editor::AgentUI::RenderSectionHeader(), yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::resources, yaze::cli::agent::ToolDispatcher::ToolPreferences::resources, SaveBuilderBlueprint(), yaze::editor::ToastManager::Show(), yaze::editor::AgentEditor::BotProfile::show_reasoning, yaze::editor::AgentEditor::AgentBuilderState::ToolPlan::sprite, yaze::cli::agent::ToolDispatcher::ToolPreferences::sprite, yaze::editor::AgentEditor::AgentBuilderState::stages, toast_manager_, yaze::editor::AgentEditor::AgentBuilderState::tools, and yaze::editor::AgentEditor::BotProfile::verbose.

Referenced by Initialize().

◆ SetupMultimodalCallbacks()

void yaze::editor::AgentEditor::SetupMultimodalCallbacks ( )
private

Definition at line 1940 of file agent_editor.cc.

Referenced by InitializeWithDependencies().

◆ SetupAutomationCallbacks()

void yaze::editor::AgentEditor::SetupAutomationCallbacks ( )
private

Definition at line 1943 of file agent_editor.cc.

Referenced by InitializeWithDependencies().

◆ GetProfilesDirectory()

std::filesystem::path yaze::editor::AgentEditor::GetProfilesDirectory ( ) const
private

Definition at line 1455 of file agent_editor.cc.

References yaze::util::PlatformPaths::GetConfigDirectory().

Referenced by DeleteBotProfile(), EnsureProfilesDirectory(), Load(), LoadBotProfile(), and SaveBotProfile().

Here is the call graph for this function:

◆ EnsureProfilesDirectory()

absl::Status yaze::editor::AgentEditor::EnsureProfilesDirectory ( )
private

Definition at line 1463 of file agent_editor.cc.

References GetProfilesDirectory().

Referenced by AgentEditor(), Initialize(), and SaveBotProfile().

Here is the call graph for this function:

◆ ProfileToJson()

◆ JsonToProfile()

◆ SaveBuilderBlueprint()

◆ LoadBuilderBlueprint()

◆ RegisterPanels()

void yaze::editor::AgentEditor::RegisterPanels ( )
private

Definition at line 138 of file agent_editor.cc.

Referenced by Initialize().

Member Data Documentation

◆ pulse_animation_

float yaze::editor::AgentEditor::pulse_animation_ = 0.0f

Definition at line 164 of file agent_editor.h.

Referenced by DrawDashboard().

◆ scanline_offset_

float yaze::editor::AgentEditor::scanline_offset_ = 0.0f

Definition at line 165 of file agent_editor.h.

Referenced by DrawDashboard().

◆ glitch_timer_

float yaze::editor::AgentEditor::glitch_timer_ = 0.0f

Definition at line 166 of file agent_editor.h.

Referenced by DrawDashboard().

◆ blink_counter_

int yaze::editor::AgentEditor::blink_counter_ = 0

Definition at line 167 of file agent_editor.h.

Referenced by DrawDashboard().

◆ agent_chat_

◆ local_coordinator_

std::unique_ptr<AgentCollaborationCoordinator> yaze::editor::AgentEditor::local_coordinator_
private

◆ toast_manager_

◆ proposal_drawer_

ProposalDrawer* yaze::editor::AgentEditor::proposal_drawer_ = nullptr
private

Definition at line 281 of file agent_editor.h.

Referenced by InitializeWithDependencies().

◆ rom_

Rom* yaze::editor::AgentEditor::rom_ = nullptr
private

Definition at line 282 of file agent_editor.h.

Referenced by DrawStatusPanel(), InitializeWithDependencies(), and SetRomContext().

◆ current_config_

AgentConfig yaze::editor::AgentEditor::current_config_
private

◆ current_profile_

◆ loaded_profiles_

std::vector<BotProfile> yaze::editor::AgentEditor::loaded_profiles_
private

Definition at line 290 of file agent_editor.h.

Referenced by DrawBotProfilesPanel(), GetAllProfiles(), and Load().

◆ builder_state_

AgentBuilderState yaze::editor::AgentEditor::builder_state_
private

◆ prompt_editor_

std::unique_ptr<TextEditor> yaze::editor::AgentEditor::prompt_editor_
private

Definition at line 294 of file agent_editor.h.

Referenced by AgentEditor(), DrawNewPromptCreator(), and DrawPromptEditorPanel().

◆ common_tiles_editor_

std::unique_ptr<TextEditor> yaze::editor::AgentEditor::common_tiles_editor_
private

Definition at line 295 of file agent_editor.h.

Referenced by AgentEditor(), and DrawCommonTilesEditor().

◆ prompt_editor_initialized_

bool yaze::editor::AgentEditor::prompt_editor_initialized_ = false
private

Definition at line 296 of file agent_editor.h.

Referenced by DrawPromptEditorPanel().

◆ common_tiles_initialized_

bool yaze::editor::AgentEditor::common_tiles_initialized_ = false
private

Definition at line 297 of file agent_editor.h.

Referenced by DrawCommonTilesEditor().

◆ active_prompt_file_

std::string yaze::editor::AgentEditor::active_prompt_file_ = "system_prompt_v3.txt"
private

Definition at line 298 of file agent_editor.h.

Referenced by DrawPromptEditorPanel().

◆ new_prompt_name_

char yaze::editor::AgentEditor::new_prompt_name_[128] = {}
private

Definition at line 299 of file agent_editor.h.

Referenced by DrawNewPromptCreator().

◆ current_mode_

CollaborationMode yaze::editor::AgentEditor::current_mode_ = CollaborationMode::kLocal
private

◆ in_session_

bool yaze::editor::AgentEditor::in_session_ = false
private

◆ current_session_id_

std::string yaze::editor::AgentEditor::current_session_id_
private

◆ current_session_name_

std::string yaze::editor::AgentEditor::current_session_name_
private

◆ current_participants_

std::vector<std::string> yaze::editor::AgentEditor::current_participants_
private

◆ show_advanced_settings_

bool yaze::editor::AgentEditor::show_advanced_settings_ = false
private

Definition at line 309 of file agent_editor.h.

◆ show_prompt_editor_

bool yaze::editor::AgentEditor::show_prompt_editor_ = false
private

Definition at line 310 of file agent_editor.h.

◆ show_bot_profiles_

bool yaze::editor::AgentEditor::show_bot_profiles_ = false
private

Definition at line 311 of file agent_editor.h.

◆ show_chat_history_

bool yaze::editor::AgentEditor::show_chat_history_ = false
private

Definition at line 312 of file agent_editor.h.

◆ show_metrics_dashboard_

bool yaze::editor::AgentEditor::show_metrics_dashboard_ = false
private

Definition at line 313 of file agent_editor.h.

◆ selected_tab_

int yaze::editor::AgentEditor::selected_tab_ = 0
private

Definition at line 314 of file agent_editor.h.

◆ show_config_card_

bool yaze::editor::AgentEditor::show_config_card_ = true
private

Definition at line 317 of file agent_editor.h.

◆ show_status_card_

bool yaze::editor::AgentEditor::show_status_card_ = true
private

Definition at line 318 of file agent_editor.h.

◆ show_prompt_editor_card_

bool yaze::editor::AgentEditor::show_prompt_editor_card_ = false
private

Definition at line 319 of file agent_editor.h.

◆ show_profiles_card_

bool yaze::editor::AgentEditor::show_profiles_card_ = false
private

Definition at line 320 of file agent_editor.h.

◆ show_history_card_

bool yaze::editor::AgentEditor::show_history_card_ = false
private

Definition at line 321 of file agent_editor.h.

◆ show_metrics_card_

bool yaze::editor::AgentEditor::show_metrics_card_ = false
private

Definition at line 322 of file agent_editor.h.

◆ show_builder_card_

bool yaze::editor::AgentEditor::show_builder_card_ = false
private

Definition at line 323 of file agent_editor.h.

◆ show_chat_card_

bool yaze::editor::AgentEditor::show_chat_card_ = true
private

Definition at line 324 of file agent_editor.h.

◆ cached_history_

std::vector<cli::agent::ChatMessage> yaze::editor::AgentEditor::cached_history_
private

Definition at line 330 of file agent_editor.h.

Referenced by DrawChatHistoryViewer().

◆ history_needs_refresh_

bool yaze::editor::AgentEditor::history_needs_refresh_ = true
private

Definition at line 331 of file agent_editor.h.

Referenced by DrawChatHistoryViewer().

◆ knowledge_panel_callback_

KnowledgePanelCallback yaze::editor::AgentEditor::knowledge_panel_callback_
private

Definition at line 334 of file agent_editor.h.

Referenced by Initialize(), and SetKnowledgePanelCallback().


The documentation for this class was generated from the following files: