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  ModelServiceKey
 
struct  ProfileUiState
 
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 SetContext (AgentUIContext *context)
 
void DrawDashboard ()
 
const BotProfileGetCurrentProfile () const
 
BotProfileGetCurrentProfile ()
 
AgentConfig GetCurrentConfig () const
 
void ApplyConfig (const AgentConfig &config)
 
void ApplyUserSettingsDefaults (bool force=false)
 
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
 
virtual void SetDependencies (const EditorDependencies &deps)
 
virtual void SetGameData (zelda3::GameData *game_data)
 
virtual std::string GetUndoDescription () const
 
virtual std::string GetRedoDescription () const
 
const UndoManagerundo_manager () const
 
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 DrawFeatureFlagPanel ()
 
void DrawManifestPanel ()
 
void DrawMesenDebugPanel ()
 
void DrawMesenScreenshotPanel ()
 
void DrawOracleStatePanel ()
 
void DrawSramViewerPanel ()
 
void SyncContextFromProfile ()
 
void SyncConfigFromProfile ()
 
void ApplyConfigFromContext (const AgentConfigState &config)
 
void ApplyToolPreferencesFromContext ()
 
void RefreshModelCache (bool force)
 
void ApplyModelPreset (const ModelPreset &preset)
 
bool MaybeAutoDetectLocalProviders ()
 
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 MarkProfileUiDirty ()
 
void SyncProfileUiState ()
 
void RegisterPanels ()
 

Private Attributes

std::unique_ptr< AgentChatagent_chat_
 
std::unique_ptr< AgentCollaborationCoordinatorlocal_coordinator_
 
std::unique_ptr< AgentConfigPanelconfig_panel_
 
std::unique_ptr< FeatureFlagEditorPanelfeature_flag_panel_
 
std::unique_ptr< ManifestPanelmanifest_panel_
 
std::unique_ptr< MesenDebugPanelmesen_debug_panel_
 
std::unique_ptr< MesenScreenshotPanelmesen_screenshot_panel_
 
std::unique_ptr< OracleStateLibraryPaneloracle_state_panel_
 
std::unique_ptr< SramViewerPanelsram_viewer_panel_
 
ToastManagertoast_manager_ = nullptr
 
ProposalDrawerproposal_drawer_ = nullptr
 
Romrom_ = nullptr
 
AgentUIContextcontext_ = nullptr
 
AgentConfig current_config_
 
ModelServiceKey last_model_service_key_
 
std::unique_ptr< cli::AIServicemodel_service_
 
std::vector< std::string > last_local_model_paths_
 
absl::Time last_local_model_scan_ = absl::InfinitePast()
 
BotProfile current_profile_
 
std::vector< BotProfileloaded_profiles_
 
AgentBuilderState builder_state_
 
ProfileUiState profile_ui_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
 
bool auto_probe_done_ = false
 
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_
 
UndoManager undo_manager_
 

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 68 of file agent_editor.h.

Member Typedef Documentation

◆ KnowledgePanelCallback

Definition at line 211 of file agent_editor.h.

Member Enumeration Documentation

◆ CollaborationMode

Enumerator
kLocal 
kNetwork 

Definition at line 217 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 699 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 723 of file agent_editor.cc.

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

Here is the call graph for this function:

◆ Update()

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

Implements yaze::editor::Editor.

Definition at line 729 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 78 of file agent_editor.h.

◆ Copy()

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

Implements yaze::editor::Editor.

Definition at line 81 of file agent_editor.h.

◆ Paste()

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

Implements yaze::editor::Editor.

Definition at line 84 of file agent_editor.h.

◆ Undo()

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

Implements yaze::editor::Editor.

Definition at line 87 of file agent_editor.h.

◆ Redo()

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

Implements yaze::editor::Editor.

Definition at line 90 of file agent_editor.h.

◆ Find()

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

Implements yaze::editor::Editor.

Definition at line 93 of file agent_editor.h.

◆ InitializeWithDependencies()

◆ SetRomContext()

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

Definition at line 900 of file agent_editor.cc.

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

Here is the call graph for this function:

◆ SetContext()

void yaze::editor::AgentEditor::SetContext ( AgentUIContext * context)

Definition at line 907 of file agent_editor.cc.

References agent_chat_, yaze::editor::Editor::context(), context_, and SyncContextFromProfile().

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 133 of file agent_editor.h.

References current_profile_.

◆ GetCurrentProfile() [2/2]

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

Definition at line 134 of file agent_editor.h.

References current_profile_.

◆ GetCurrentConfig()

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

Definition at line 2702 of file agent_editor.cc.

References current_config_.

◆ ApplyConfig()

