Class: Riffer::Messages::System
- Defined in:
- lib/riffer/messages/system.rb
Overview
Represents a system message (instructions) in a conversation.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#+(other) ⇒ Object
– : (Riffer::Messages::System) -> Riffer::Messages::System.
-
#role ⇒ Object
– : () -> Symbol.
Methods inherited from Base
from_hash, #has_tool_calls?, #initialize, #to_h
Constructor Details
This class inherits a constructor from Riffer::Messages::Base
Instance Method Details
#+(other) ⇒ Object
– : (Riffer::Messages::System) -> Riffer::Messages::System
14 15 16 |
# File 'lib/riffer/messages/system.rb', line 14 def +(other) self.class.new("#{content}\n\n#{other.content}") end |
#role ⇒ Object
– : () -> Symbol
8 9 10 |
# File 'lib/riffer/messages/system.rb', line 8 def role :system end |