class
MCProtocol::EmbeddedResource
- MCProtocol::EmbeddedResource
- Reference
- Object
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
- JSON::Serializable
Defined in:
mcprotocol/embedded_resource.crConstructors
- .new(pull : JSON::PullParser)
- .new(resource : TextResourceContents | BlobResourceContents, annotations : EmbeddedResourceAnnotations | Nil = Nil, type : String = "resource")
Instance Method Summary
- #annotations : EmbeddedResourceAnnotations | Nil
- #resource : TextResourceContents | BlobResourceContents
- #type : String
Constructor Detail
def self.new(resource : TextResourceContents | BlobResourceContents, annotations : EmbeddedResourceAnnotations | Nil = Nil, type : String = "resource")
#