◆ ApplyUserSettingsDefaults()

◆ SaveBotProfile()

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

Definition at line 2431 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 2453 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(), MarkProfileUiDirty(), 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::openai_base_url, yaze::editor::AgentEditor::AgentConfig::openai_base_url, 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, SyncContextFromProfile(), 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().

◆ DeleteBotProfile()

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

Definition at line 2500 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 2511 of file agent_editor.cc.

References loaded_profiles_.

◆ SetCurrentProfile()

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

Definition at line 2515 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, MarkProfileUiDirty(), 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::openai_base_url, yaze::editor::AgentEditor::AgentConfig::openai_base_url, 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, SyncContextFromProfile(), 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 2537 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 2557 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 204 of file agent_editor.h.

References agent_chat_.

Referenced by yaze::editor::EditorManager::InitializeSubsystems().

◆ IsChatActive()

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

Definition at line 2739 of file agent_editor.cc.

References agent_chat_.

Referenced by ToggleChat().

◆ SetChatActive()

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

Definition at line 2743 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 2749 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 2753 of file agent_editor.cc.

References agent_chat_.

Referenced by DrawStatusPanel().

◆ SetKnowledgePanelCallback()

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

Definition at line 212 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 3082 of file agent_editor.cc.

References in_session_.

◆ GetCurrentMode()

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

Definition at line 3086 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 259 of file agent_editor.h.

References local_coordinator_.

◆ DrawConfigurationPanel()

◆ DrawStatusPanel()

◆ DrawMetricsPanel()

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

Definition at line 1602 of file agent_editor.cc.

References ICON_MD_ANALYTICS.

◆ DrawPromptEditorPanel()

◆ DrawBotProfilesPanel()

◆ DrawChatHistoryViewer()

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

◆ DrawAdvancedMetricsPanel()

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

Definition at line 1825 of file agent_editor.cc.

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

Here is the call graph for this function:

◆ DrawCommonTilesEditor()

◆ DrawNewPromptCreator()

◆ DrawAgentBuilderPanel()

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

Definition at line 2025 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_LIST, 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::memory_inspector, yaze::cli::agent::ToolDispatcher::ToolPreferences::memory_inspector, 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().

◆ DrawFeatureFlagPanel()

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

◆ DrawManifestPanel()

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

◆ DrawMesenDebugPanel()

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

Definition at line 2274 of file agent_editor.cc.

References mesen_debug_panel_.

Referenced by Initialize().

◆ DrawMesenScreenshotPanel()

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

Definition at line 2282 of file agent_editor.cc.

References mesen_screenshot_panel_.

Referenced by Initialize().

◆ DrawOracleStatePanel()

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

Definition at line 2290 of file agent_editor.cc.

References mesen_debug_panel_, and oracle_state_panel_.

Referenced by Initialize().

◆ DrawSramViewerPanel()

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

◆ SyncContextFromProfile()

◆ SyncConfigFromProfile()

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

Definition at line 915 of file agent_editor.cc.

References yaze::editor::AgentEditor::BotProfile::anthropic_api_key, yaze::editor::AgentEditor::AgentConfig::anthropic_api_key, 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::cli::NormalizeOpenAiBaseUrl(), 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::openai_base_url, yaze::editor::AgentEditor::AgentConfig::openai_base_url, 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 ApplyUserSettingsDefaults(), MaybeAutoDetectLocalProviders(), and SyncContextFromProfile().

Here is the call graph for this function:

◆ ApplyConfigFromContext()

void yaze::editor::AgentEditor::ApplyConfigFromContext ( const AgentConfigState & config)
private

Definition at line 977 of file agent_editor.cc.

