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
110 111 112 |
# File 'lib/liter_llm/native.rb', line 110 def image_url @image_url end |
Class Method Details
.from_hash(hash) ⇒ Object
128 129 130 |
# File 'lib/liter_llm/native.rb', line 128 def self.from_hash(hash) new(image_url: hash[:image_url] || hash["image_url"]) end |
Instance Method Details
#output_audio? ⇒ Boolean
124 125 126 |
# File 'lib/liter_llm/native.rb', line 124 def output_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#output_image? ⇒ Boolean
122 |
# File 'lib/liter_llm/native.rb', line 122 def output_image? = true |
#refusal? ⇒ Boolean
120 |
# File 'lib/liter_llm/native.rb', line 120 def refusal? = false |
#text? ⇒ Boolean
118 |
# File 'lib/liter_llm/native.rb', line 118 def text? = false |