Class: LiterLlm::ContentPartImageUrl
- Inherits:
-
Data
- Object
- Data
- LiterLlm::ContentPartImageUrl
- Extended by:
- T::Sig
- Includes:
- ContentPart
- Defined in:
- lib/liter_llm/native.rb
Overview
Image identified by URL (with optional detail level).
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
246 247 248 |
# File 'lib/liter_llm/native.rb', line 246 def image_url @image_url end |
Class Method Details
.from_hash(hash) ⇒ Object
264 265 266 |
# File 'lib/liter_llm/native.rb', line 264 def self.from_hash(hash) new(image_url: hash[:image_url] || hash["image_url"]) end |
Instance Method Details
#document? ⇒ Boolean
258 |
# File 'lib/liter_llm/native.rb', line 258 def document? = false |
#image_url? ⇒ Boolean
256 |
# File 'lib/liter_llm/native.rb', line 256 def image_url? = true |
#input_audio? ⇒ Boolean
260 261 262 |
# File 'lib/liter_llm/native.rb', line 260 def input_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#text? ⇒ Boolean
254 |
# File 'lib/liter_llm/native.rb', line 254 def text? = false |