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
223 224 225 |
# File 'lib/liter_llm/native.rb', line 223 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
241 242 243 |
# File 'lib/liter_llm/native.rb', line 241 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#document? ⇒ Boolean
235 |
# File 'lib/liter_llm/native.rb', line 235 def document? = false |
#image_url? ⇒ Boolean
233 |
# File 'lib/liter_llm/native.rb', line 233 def image_url? = false |
#input_audio? ⇒ Boolean
237 238 239 |
# File 'lib/liter_llm/native.rb', line 237 def input_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#text? ⇒ Boolean
231 |
# File 'lib/liter_llm/native.rb', line 231 def text? = true |