MCProtocol::ResourceTemplate
Inherits JSON::Serializable < Reference < Object
A template description for resources available on the server.
Constructors
new(name : String, uriTemplate : URI, annotations : ResourceTemplateAnnotations | Nil = Nil, description : String | Nil = Nil, mimeType : String | Nil = Nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
annotations
Sourcedescription
A description of what this template is for.
This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
mimeType
The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
name
A human-readable name for the type of resource this template refers to.
This can be used by clients to populate UI elements.
uriTemplate
A URI template (according to RFC 6570) that can be used to construct resource URIs.