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
171 172 173 |
# File 'lib/liter_llm/native.rb', line 171 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
193 194 195 |
# File 'lib/liter_llm/native.rb', line 193 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#assistant? ⇒ Boolean
183 |
# File 'lib/liter_llm/native.rb', line 183 def assistant? = false |
#developer? ⇒ Boolean
187 |
# File 'lib/liter_llm/native.rb', line 187 def developer? = false |
#function? ⇒ Boolean
189 190 191 |
# File 'lib/liter_llm/native.rb', line 189 def function? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#system? ⇒ Boolean
179 |
# File 'lib/liter_llm/native.rb', line 179 def system? = false |
#tool? ⇒ Boolean
185 |
# File 'lib/liter_llm/native.rb', line 185 def tool? = false |
#user? ⇒ Boolean
181 |
# File 'lib/liter_llm/native.rb', line 181 def user? = false |