References yaze::editor::AgentUIContext::agent_config(), yaze::editor::AgentConfigState::ai_model, yaze::editor::AgentConfigState::ai_provider, yaze::editor::AgentEditor::BotProfile::anthropic_api_key, yaze::editor::AgentConfigState::anthropic_api_key, ApplyConfig(), yaze::editor::ModelCache::available_models, yaze::editor::AgentConfigState::chain_mode, context_, current_config_, current_profile_, yaze::editor::AgentConfigState::favorite_models, yaze::editor::AgentEditor::BotProfile::gemini_api_key, yaze::editor::AgentEditor::AgentConfig::gemini_api_key, yaze::editor::AgentConfigState::gemini_api_key, yaze::editor::AgentEditor::BotProfile::host_id, yaze::editor::AgentConfigState::host_id, MarkProfileUiDirty(), yaze::editor::AgentEditor::BotProfile::max_output_tokens, yaze::editor::AgentEditor::AgentConfig::max_output_tokens, yaze::editor::AgentConfigState::max_output_tokens, yaze::editor::AgentEditor::BotProfile::max_retry_attempts, yaze::editor::AgentEditor::AgentConfig::max_retry_attempts, yaze::editor::AgentConfigState::max_retry_attempts, yaze::editor::AgentEditor::BotProfile::max_tool_iterations, yaze::editor::AgentEditor::AgentConfig::max_tool_iterations, yaze::editor::AgentConfigState::max_tool_iterations, yaze::editor::AgentEditor::BotProfile::model, yaze::editor::AgentEditor::AgentConfig::model, yaze::editor::AgentUIContext::model_cache(), yaze::editor::AgentConfigState::model_chain, yaze::editor::AgentConfigState::model_presets, yaze::editor::AgentEditor::BotProfile::modified_at, yaze::cli::NormalizeOpenAiBaseUrl(), yaze::editor::AgentUIContext::NotifyChanged(), yaze::editor::AgentEditor::BotProfile::ollama_host, yaze::editor::AgentEditor::AgentConfig::ollama_host, yaze::editor::AgentConfigState::ollama_host, yaze::editor::AgentEditor::BotProfile::openai_api_key, yaze::editor::AgentEditor::AgentConfig::openai_api_key, yaze::editor::AgentConfigState::openai_api_key, yaze::editor::AgentEditor::BotProfile::openai_base_url, yaze::editor::AgentEditor::AgentConfig::openai_base_url, yaze::editor::AgentConfigState::openai_base_url, yaze::editor::AgentEditor::BotProfile::provider, yaze::editor::AgentEditor::AgentConfig::provider, yaze::editor::AgentEditor::BotProfile::show_reasoning, yaze::editor::AgentEditor::AgentConfig::show_reasoning, yaze::editor::AgentConfigState::show_reasoning, yaze::editor::AgentEditor::BotProfile::stream_responses, yaze::editor::AgentEditor::AgentConfig::stream_responses, yaze::editor::AgentConfigState::stream_responses, yaze::editor::AgentEditor::BotProfile::temperature, yaze::editor::AgentEditor::AgentConfig::temperature, yaze::editor::AgentConfigState::temperature, yaze::editor::AgentConfigState::tool_config, yaze::editor::AgentEditor::BotProfile::top_p, yaze::editor::AgentEditor::AgentConfig::top_p, yaze::editor::AgentConfigState::top_p, yaze::editor::AgentEditor::BotProfile::verbose, yaze::editor::AgentEditor::AgentConfig::verbose, and yaze::editor::AgentConfigState::verbose.

Referenced by ApplyModelPreset(), and DrawConfigurationPanel().

◆ ApplyToolPreferencesFromContext()

◆ RefreshModelCache()

void yaze::editor::AgentEditor::RefreshModelCache ( bool force)
private

◆ ApplyModelPreset()

◆ MaybeAutoDetectLocalProviders()

◆ SetupMultimodalCallbacks()

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

Definition at line 3097 of file agent_editor.cc.

Referenced by InitializeWithDependencies().

◆ SetupAutomationCallbacks()

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

Definition at line 3099 of file agent_editor.cc.

Referenced by InitializeWithDependencies().

◆ GetProfilesDirectory()

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

◆ EnsureProfilesDirectory()

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

Definition at line 2595 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()

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

◆ MarkProfileUiDirty()

◆ SyncProfileUiState()

◆ RegisterPanels()

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

Definition at line 694 of file agent_editor.cc.

Referenced by Initialize().

Member Data Documentation

◆ pulse_animation_

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

Definition at line 184 of file agent_editor.h.

Referenced by DrawDashboard().

◆ scanline_offset_

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

Definition at line 185 of file agent_editor.h.

Referenced by DrawDashboard().

◆ glitch_timer_

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

Definition at line 186 of file agent_editor.h.

Referenced by DrawDashboard().

◆ blink_counter_

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

Definition at line 187 of file agent_editor.h.

Referenced by DrawDashboard().

◆ agent_chat_

◆ local_coordinator_

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

◆ config_panel_

std::unique_ptr<AgentConfigPanel> yaze::editor::AgentEditor::config_panel_
private

Definition at line 313 of file agent_editor.h.

Referenced by AgentEditor(), and DrawConfigurationPanel().

◆ feature_flag_panel_

std::unique_ptr<FeatureFlagEditorPanel> yaze::editor::AgentEditor::feature_flag_panel_
private

Definition at line 314 of file agent_editor.h.

Referenced by AgentEditor(), and DrawFeatureFlagPanel().

◆ manifest_panel_

std::unique_ptr<ManifestPanel> yaze::editor::AgentEditor::manifest_panel_
private

