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

Unified context for agent UI components. More...

#include <agent_state.h>

Public Types

using ChangeCallback = std::function<void()>
 

Public Member Functions

 AgentUIContext ()=default
 
ChatStatechat_state ()
 
const ChatStatechat_state () const
 
CollaborationStatecollaboration_state ()
 
const CollaborationStatecollaboration_state () const
 
MultimodalStatemultimodal_state ()
 
const MultimodalStatemultimodal_state () const
 
AutomationStateautomation_state ()
 
const AutomationStateautomation_state () const
 
AgentConfigStateagent_config ()
 
const AgentConfigStateagent_config () const
 
RomSyncStaterom_sync_state ()
 
const RomSyncStaterom_sync_state () const
 
Z3EDCommandStatez3ed_command_state ()
 
const Z3EDCommandStatez3ed_command_state () const
 
PersonaProfilepersona_profile ()
 
const PersonaProfilepersona_profile () const
 
ProposalStateproposal_state ()
 
const ProposalStateproposal_state () const
 
KnowledgeStateknowledge_state ()
 
const KnowledgeStateknowledge_state () const
 
ToolExecutionStatetool_execution_state ()
 
const ToolExecutionStatetool_execution_state () const
 
void SetRom (Rom *rom)
 
RomGetRom () const
 
bool HasRom () const
 
void SetProject (project::YazeProject *project)
 
project::YazeProjectGetProject () const
 
bool HasProject () const
 
void SetAsarWrapper (core::AsarWrapper *asar_wrapper)
 
core::AsarWrapperGetAsarWrapper () const
 
bool HasAsarWrapper () const
 
void AddChangeListener (ChangeCallback callback)
 
void NotifyChanged ()
 

Private Attributes

ChatState chat_state_
 
CollaborationState collaboration_state_
 
MultimodalState multimodal_state_
 
AutomationState automation_state_
 
AgentConfigState agent_config_
 
RomSyncState rom_sync_state_
 
Z3EDCommandState z3ed_command_state_
 
PersonaProfile persona_profile_
 
ProposalState proposal_state_
 
KnowledgeState knowledge_state_
 
ToolExecutionState tool_execution_state_
 
Romrom_ = nullptr
 
project::YazeProjectproject_ = nullptr
 
core::AsarWrapperasar_wrapper_ = nullptr
 
std::vector< ChangeCallbackchange_listeners_
 

Detailed Description

Unified context for agent UI components.

This class serves as the single source of truth for agent-related UI state. It's shared among AgentChatView, AgentProposalsPanel, AgentSidebar, etc.

Definition at line 355 of file agent_state.h.

Member Typedef Documentation

◆ ChangeCallback

using yaze::editor::AgentUIContext::ChangeCallback = std::function<void()>

Definition at line 415 of file agent_state.h.

Constructor & Destructor Documentation

◆ AgentUIContext()

yaze::editor::AgentUIContext::AgentUIContext ( )
default

Member Function Documentation

◆ chat_state() [1/2]

ChatState & yaze::editor::AgentUIContext::chat_state ( )
inline

Definition at line 360 of file agent_state.h.

References chat_state_.

◆ chat_state() [2/2]

const ChatState & yaze::editor::AgentUIContext::chat_state ( ) const
inline

Definition at line 361 of file agent_state.h.

References chat_state_.

◆ collaboration_state() [1/2]

CollaborationState & yaze::editor::AgentUIContext::collaboration_state ( )
inline

Definition at line 363 of file agent_state.h.

References collaboration_state_.

Referenced by yaze::editor::AgentRomSyncPanel::Draw().

◆ collaboration_state() [2/2]

const CollaborationState & yaze::editor::AgentUIContext::collaboration_state ( ) const
inline

Definition at line 364 of file agent_state.h.

References collaboration_state_.

◆ multimodal_state() [1/2]

MultimodalState & yaze::editor::AgentUIContext::multimodal_state ( )
inline

Definition at line 368 of file agent_state.h.

References multimodal_state_.

◆ multimodal_state() [2/2]

const MultimodalState & yaze::editor::AgentUIContext::multimodal_state ( ) const
inline

Definition at line 369 of file agent_state.h.

