Class: LiterLlm::AssistantPartOutputAudio
- Inherits:
-
Data
- Object
- Data
- LiterLlm::AssistantPartOutputAudio
- Extended by:
- T::Sig
- Includes:
- AssistantPart
- Defined in:
- lib/liter_llm/native.rb
Overview
Audio produced by the model (e.g. ‘gpt-4o-audio-preview`).
Instance Attribute Summary collapse
-
#audio ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#audio ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
412 413 414 |
# File 'lib/liter_llm/native.rb', line 412 def audio @audio end |
Class Method Details
.from_hash(hash) ⇒ Object
430 431 432 |
# File 'lib/liter_llm/native.rb', line 430 def self.from_hash(hash) new(audio: hash[:audio] || hash["audio"]) end |
Instance Method Details
#output_audio? ⇒ Boolean
426 427 428 |
# File 'lib/liter_llm/native.rb', line 426 def output_audio? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#output_image? ⇒ Boolean
424 |
# File 'lib/liter_llm/native.rb', line 424 def output_image? = false |
#refusal? ⇒ Boolean
422 |
# File 'lib/liter_llm/native.rb', line 422 def refusal? = false |
#text? ⇒ Boolean
420 |
# File 'lib/liter_llm/native.rb', line 420 def text? = false |