Class: Protege::DocumentPart
- Inherits:
-
Data
- Object
- Data
- Protege::DocumentPart
- Defined in:
- lib/protege/types/document_part.rb
Overview
One document-typed message part — a sibling of TextPart for multimodal content, used for PDFs.
Carries the filename, MIME type, and Base64-encoded bytes; the provider renders it into the wire
format its API expects (e.g. an OpenAI file block). Document-capable models read the PDF
itself — text and layout — rather than a server-side text extraction.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
8 9 10 |
# File 'lib/protege/types/document_part.rb', line 8 def data @data end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename
8 9 10 |
# File 'lib/protege/types/document_part.rb', line 8 def filename @filename end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type
8 9 10 |
# File 'lib/protege/types/document_part.rb', line 8 def media_type @media_type end |