Class: LiterLlm::AssistantPartOutputImage
- Inherits:
-
Data
- Object
- Data
- LiterLlm::AssistantPartOutputImage
- Extended by:
- T::Sig
- Includes:
- AssistantPart
- Defined in:
- lib/liter_llm/native.rb
Overview
An image produced by the model (e.g. gpt-image-1, Gemini Imagen).
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
416 417 418 |
# File 'lib/liter_llm/native.rb', line 416 def image_url @image_url end |
Class Method Details
.from_hash(hash) ⇒ Object
434 435 436 |
# File 'lib/liter_llm/native.rb', line 434 def self.from_hash(hash) new(image_url: hash[:image_url] || hash["image_url"]) end |
Instance Method Details
#output_audio? ⇒ Boolean
430 431 432 |
# File 'lib/liter_llm/native.rb', line 430 def output_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#output_image? ⇒ Boolean
428 |
# File 'lib/liter_llm/native.rb', line 428 def output_image? = true |
#refusal? ⇒ Boolean
426 |
# File 'lib/liter_llm/native.rb', line 426 def refusal? = false |
#text? ⇒ Boolean
424 |
# File 'lib/liter_llm/native.rb', line 424 def text? = false |