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
198 199 200 |
# File 'lib/liter_llm/native.rb', line 198 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
220 221 222 |
# File 'lib/liter_llm/native.rb', line 220 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#assistant? ⇒ Boolean
210 |
# File 'lib/liter_llm/native.rb', line 210 def assistant? = false |
#developer? ⇒ Boolean
214 |
# File 'lib/liter_llm/native.rb', line 214 def developer? = false |
#function? ⇒ Boolean
216 217 218 |
# File 'lib/liter_llm/native.rb', line 216 def function? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#system? ⇒ Boolean
206 |
# File 'lib/liter_llm/native.rb', line 206 def system? = false |
#tool? ⇒ Boolean
212 |
# File 'lib/liter_llm/native.rb', line 212 def tool? = false |
#user? ⇒ Boolean
208 |
# File 'lib/liter_llm/native.rb', line 208 def user? = false |