Class: LiterLlm::AssistantPartOutputAudio

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#audioObject (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

Returns:

  • (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

Returns:

  • (Boolean)


424
# File 'lib/liter_llm/native.rb', line 424

def output_image? = false

#refusal?Boolean

Returns:

  • (Boolean)


422
# File 'lib/liter_llm/native.rb', line 422

def refusal? = false

#text?Boolean

Returns:

  • (Boolean)


420
# File 'lib/liter_llm/native.rb', line 420

def text? = false