References multimodal_state_.

◆ automation_state() [1/2]

AutomationState & yaze::editor::AgentUIContext::automation_state ( )
inline

Definition at line 371 of file agent_state.h.

References automation_state_.

Referenced by yaze::editor::AgentAutomationPanel::Draw().

◆ automation_state() [2/2]

const AutomationState & yaze::editor::AgentUIContext::automation_state ( ) const
inline

Definition at line 372 of file agent_state.h.

References automation_state_.

◆ agent_config() [1/2]

◆ agent_config() [2/2]

const AgentConfigState & yaze::editor::AgentUIContext::agent_config ( ) const
inline

Definition at line 375 of file agent_state.h.

References agent_config_.

◆ rom_sync_state() [1/2]

RomSyncState & yaze::editor::AgentUIContext::rom_sync_state ( )
inline

Definition at line 377 of file agent_state.h.

References rom_sync_state_.

Referenced by yaze::editor::AgentRomSyncPanel::Draw().

◆ rom_sync_state() [2/2]

const RomSyncState & yaze::editor::AgentUIContext::rom_sync_state ( ) const
inline

Definition at line 378 of file agent_state.h.

References rom_sync_state_.

◆ z3ed_command_state() [1/2]

Z3EDCommandState & yaze::editor::AgentUIContext::z3ed_command_state ( )
inline

Definition at line 380 of file agent_state.h.

References z3ed_command_state_.

Referenced by yaze::editor::AgentZ3EDCommandPanel::Draw().

◆ z3ed_command_state() [2/2]

const Z3EDCommandState & yaze::editor::AgentUIContext::z3ed_command_state ( ) const
inline

Definition at line 381 of file agent_state.h.

References z3ed_command_state_.

◆ persona_profile() [1/2]

PersonaProfile & yaze::editor::AgentUIContext::persona_profile ( )
inline

Definition at line 385 of file agent_state.h.

References persona_profile_.

◆ persona_profile() [2/2]

const PersonaProfile & yaze::editor::AgentUIContext::persona_profile ( ) const
inline

Definition at line 386 of file agent_state.h.

References persona_profile_.

◆ proposal_state() [1/2]

◆ proposal_state() [2/2]

const ProposalState & yaze::editor::AgentUIContext::proposal_state ( ) const
inline

Definition at line 389 of file agent_state.h.

References proposal_state_.

◆ knowledge_state() [1/2]

KnowledgeState & yaze::editor::AgentUIContext::knowledge_state ( )
inline

Definition at line 391 of file agent_state.h.

References knowledge_state_.

◆ knowledge_state() [2/2]

const KnowledgeState & yaze::editor::AgentUIContext::knowledge_state ( ) const
inline

Definition at line 392 of file agent_state.h.

References knowledge_state_.

◆ tool_execution_state() [1/2]

ToolExecutionState & yaze::editor::AgentUIContext::tool_execution_state ( )
inline

Definition at line 394 of file agent_state.h.

References tool_execution_state_.

◆ tool_execution_state() [2/2]

const ToolExecutionState & yaze::editor::AgentUIContext::tool_execution_state ( ) const
inline

Definition at line 395 of file agent_state.h.

References tool_execution_state_.

◆ SetRom()

void yaze::editor::AgentUIContext::SetRom ( Rom * rom)
inline

Definition at line 400 of file agent_state.h.

References rom_.

◆ GetRom()

Rom * yaze::editor::AgentUIContext::GetRom ( ) const
inline

Definition at line 401 of file agent_state.h.

References rom_.

◆ HasRom()

bool yaze::editor::AgentUIContext::HasRom ( ) const
inline

Definition at line 402 of file agent_state.h.

References rom_.

◆ SetProject()

void yaze::editor::AgentUIContext::SetProject ( project::YazeProject * project)
inline

Definition at line 405 of file agent_state.h.

References project_.

◆ GetProject()

project::YazeProject * yaze::editor::AgentUIContext::GetProject ( ) const
inline

Definition at line 406 of file agent_state.h.

References project_.

◆ HasProject()

bool yaze::editor::AgentUIContext::HasProject ( ) const
inline

