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
583 584 585 |
# File 'lib/liter_llm/native.rb', line 583 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
605 606 607 |
# File 'lib/liter_llm/native.rb', line 605 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#assistant? ⇒ Boolean
595 |
# File 'lib/liter_llm/native.rb', line 595 def assistant? = false |
#developer? ⇒ Boolean
599 |
# File 'lib/liter_llm/native.rb', line 599 def developer? = false |
#function? ⇒ Boolean
601 602 603 |
# File 'lib/liter_llm/native.rb', line 601 def function? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#system? ⇒ Boolean
591 |
# File 'lib/liter_llm/native.rb', line 591 def system? = false |
#tool? ⇒ Boolean
597 |
# File 'lib/liter_llm/native.rb', line 597 def tool? = false |
#user? ⇒ Boolean
593 |
# File 'lib/liter_llm/native.rb', line 593 def user? = false |