class
MCProtocol::ClientCapabilities
- MCProtocol::ClientCapabilities
- Reference
- Object
Overview
Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/client_capabilities.crConstructors
- .new(pull : JSON::PullParser)
- .new(experimental : JSON::Any | Nil = Nil, roots : ClientCapabilitiesRoots | Nil = Nil, sampling : JSON::Any | Nil = Nil)
Instance Method Summary
-
#experimental : JSON::Any | Nil
Experimental, non-standard capabilities that the client supports.
-
#roots : ClientCapabilitiesRoots | Nil
Present if the client supports listing roots.
-
#sampling : JSON::Any | Nil
Present if the client supports sampling from an LLM.
Constructor Detail
def self.new(experimental : JSON::Any | Nil = Nil, roots : ClientCapabilitiesRoots | Nil = Nil, sampling : JSON::Any | Nil = Nil)
#
Instance Method Detail
def experimental : JSON::Any | Nil
#
Experimental, non-standard capabilities that the client supports.