Class: LiterLlm::ContentPartText
- Inherits:
-
Data
- Object
- Data
- LiterLlm::ContentPartText
- Extended by:
- T::Sig
- Includes:
- ContentPart
- Defined in:
- lib/liter_llm/native.rb
Overview
Plain text.
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
250 251 252 |
# File 'lib/liter_llm/native.rb', line 250 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
268 269 270 |
# File 'lib/liter_llm/native.rb', line 268 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#document? ⇒ Boolean
262 |
# File 'lib/liter_llm/native.rb', line 262 def document? = false |
#image_url? ⇒ Boolean
260 |
# File 'lib/liter_llm/native.rb', line 260 def image_url? = false |
#input_audio? ⇒ Boolean
264 265 266 |
# File 'lib/liter_llm/native.rb', line 264 def input_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#text? ⇒ Boolean
258 |
# File 'lib/liter_llm/native.rb', line 258 def text? = true |