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
330 331 332 |
# File 'lib/liter_llm/native.rb', line 330 def document @document end |
Class Method Details
.from_hash(hash) ⇒ Object
353 354 355 |
# File 'lib/liter_llm/native.rb', line 353 def self.from_hash(hash) new(document: hash[:document] || hash["document"]) end |
Instance Method Details
#document? ⇒ Boolean
345 |
# File 'lib/liter_llm/native.rb', line 345 def document? = true |
#image_url? ⇒ Boolean
342 |
# File 'lib/liter_llm/native.rb', line 342 def image_url? = false |
#input_audio? ⇒ Boolean
348 |
# File 'lib/liter_llm/native.rb', line 348 def input_audio? = false |
#text? ⇒ Boolean
339 |
# File 'lib/liter_llm/native.rb', line 339 def text? = false |