Class: Protege::ImagePart

Inherits:
Data
  • Object
show all
Defined in:
lib/protege/types/image_part.rb

Overview

One image-typed message part — a sibling of TextPart for multimodal content. Carries the image's MIME type and its Base64-encoded bytes; the provider renders it into the wire format its API expects (e.g. an OpenAI image_url data URI). Vision-capable models read it as an image.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



7
8
9
# File 'lib/protege/types/image_part.rb', line 7

def data
  @data
end

#media_typeObject (readonly)

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



7
8
9
# File 'lib/protege/types/image_part.rb', line 7

def media_type
  @media_type
end