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
296 297 298 |
# File 'lib/liter_llm/native.rb', line 296 def document @document end |
Class Method Details
.from_hash(hash) ⇒ Object
314 315 316 |
# File 'lib/liter_llm/native.rb', line 314 def self.from_hash(hash) new(document: hash[:document] || hash["document"]) end |
Instance Method Details
#document? ⇒ Boolean
308 |
# File 'lib/liter_llm/native.rb', line 308 def document? = true |
#image_url? ⇒ Boolean
306 |
# File 'lib/liter_llm/native.rb', line 306 def image_url? = false |
#input_audio? ⇒ Boolean
310 311 312 |
# File 'lib/liter_llm/native.rb', line 310 def input_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#text? ⇒ Boolean
304 |
# File 'lib/liter_llm/native.rb', line 304 def text? = false |