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
332 333 334 |
# File 'lib/liter_llm/native.rb', line 332 def document @document end |
Class Method Details
.from_hash(hash) ⇒ Object
355 356 357 |
# File 'lib/liter_llm/native.rb', line 355 def self.from_hash(hash) new(document: hash[:document] || hash["document"]) end |
Instance Method Details
#document? ⇒ Boolean
347 |
# File 'lib/liter_llm/native.rb', line 347 def document? = true |
#image_url? ⇒ Boolean
344 |
# File 'lib/liter_llm/native.rb', line 344 def image_url? = false |
#input_audio? ⇒ Boolean
350 |
# File 'lib/liter_llm/native.rb', line 350 def input_audio? = false |
#text? ⇒ Boolean
341 |
# File 'lib/liter_llm/native.rb', line 341 def text? = false |