struct
ACP::Protocol::SessionMode
- ACP::Protocol::SessionMode
- Struct
- Value
- Object
Overview
A mode the agent can operate in.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(id : String, name : String, description : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#description : String | Nil
Optional description providing more details about what this mode does.
-
#description=(description : String | Nil)
Optional description providing more details about what this mode does.
-
#id : String
Unique identifier for this mode (required).
-
#id=(id : String)
Unique identifier for this mode (required).
-
#label : String
Backward-compatible alias for
#name. -
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#name : String
Human-readable name of the mode (required).
-
#name=(name : String)
Human-readable name of the mode (required).
Constructor Detail
def self.new(id : String, name : String, description : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def description : String | Nil
#
Optional description providing more details about what this mode does.
def description=(description : String | Nil)
#
Optional description providing more details about what this mode does.