Definition at line 315 of file agent_editor.h.

Referenced by AgentEditor(), and DrawManifestPanel().

◆ mesen_debug_panel_

std::unique_ptr<MesenDebugPanel> yaze::editor::AgentEditor::mesen_debug_panel_
private

Definition at line 316 of file agent_editor.h.

Referenced by AgentEditor(), DrawMesenDebugPanel(), and DrawOracleStatePanel().

◆ mesen_screenshot_panel_

std::unique_ptr<MesenScreenshotPanel> yaze::editor::AgentEditor::mesen_screenshot_panel_
private

Definition at line 317 of file agent_editor.h.

Referenced by AgentEditor(), and DrawMesenScreenshotPanel().

◆ oracle_state_panel_

std::unique_ptr<OracleStateLibraryPanel> yaze::editor::AgentEditor::oracle_state_panel_
private

Definition at line 318 of file agent_editor.h.

Referenced by AgentEditor(), and DrawOracleStatePanel().

◆ sram_viewer_panel_

std::unique_ptr<SramViewerPanel> yaze::editor::AgentEditor::sram_viewer_panel_
private

Definition at line 319 of file agent_editor.h.

Referenced by AgentEditor(), and DrawSramViewerPanel().

◆ toast_manager_

◆ proposal_drawer_

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

Definition at line 326 of file agent_editor.h.

Referenced by InitializeWithDependencies().

◆ rom_

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

Definition at line 327 of file agent_editor.h.

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

◆ context_

◆ current_config_

◆ last_model_service_key_

ModelServiceKey yaze::editor::AgentEditor::last_model_service_key_
private

Definition at line 344 of file agent_editor.h.

Referenced by RefreshModelCache().

◆ model_service_

std::unique_ptr<cli::AIService> yaze::editor::AgentEditor::model_service_
private

Definition at line 345 of file agent_editor.h.

Referenced by RefreshModelCache().

◆ last_local_model_paths_

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

Definition at line 346 of file agent_editor.h.

Referenced by RefreshModelCache().

◆ last_local_model_scan_

absl::Time yaze::editor::AgentEditor::last_local_model_scan_ = absl::InfinitePast()
private

Definition at line 347 of file agent_editor.h.

Referenced by RefreshModelCache().

◆ current_profile_

◆ loaded_profiles_

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

Definition at line 351 of file agent_editor.h.

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

◆ builder_state_

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

◆ profile_ui_state_

ProfileUiState yaze::editor::AgentEditor::profile_ui_state_
private

Definition at line 366 of file agent_editor.h.

Referenced by MarkProfileUiDirty(), and SyncProfileUiState().

◆ prompt_editor_

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

Definition at line 369 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 370 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 371 of file agent_editor.h.

Referenced by DrawPromptEditorPanel().

◆ common_tiles_initialized_

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

Definition at line 372 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 373 of file agent_editor.h.

Referenced by DrawPromptEditorPanel().

◆ new_prompt_name_

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

Definition at line 374 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 384 of file agent_editor.h.

◆ show_prompt_editor_

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

Definition at line 385 of file agent_editor.h.

◆ show_bot_profiles_

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

Definition at line 386 of file agent_editor.h.

◆ show_chat_history_

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

Definition at line 387 of file agent_editor.h.

◆ show_metrics_dashboard_

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

Definition at line 388 of file agent_editor.h.

◆ selected_tab_

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

Definition at line 389 of file agent_editor.h.

◆ show_config_card_

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

Definition at line 392 of file agent_editor.h.

◆ show_status_card_

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

Definition at line 393 of file agent_editor.h.

◆ show_prompt_editor_card_

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

Definition at line 394 of file agent_editor.h.

◆ show_profiles_card_

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

Definition at line 395 of file agent_editor.h.

◆ show_history_card_

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

Definition at line 396 of file agent_editor.h.

◆ show_metrics_card_

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

Definition at line 397 of file agent_editor.h.

◆ show_builder_card_

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

Definition at line 398 of file agent_editor.h.

◆ show_chat_card_

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

Definition at line 399 of file agent_editor.h.

◆ auto_probe_done_

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

Definition at line 400 of file agent_editor.h.

Referenced by MaybeAutoDetectLocalProviders().

◆ cached_history_

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

Definition at line 406 of file agent_editor.h.

Referenced by DrawChatHistoryViewer().

◆ history_needs_refresh_

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

Definition at line 407 of file agent_editor.h.

Referenced by DrawChatHistoryViewer().

◆ knowledge_panel_callback_

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

Definition at line 410 of file agent_editor.h.

Referenced by Initialize(), and SetKnowledgePanelCallback().


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