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
213 214 215 |
# File 'lib/liter_llm/native.rb', line 213 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
242 243 244 |
# File 'lib/liter_llm/native.rb', line 242 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#assistant? ⇒ Boolean
228 |
# File 'lib/liter_llm/native.rb', line 228 def assistant? = false |
#developer? ⇒ Boolean
234 |
# File 'lib/liter_llm/native.rb', line 234 def developer? = false |
#function? ⇒ Boolean
237 |
# File 'lib/liter_llm/native.rb', line 237 def function? = true |
#system? ⇒ Boolean
222 |
# File 'lib/liter_llm/native.rb', line 222 def system? = false |
#tool? ⇒ Boolean
231 |
# File 'lib/liter_llm/native.rb', line 231 def tool? = false |
#user? ⇒ Boolean
225 |
# File 'lib/liter_llm/native.rb', line 225 def user? = false |