Class: Riffer::Messages::System
- Defined in:
- lib/riffer/messages/system.rb,
sig/generated/riffer/messages/system.rbs
Overview
Represents a system message (instructions) in a conversation.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#+(other) ⇒ Riffer::Messages::System
-- : (Riffer::Messages::System) -> Riffer::Messages::System.
-
#role ⇒ Symbol
-- : () -> Symbol.
Methods inherited from Base
from_hash, #generate_id, #has_tool_calls?, #initialize, #to_h
Constructor Details
This class inherits a constructor from Riffer::Messages::Base
Instance Method Details
#+(other) ⇒ Riffer::Messages::System
-- : (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 ⇒ Symbol
-- : () -> Symbol
8 9 10 |
# File 'lib/riffer/messages/system.rb', line 8 def role :system end |