Class: LiterLlm::ContentPartDocument
- Inherits:
-
Data
- Object
- Data
- LiterLlm::ContentPartDocument
- Extended by:
- T::Sig
- Includes:
- ContentPart
- Defined in:
- lib/liter_llm/native.rb
Overview
Document file (PDF, CSV, etc.) as base64 or URL.
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#document ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
331 332 333 |
# File 'lib/liter_llm/native.rb', line 331 def document @document end |
Class Method Details
.from_hash(hash) ⇒ Object
354 355 356 |
# File 'lib/liter_llm/native.rb', line 354 def self.from_hash(hash) new(document: hash[:document] || hash['document']) end |
Instance Method Details
#document? ⇒ Boolean
346 |
# File 'lib/liter_llm/native.rb', line 346 def document? = true |
#image_url? ⇒ Boolean
343 |
# File 'lib/liter_llm/native.rb', line 343 def image_url? = false |
#input_audio? ⇒ Boolean
349 |
# File 'lib/liter_llm/native.rb', line 349 def input_audio? = false |
#text? ⇒ Boolean
340 |
# File 'lib/liter_llm/native.rb', line 340 def text? = false |