class
MCProtocol::ServerCapabilities
- MCProtocol::ServerCapabilities
- Reference
- Object
Overview
Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/server_capabilities.crConstructors
- .new(pull : JSON::PullParser)
- .new(experimental : JSON::Any | Nil = Nil, logging : JSON::Any | Nil = Nil, prompts : ServerCapabilitiesPrompts | Nil = Nil, resources : ServerCapabilitiesResources | Nil = Nil, tools : ServerCapabilitiesTools | Nil = Nil)
Instance Method Summary
-
#experimental : JSON::Any | Nil
Experimental, non-standard capabilities that the server supports.
-
#logging : JSON::Any | Nil
Present if the server supports sending log messages to the client.
-
#prompts : ServerCapabilitiesPrompts | Nil
Present if the server offers any prompt templates.
-
#resources : ServerCapabilitiesResources | Nil
Present if the server offers any resources to read.
-
#tools : ServerCapabilitiesTools | Nil
Present if the server offers any tools to call.
Constructor Detail
def self.new(experimental : JSON::Any | Nil = Nil, logging : JSON::Any | Nil = Nil, prompts : ServerCapabilitiesPrompts | Nil = Nil, resources : ServerCapabilitiesResources | Nil = Nil, tools : ServerCapabilitiesTools | Nil = Nil)
#
Instance Method Detail
def experimental : JSON::Any | Nil
#
Experimental, non-standard capabilities that the server supports.
def resources : ServerCapabilitiesResources | Nil
#
Present if the server offers any resources to read.