struct
ACP::Protocol::SessionLoadResult
- ACP::Protocol::SessionLoadResult
- Struct
- Value
- Object
Overview
Result of the session/load method. Contains mode/config state
but NOT a sessionId (unlike session/new).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(modes : SessionModeState | Nil = nil, config_options : Array(ConfigOption) | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#config_options : Array(ConfigOption) | Nil
Session configuration options if supported by the Agent.
-
#config_options=(config_options : Array(ConfigOption) | Nil)
Session configuration options if supported by the Agent.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#modes : SessionModeState | Nil
Mode state if supported by the Agent.
-
#modes=(modes : SessionModeState | Nil)
Mode state if supported by the Agent.
-
#session_id : String
Backward-compatible: return a provided session_id or empty string.
Constructor Detail
def self.new(modes : SessionModeState | Nil = nil, config_options : Array(ConfigOption) | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def config_options : Array(ConfigOption) | Nil
#
Session configuration options if supported by the Agent.
def config_options=(config_options : Array(ConfigOption) | Nil)
#
Session configuration options if supported by the Agent.
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.)