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(pull : JSON::PullParser)
Sourcenew(resource : TextResourceContents | BlobResourceContents, annotations : EmbeddedResourceAnnotations | Nil = Nil, type : String = "resource")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
annotations
Sourceresource
Sourcetype
Source