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
269 270 271 |
# File 'lib/liter_llm/native.rb', line 269 def document @document end |
Class Method Details
.from_hash(hash) ⇒ Object
287 288 289 |
# File 'lib/liter_llm/native.rb', line 287 def self.from_hash(hash) new(document: hash[:document] || hash["document"]) end |
Instance Method Details
#document? ⇒ Boolean
281 |
# File 'lib/liter_llm/native.rb', line 281 def document? = true |
#image_url? ⇒ Boolean
279 |
# File 'lib/liter_llm/native.rb', line 279 def image_url? = false |
#input_audio? ⇒ Boolean
283 284 285 |
# File 'lib/liter_llm/native.rb', line 283 def input_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#text? ⇒ Boolean
277 |
# File 'lib/liter_llm/native.rb', line 277 def text? = false |