EditorPanel for AI Configuration panel. More...
#include <agent_configuration_panel.h>


Classes | |
| struct | Callbacks |
Public Types | |
| using | DrawCallback = std::function<void()> |
Public Member Functions | |
| AgentConfigurationPanel ()=default | |
| void | Draw (AgentUIContext *context, const Callbacks &callbacks, ToastManager *toast_manager) |
| AgentConfigurationPanel (DrawCallback draw_callback) | |
| std::string | GetId () const override |
| Unique identifier for this panel. | |
| std::string | GetDisplayName () const override |
| Human-readable name shown in menus and title bars. | |
| 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. | |
| void | Draw (bool *p_open) override |
| Draw the panel content. | |
Public Member Functions inherited from yaze::editor::EditorPanel | |
| virtual | ~EditorPanel ()=default |
| virtual void | OnOpen () |
| Called when panel becomes visible. | |
| virtual void | OnClose () |
| Called when panel is hidden. | |
| virtual void | OnFocus () |
| Called when panel receives focus. | |
| virtual PanelCategory | GetPanelCategory () const |
| Get the lifecycle category for this panel. | |
| virtual bool | IsEnabled () const |
| Check if this panel is currently enabled. | |
| virtual std::string | GetDisabledTooltip () const |
| Get tooltip text when panel is disabled. | |
| virtual std::string | GetShortcutHint () const |
| Get keyboard shortcut hint for display. | |
| virtual float | GetPreferredWidth () const |
| Get preferred width for this panel (optional) | |
| virtual bool | IsVisibleByDefault () const |
| Whether this panel should be visible by default. | |
| virtual std::string | GetParentPanelId () const |
| Get parent panel ID for cascade behavior. | |
| virtual bool | CascadeCloseChildren () const |
| Whether closing this panel should close child panels. | |
Private Member Functions | |
| void | RenderModelConfigControls (AgentUIContext *context, const Callbacks &callbacks, ToastManager *toast_manager) |
| void | RenderModelDeck (AgentUIContext *context, const Callbacks &callbacks, ToastManager *toast_manager) |
| void | RenderParameterControls (AgentConfigState &config) |
| void | RenderToolingControls (AgentConfigState &config, const Callbacks &callbacks) |
| void | RenderChainModeControls (AgentConfigState &config) |
Private Attributes | |
| DrawCallback | draw_callback_ |
EditorPanel for AI Configuration panel.
Definition at line 14 of file agent_configuration_panel.h.
| using yaze::editor::AgentConfigurationPanel::DrawCallback = std::function<void()> |
Definition at line 26 of file agent_editor_panels.h.
|
default |
|
inlineexplicit |
Definition at line 28 of file agent_editor_panels.h.
| void yaze::editor::AgentConfigurationPanel::Draw | ( | AgentUIContext * | context, |
| const Callbacks & | callbacks, | ||
| ToastManager * | toast_manager ) |
Definition at line 47 of file agent_configuration_panel.cc.
References yaze::editor::AgentUIContext::agent_config(), yaze::editor::AgentUI::GetTheme(), ICON_MD_CLOUD_SYNC, ICON_MD_CONSTRUCTION, ICON_MD_SETTINGS, ICON_MD_SMART_TOY, ICON_MD_TUNE, RenderModelConfigControls(), RenderModelDeck(), RenderParameterControls(), yaze::editor::AgentUI::RenderSectionHeader(), RenderToolingControls(), and yaze::editor::AgentConfigurationPanel::Callbacks::update_config.
|
private |
Definition at line 93 of file agent_configuration_panel.cc.
References yaze::editor::AgentUIContext::agent_config(), yaze::editor::AgentUI::GetTheme(), yaze::editor::AgentUI::HorizontalSpacing(), yaze::editor::ModelPreset::host, ICON_MD_AUTO_AWESOME, ICON_MD_CLOSE, ICON_MD_CLOUD, ICON_MD_COMPUTER, ICON_MD_NOTE_ADD, ICON_MD_REFRESH, ICON_MD_SETTINGS, ICON_MD_SMART_TOY, ICON_MD_STAR, ICON_MD_STAR_BORDER, ICON_MD_SYNC, yaze::editor::kInfo, yaze::editor::kSuccess, yaze::editor::kWarning, yaze::editor::ModelPreset::last_used, yaze::editor::ModelPreset::model, yaze::editor::ModelPreset::name, yaze::editor::AgentConfigurationPanel::Callbacks::refresh_models, RenderChainModeControls(), yaze::editor::ToastManager::Show(), and yaze::editor::ModelPreset::tags.
Referenced by Draw().
|
private |
Definition at line 465 of file agent_configuration_panel.cc.
References yaze::editor::AgentUIContext::agent_config(), yaze::editor::AgentConfigurationPanel::Callbacks::apply_preset, yaze::editor::AgentUI::GetTheme(), yaze::editor::ModelPreset::host, ICON_MD_DELETE, ICON_MD_NOTE_ADD, ICON_MD_PLAY_ARROW, ICON_MD_STAR, ICON_MD_STAR_BORDER, yaze::editor::kSuccess, yaze::editor::ModelPreset::last_used, yaze::editor::ModelPreset::model, yaze::editor::ModelPreset::name, yaze::editor::ToastManager::Show(), and yaze::editor::ModelPreset::tags.
Referenced by Draw().