Definition at line 407 of file agent_state.h.

References project_.

◆ SetAsarWrapper()

void yaze::editor::AgentUIContext::SetAsarWrapper ( core::AsarWrapper * asar_wrapper)
inline

Definition at line 410 of file agent_state.h.

References asar_wrapper_.

◆ GetAsarWrapper()

core::AsarWrapper * yaze::editor::AgentUIContext::GetAsarWrapper ( ) const
inline

Definition at line 411 of file agent_state.h.

References asar_wrapper_.

◆ HasAsarWrapper()

bool yaze::editor::AgentUIContext::HasAsarWrapper ( ) const
inline

Definition at line 412 of file agent_state.h.

References asar_wrapper_.

◆ AddChangeListener()

void yaze::editor::AgentUIContext::AddChangeListener ( ChangeCallback callback)
inline

Definition at line 416 of file agent_state.h.

References change_listeners_.

◆ NotifyChanged()

void yaze::editor::AgentUIContext::NotifyChanged ( )
inline

Definition at line 419 of file agent_state.h.

References change_listeners_.

Member Data Documentation

◆ chat_state_

ChatState yaze::editor::AgentUIContext::chat_state_
private

Definition at line 426 of file agent_state.h.

Referenced by chat_state(), and chat_state().

◆ collaboration_state_

CollaborationState yaze::editor::AgentUIContext::collaboration_state_
private

Definition at line 427 of file agent_state.h.

Referenced by collaboration_state(), and collaboration_state().

◆ multimodal_state_

MultimodalState yaze::editor::AgentUIContext::multimodal_state_
private

Definition at line 428 of file agent_state.h.

Referenced by multimodal_state(), and multimodal_state().

◆ automation_state_

AutomationState yaze::editor::AgentUIContext::automation_state_
private

Definition at line 429 of file agent_state.h.

Referenced by automation_state(), and automation_state().

◆ agent_config_

AgentConfigState yaze::editor::AgentUIContext::agent_config_
private

Definition at line 430 of file agent_state.h.

Referenced by agent_config(), and agent_config().

◆ rom_sync_state_

RomSyncState yaze::editor::AgentUIContext::rom_sync_state_
private

Definition at line 431 of file agent_state.h.

Referenced by rom_sync_state(), and rom_sync_state().

◆ z3ed_command_state_

Z3EDCommandState yaze::editor::AgentUIContext::z3ed_command_state_
private

Definition at line 432 of file agent_state.h.

Referenced by z3ed_command_state(), and z3ed_command_state().

◆ persona_profile_

PersonaProfile yaze::editor::AgentUIContext::persona_profile_
private

Definition at line 433 of file agent_state.h.

Referenced by persona_profile(), and persona_profile().

◆ proposal_state_

ProposalState yaze::editor::AgentUIContext::proposal_state_
private

Definition at line 434 of file agent_state.h.

Referenced by proposal_state(), and proposal_state().

◆ knowledge_state_

KnowledgeState yaze::editor::AgentUIContext::knowledge_state_
private

Definition at line 435 of file agent_state.h.

Referenced by knowledge_state(), and knowledge_state().

◆ tool_execution_state_

ToolExecutionState yaze::editor::AgentUIContext::tool_execution_state_
private

Definition at line 436 of file agent_state.h.

Referenced by tool_execution_state(), and tool_execution_state().

◆ rom_

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

Definition at line 438 of file agent_state.h.

Referenced by GetRom(), HasRom(), and SetRom().

◆ project_

project::YazeProject* yaze::editor::AgentUIContext::project_ = nullptr
private

Definition at line 439 of file agent_state.h.

Referenced by GetProject(), HasProject(), and SetProject().

◆ asar_wrapper_

core::AsarWrapper* yaze::editor::AgentUIContext::asar_wrapper_ = nullptr
private

Definition at line 440 of file agent_state.h.

Referenced by GetAsarWrapper(), HasAsarWrapper(), and SetAsarWrapper().

◆ change_listeners_

std::vector<ChangeCallback> yaze::editor::AgentUIContext::change_listeners_
private

Definition at line 441 of file agent_state.h.

Referenced by AddChangeListener(), and NotifyChanged().


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