struct
ACP::Protocol::SessionNewResult
- ACP::Protocol::SessionNewResult
- Struct
- Value
- Object
Overview
Result of the session/new method (Agent → Client).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(session_id : String, 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
Initial session configuration options if supported by the Agent.
-
#config_options=(config_options : Array(ConfigOption) | Nil)
Initial 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
Initial mode state if supported by the Agent.
-
#modes=(modes : SessionModeState | Nil)
Initial mode state if supported by the Agent.
-
#session_id : String
The unique session identifier assigned by the agent (required).
-
#session_id=(session_id : String)
The unique session identifier assigned by the agent (required).
Constructor Detail
Instance Method Detail
Initial session configuration options if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-config-options
Initial session configuration options if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-config-options
Initial mode state if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-modes
Initial mode state if supported by the Agent. See: https://agentclientprotocol.com/protocol/session-modes
The unique session identifier assigned by the agent (required).