Class: Protege::ImagePart
- Inherits:
-
Data
- Object
- Data
- Protege::ImagePart
- 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
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
7 8 9 |
# File 'lib/protege/types/image_part.rb', line 7 def data @data end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type
7 8 9 |
# File 'lib/protege/types/image_part.rb', line 7 def media_type @media_type end |