|
private |
Definition at line 553 of file agent_configuration_panel.cc.
References yaze::editor::AgentConfigState::max_output_tokens, yaze::editor::AgentConfigState::max_retry_attempts, yaze::editor::AgentConfigState::max_tool_iterations, yaze::editor::AgentConfigState::show_reasoning, yaze::editor::AgentConfigState::stream_responses, yaze::editor::AgentConfigState::temperature, yaze::editor::AgentConfigState::top_p, and yaze::editor::AgentConfigState::verbose.
Referenced by Draw().
|
private |
Definition at line 566 of file agent_configuration_panel.cc.
References yaze::editor::AgentConfigurationPanel::Callbacks::apply_tool_preferences, yaze::editor::ToolConfig::dialogue, yaze::editor::ToolConfig::dungeon, yaze::editor::ToolConfig::emulator, yaze::editor::ToolConfig::gui, yaze::editor::ToolConfig::messages, yaze::editor::ToolConfig::music, yaze::editor::ToolConfig::overworld, yaze::editor::ToolConfig::resources, yaze::editor::ToolConfig::sprite, and yaze::editor::AgentConfigState::tool_config.
Referenced by Draw().
|
private |
Definition at line 599 of file agent_configuration_panel.cc.
References yaze::editor::AgentConfigState::chain_mode, yaze::editor::kConsensus, yaze::editor::kDisabled, and yaze::editor::kRoundRobin.
Referenced by RenderModelConfigControls().
|
inlineoverridevirtual |
Unique identifier for this panel.
IDs should be:
Implements yaze::editor::EditorPanel.
Definition at line 31 of file agent_editor_panels.h.
|
inlineoverridevirtual |
Human-readable name shown in menus and title bars.
Implements yaze::editor::EditorPanel.
Definition at line 32 of file agent_editor_panels.h.
|
inlineoverridevirtual |
Material Design icon for this panel.
Implements yaze::editor::EditorPanel.
Definition at line 33 of file agent_editor_panels.h.
References ICON_MD_SETTINGS.
|
inlineoverridevirtual |
Editor category this panel belongs to.
Implements yaze::editor::EditorPanel.
Definition at line 34 of file agent_editor_panels.h.
|
inlineoverridevirtual |
Get display priority for menu ordering.
Reimplemented from yaze::editor::EditorPanel.
Definition at line 35 of file agent_editor_panels.h.
|
inlineoverridevirtual |
Draw the panel content.
| p_open | Pointer to visibility flag (nullptr if not closable) |
Called by PanelManager when the panel is visible. Do NOT call ImGui::Begin/End - the PanelWindow wrapper handles that. Just draw your content directly.
Implements yaze::editor::EditorPanel.
Definition at line 37 of file agent_editor_panels.h.
References draw_callback_.
|
private |
Definition at line 44 of file agent_editor_panels.h.
Referenced by Draw().