struct ACP::Protocol::SessionLoadResult

Overview

Result of the session/load method. Contains mode/config state but NOT a sessionId (unlike session/new).

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(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 #

Session configuration options if supported by the Agent.


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

Session configuration options if supported by the Agent.


[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 #

Mode state if supported by the Agent.


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

Mode state if supported by the Agent.


[View source]
def session_id : String #

Backward-compatible: return a provided session_id or empty string. (session/load doesn't return a sessionId in the ACP spec, so this is for code that expects it.)


[View source]