class

MCProtocol::EmbeddedResource

Inherits JSON::Serializable < Reference < Object

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.

Constructors

new(resource : TextResourceContents | BlobResourceContents, annotations : EmbeddedResourceAnnotations | Nil = Nil, type : String = "resource")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

annotations
Source
resource
Source
type
Source