struct ACP::Protocol::AgentInfo

Overview

Metadata about the agent, returned in the initialize response. See: https://agentclientprotocol.com/protocol/initialization#implementation-information

Included Modules

Defined in:

acp/protocol/capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, version : String, title : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def display_name : String #

Returns the display-friendly name (title if available, otherwise name).


[View source]
def name : String #

Intended for programmatic or logical use, but can be used as a display name fallback if title isn't present.


[View source]
def name=(name : String) #

Intended for programmatic or logical use, but can be used as a display name fallback if title isn't present.


[View source]
def title : String | Nil #

Intended for UI and end-user contexts — optimized to be human-readable. If not provided, the name should be used for display.


[View source]
def title=(title : String | Nil) #

Intended for UI and end-user contexts — optimized to be human-readable. If not provided, the name should be used for display.


[View source]
def version : String #

Version of the implementation.


[View source]
def version=(version : String) #

Version of the implementation.


[View source]