Manager Helper
Public header:
#include "brookesia/agent_helper/manager.hpp"
Overview
Raw Doxygen API for the Manager helper: types, enums, methods, and macros.
API Reference
Header File
Classes
-
class Manager : public esp_brookesia::service::helper::Base<Manager>
Helper schema definitions for the agent-manager service.
Public Types
-
enum class AgentGeneralFunction : uint8_t
Optional per-agent functions surfaced by the manager.
Values:
-
enumerator InterruptSpeaking
-
enumerator Max
-
enumerator InterruptSpeaking
-
enum class AgentGeneralEvent : uint8_t
Optional per-agent events surfaced by the manager.
Values:
-
enumerator SpeakingStatusChanged
-
enumerator ListeningStatusChanged
-
enumerator AgentSpeakingTextGot
-
enumerator UserSpeakingTextGot
-
enumerator EmoteGot
-
enumerator Max
-
enumerator SpeakingStatusChanged
-
enum class ChatMode : uint8_t
Conversation mode used by the active agent.
Values:
-
enumerator RealTime
-
enumerator Manual
-
enumerator Max
-
enumerator RealTime
-
enum class GeneralAction : uint8_t
High-level actions accepted by the agent manager.
Values:
-
enumerator TimeSync
-
enumerator Activate
-
enumerator Start
-
enumerator Sleep
-
enumerator WakeUp
-
enumerator Stop
-
enumerator Max
-
enumerator TimeSync
-
enum class GeneralEvent : uint8_t
High-level completion events emitted by managed agents.
Values:
-
enumerator TimeSynced
-
enumerator Activated
-
enumerator Started
-
enumerator Slept
-
enumerator Awake
-
enumerator Stopped
-
enumerator Max
-
enumerator TimeSynced
-
enum class GeneralState : uint8_t
State-machine states used by the agent manager.
Values:
-
enumerator TimeSyncing
-
enumerator Ready
-
enumerator Activating
-
enumerator Activated
-
enumerator Starting
-
enumerator Started
-
enumerator Sleeping
-
enumerator Slept
-
enumerator WakingUp
-
enumerator Stopping
-
enumerator Max
-
enumerator TimeSyncing
Public Static Functions
-
static inline constexpr std::string_view get_name()
Name of the agent-manager service.
- Returns
std::string_view Stable service name.
-
struct AgentAttributes
Public metadata describing one agent implementation.
Public Functions
-
inline std::string get_name() const
Get the agent name stored in the attributes.
- Returns
std::string Agent name.
-
inline bool is_general_functions_supported(AgentGeneralFunction function) const
Check whether an optional general function is supported.
- Parameters
function – [in] Function to check.
- Returns
true if the function is listed in
support_general_functions.
-
inline bool is_general_events_supported(AgentGeneralEvent event) const
Check whether an optional general event is supported.
- Parameters
event – [in] Event to check.
- Returns
true if the event is listed in
support_general_events.
Public Members
-
std::string name
Agent name exposed to the manager.
-
AgentOperationTimeout operation_timeout = {}
Timeout configuration for lifecycle actions.
-
std::vector<AgentGeneralFunction> support_general_functions = {}
Optional functions supported by the agent.
-
std::vector<AgentGeneralEvent> support_general_events = {}
Optional events emitted by the agent.
-
bool require_time_sync = false
Whether activation requires SNTP synchronization first.
-
inline std::string get_name() const
-
struct AgentOperationTimeout
Timeout budget for the major lifecycle operations of an agent.
-
enum class AgentGeneralFunction : uint8_t