Class: LiterLlm::EmbeddingContentPartImageUrl
- Inherits:
-
Data
- Object
- Data
- LiterLlm::EmbeddingContentPartImageUrl
- Extended by:
- T::Sig
- Includes:
- EmbeddingContentPart
- Defined in:
- lib/liter_llm/native.rb
Overview
Image identified by a data URL or HTTP/HTTPS URL.
Instance Attribute Summary collapse
-
#image_url ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#image_url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
379 380 381 |
# File 'lib/liter_llm/native.rb', line 379 def image_url @image_url end |
Class Method Details
.from_hash(hash) ⇒ Object
395 396 397 |
# File 'lib/liter_llm/native.rb', line 395 def self.from_hash(hash) new(image_url: hash[:image_url] || hash["image_url"]) end |
Instance Method Details
#image_base64? ⇒ Boolean
391 392 393 |
# File 'lib/liter_llm/native.rb', line 391 def image_base64? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#image_url? ⇒ Boolean
389 |
# File 'lib/liter_llm/native.rb', line 389 def image_url? = true |
#text? ⇒ Boolean
387 |
# File 'lib/liter_llm/native.rb', line 387 def text? = false |