struct ACP::Protocol::SessionMode

Overview

A mode the agent can operate in.

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, name : String, description : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def description : String | Nil #

Optional description providing more details about what this mode does.


[View source]
def description=(description : String | Nil) #

Optional description providing more details about what this mode does.


[View source]
def id : String #

Unique identifier for this mode (required).


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

Unique identifier for this mode (required).


[View source]
def label : String #

Backward-compatible alias for #name.


[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]
def name : String #

Human-readable name of the mode (required).


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

Human-readable name of the mode (required).


[View source]