struct
ACP::Protocol::InitializeParams
- ACP::Protocol::InitializeParams
- Struct
- Value
- Object
Overview
Params for the initialize method (Client → Agent).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(protocol_version : UInt16, client_capabilities : ClientCapabilities, client_info : ClientInfo | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#client_capabilities : ClientCapabilities
Capabilities the client advertises to the agent.
-
#client_capabilities=(client_capabilities : ClientCapabilities)
Capabilities the client advertises to the agent.
-
#client_info : ClientInfo | Nil
Metadata about the client application.
-
#client_info=(client_info : ClientInfo | Nil)
Metadata about the client application.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#protocol_version : UInt16
The ACP protocol version the client supports.
-
#protocol_version=(protocol_version : UInt16)
The ACP protocol version the client supports.
Constructor Detail
def self.new(protocol_version : UInt16, client_capabilities : ClientCapabilities, client_info : ClientInfo | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def client_capabilities=(client_capabilities : ClientCapabilities)
#
Capabilities the client advertises to the agent.
def client_info : ClientInfo | Nil
#
Metadata about the client application. Note: in future versions of the protocol, this will be required.
def client_info=(client_info : ClientInfo | Nil)
#
Metadata about the client application. Note: in future versions of the protocol, this will be required.