Class: LiterLlm::AssistantPartText
- Inherits:
-
Data
- Object
- Data
- LiterLlm::AssistantPartText
- Extended by:
- T::Sig
- Includes:
- AssistantPart
- Defined in:
- lib/liter_llm/native.rb
Overview
A text segment of the response.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
343 344 345 |
# File 'lib/liter_llm/native.rb', line 343 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
361 362 363 |
# File 'lib/liter_llm/native.rb', line 361 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#output_audio? ⇒ Boolean
357 358 359 |
# File 'lib/liter_llm/native.rb', line 357 def output_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#output_image? ⇒ Boolean
355 |
# File 'lib/liter_llm/native.rb', line 355 def output_image? = false |
#refusal? ⇒ Boolean
353 |
# File 'lib/liter_llm/native.rb', line 353 def refusal? = false |
#text? ⇒ Boolean
351 |
# File 'lib/liter_llm/native.rb', line 351 def text? = true |