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
272 273 274 |
# File 'lib/liter_llm/native.rb', line 272 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
295 296 297 |
# File 'lib/liter_llm/native.rb', line 295 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#document? ⇒ Boolean
287 |
# File 'lib/liter_llm/native.rb', line 287 def document? = false |
#image_url? ⇒ Boolean
284 |
# File 'lib/liter_llm/native.rb', line 284 def image_url? = false |
#input_audio? ⇒ Boolean
290 |
# File 'lib/liter_llm/native.rb', line 290 def input_audio? = false |
#text? ⇒ Boolean
281 |
# File 'lib/liter_llm/native.rb', line 281 def text? = true |