Class: LiterLlm::EmbeddingContentPartImageBase64
- Inherits:
-
Data
- Object
- Data
- LiterLlm::EmbeddingContentPartImageBase64
- Extended by:
- T::Sig
- Includes:
- EmbeddingContentPart
- Defined in:
- lib/liter_llm/native.rb
Overview
Image encoded as a complete data URL.
Instance Attribute Summary collapse
-
#image_base64 ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#image_base64 ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
624 625 626 |
# File 'lib/liter_llm/native.rb', line 624 def image_base64 @image_base64 end |
Class Method Details
.from_hash(hash) ⇒ Object
640 641 642 |
# File 'lib/liter_llm/native.rb', line 640 def self.from_hash(hash) new(image_base64: hash[:image_base64] || hash["image_base64"]) end |
Instance Method Details
#image_base64? ⇒ Boolean
636 637 638 |
# File 'lib/liter_llm/native.rb', line 636 def image_base64? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#image_url? ⇒ Boolean
634 |
# File 'lib/liter_llm/native.rb', line 634 def image_url? = false |
#text? ⇒ Boolean
632 |
# File 'lib/liter_llm/native.rb', line 632 def text? = false |