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
64 65 66 |
# File 'lib/liter_llm/native.rb', line 64 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
82 83 84 |
# File 'lib/liter_llm/native.rb', line 82 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#output_audio? ⇒ Boolean
78 79 80 |
# File 'lib/liter_llm/native.rb', line 78 def output_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#output_image? ⇒ Boolean
76 |
# File 'lib/liter_llm/native.rb', line 76 def output_image? = false |
#refusal? ⇒ Boolean
74 |
# File 'lib/liter_llm/native.rb', line 74 def refusal? = false |
#text? ⇒ Boolean
72 |
# File 'lib/liter_llm/native.rb', line 72 def text? = true |