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
274 275 276 |
# File 'lib/liter_llm/native.rb', line 274 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
297 298 299 |
# File 'lib/liter_llm/native.rb', line 297 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#document? ⇒ Boolean
289 |
# File 'lib/liter_llm/native.rb', line 289 def document? = false |
#image_url? ⇒ Boolean
286 |
# File 'lib/liter_llm/native.rb', line 286 def image_url? = false |
#input_audio? ⇒ Boolean
292 |
# File 'lib/liter_llm/native.rb', line 292 def input_audio? = false |
#text? ⇒ Boolean
283 |
# File 'lib/liter_llm/native.rb', line 283 def text? = true |