class MCProtocol::EmbeddedResource

Overview

The contents of a resource, embedded into a prompt or tool call result.

It is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.

Included Modules

Defined in:

mcprotocol/embedded_resource.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(resource : TextResourceContents | BlobResourceContents, annotations : EmbeddedResourceAnnotations | Nil = Nil, type : String = "resource") #

[View source]

Instance Method Detail

def annotations : EmbeddedResourceAnnotations | Nil #

[View source]

[View source]
def type : String #

[View source]