Class: LiterLlm::MessageFunction
- Inherits:
-
Data
- Object
- Data
- LiterLlm::MessageFunction
- Extended by:
- T::Sig
- Includes:
- Message
- Defined in:
- lib/liter_llm/native.rb
Overview
Deprecated legacy function-role message; retained for API compatibility.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #assistant? ⇒ Boolean
- #developer? ⇒ Boolean
- #function? ⇒ Boolean
- #system? ⇒ Boolean
- #tool? ⇒ Boolean
- #user? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
212 213 214 |
# File 'lib/liter_llm/native.rb', line 212 def value @value 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(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#assistant? ⇒ Boolean
227 |
# File 'lib/liter_llm/native.rb', line 227 def assistant? = false |
#developer? ⇒ Boolean
233 |
# File 'lib/liter_llm/native.rb', line 233 def developer? = false |
#function? ⇒ Boolean
236 |
# File 'lib/liter_llm/native.rb', line 236 def function? = true |
#system? ⇒ Boolean
221 |
# File 'lib/liter_llm/native.rb', line 221 def system? = false |
#tool? ⇒ Boolean
230 |
# File 'lib/liter_llm/native.rb', line 230 def tool? = false |
#user? ⇒ Boolean
224 |
# File 'lib/liter_llm/native.rb', line 224 def user? = false |