struct
ACP::Protocol::InitializeResult
- ACP::Protocol::InitializeResult
- Struct
- Value
- Object
Overview
Result of the initialize method (Agent → Client).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#agent_capabilities : AgentCapabilities
Capabilities the agent advertises to the client.
-
#agent_capabilities=(agent_capabilities : AgentCapabilities)
Capabilities the agent advertises to the client.
-
#agent_info : AgentInfo | Nil
Metadata about the agent.
-
#agent_info=(agent_info : AgentInfo | Nil)
Metadata about the agent.
-
#auth_methods : Array(JSON::Any) | Nil
Authentication methods the agent supports.
-
#auth_methods=(auth_methods : Array(JSON::Any) | Nil)
Authentication methods the agent supports.
-
#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 agent supports.
-
#protocol_version=(protocol_version : UInt16)
The ACP protocol version the agent supports.
Constructor Detail
Instance Method Detail
Capabilities the agent advertises to the client.
Metadata about the agent. Note: in future versions of the protocol, this will be required.
Metadata about the agent. Note: in future versions of the protocol, this will be required.
Authentication methods the agent supports. If empty or nil, no authentication is required.
Authentication methods the agent supports. If empty or nil, no authentication is required.