class MCProtocol::ImageContent

Overview

An image provided to or from an LLM.

Included Modules

Defined in:

mcprotocol/image_content.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : String, mimeType : String, annotations : ImageContentAnnotations | Nil = Nil, type : String = "image") #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def annotations : ImageContentAnnotations | Nil #

[View source]
def data : String #

The base64-encoded image data.


[View source]
def mimeType : String #

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


[View source]
def type : String #

[View source]