class MCProtocol::ResourceTemplate

Overview

A template description for resources available on the server.

Included Modules

Defined in:

mcprotocol/resource_template.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, uriTemplate : URI, annotations : ResourceTemplateAnnotations | Nil = Nil, description : String | Nil = Nil, mimeType : String | Nil = Nil) #

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

[View source]

Instance Method Detail

def annotations : ResourceTemplateAnnotations | Nil #

[View source]
def description : String | Nil #

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.


[View source]
def mimeType : String | Nil #

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.


[View source]
def name : String #

A human-readable name for the type of resource this template refers to.

This can be used by clients to populate UI elements.


[View source]
def uriTemplate : URI #

A URI template (according to RFC 6570) that can be used to construct resource URIs.


[View source]