struct
ACP::Protocol::SessionModeState
- ACP::Protocol::SessionModeState
- Struct
- Value
- Object
Overview
The set of modes and the one currently active.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(current_mode_id : String, available_modes : Array(SessionMode) = [] of SessionMode, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#available_modes : Array(SessionMode)
The set of modes that the Agent can operate in.
-
#available_modes=(available_modes : Array(SessionMode))
The set of modes that the Agent can operate in.
-
#current_mode_id : String
The current mode the Agent is in.
-
#current_mode_id=(current_mode_id : String)
The current mode the Agent is in.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
Constructor Detail
def self.new(current_mode_id : String, available_modes : Array(SessionMode) = [] of SessionMode, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def available_modes=(available_modes : Array(SessionMode))
#
The set of modes that the Agent can operate in.