struct ACP::Protocol::SessionNewResult

Overview

Result of the session/new method (Agent → Client).

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(session_id : String, modes : SessionModeState | Nil = nil, config_options : Array(ConfigOption) | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def config_options : Array(ConfigOption) | Nil #

Initial session configuration options if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-config-options


[View source]
def config_options=(config_options : Array(ConfigOption) | Nil) #

Initial session configuration options if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-config-options


[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 modes : SessionModeState | Nil #

Initial mode state if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-modes


[View source]
def modes=(modes : SessionModeState | Nil) #

Initial mode state if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-modes


[View source]
def session_id : String #

The unique session identifier assigned by the agent (required).


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

The unique session identifier assigned by the agent (required).


[View source]