struct ACP::Protocol::SessionModeState

Overview

The set of modes and the one currently active.

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(current_mode_id : String, available_modes : Array(SessionMode) = [] of SessionMode, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def available_modes : Array(SessionMode) #

The set of modes that the Agent can operate in.


[View source]
def available_modes=(available_modes : Array(SessionMode)) #

The set of modes that the Agent can operate in.


[View source]
def current_mode_id : String #

The current mode the Agent is in.


[View source]
def current_mode_id=(current_mode_id : String) #

The current mode the Agent is in.


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]