class

MCProtocol::ImageContent

Inherits JSON::Serializable < Reference < Object

An image provided to or from an LLM.

Constructors

new(data : String, mimeType : String, annotations : ImageContentAnnotations | Nil = Nil, type : String = "image")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

annotations
Source
data

The base64-encoded image data.

Source
mimeType

The MIME type of the image. Different providers may support different image types.

Source
type
Source