struct ACP::Protocol::InitializeResult

Overview

Result of the initialize 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(protocol_version : UInt16, agent_capabilities : AgentCapabilities = AgentCapabilities.new, auth_methods : Array(JSON::Any) | Nil = nil, agent_info : AgentInfo | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def agent_capabilities : AgentCapabilities #

Capabilities the agent advertises to the client.


[View source]
def agent_capabilities=(agent_capabilities : AgentCapabilities) #

Capabilities the agent advertises to the client.


[View source]
def agent_info : AgentInfo | Nil #

Metadata about the agent. Note: in future versions of the protocol, this will be required.


[View source]
def agent_info=(agent_info : AgentInfo | Nil) #

Metadata about the agent. Note: in future versions of the protocol, this will be required.


[View source]
def auth_methods : Array(JSON::Any) | Nil #

Authentication methods the agent supports. If empty or nil, no authentication is required.


[View source]
def auth_methods=(auth_methods : Array(JSON::Any) | Nil) #

Authentication methods the agent supports. If empty or nil, no authentication is required.


[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 protocol_version : UInt16 #

The ACP protocol version the agent supports.


[View source]
def protocol_version=(protocol_version : UInt16) #

The ACP protocol version the agent supports.


[View source]