class
MCProtocol::ImageContent
- MCProtocol::ImageContent
- Reference
- Object
Overview
An image provided to or from an LLM.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/image_content.crConstructors
- .new(data : String, mimeType : String, annotations : ImageContentAnnotations | Nil = Nil, type : String = "image")
- .new(pull : JSON::PullParser)
Instance Method Summary
- #annotations : ImageContentAnnotations | Nil
-
#data : String
The base64-encoded image data.
-
#mimeType : String
The MIME type of the image.
- #type : String
Constructor Detail
def self.new(data : String, mimeType : String, annotations : ImageContentAnnotations | Nil = Nil, type : String = "image")
#
Instance Method Detail
def mimeType : String
#
The MIME type of the image. Different providers may support different image types.