Class: Riffer::Messages::System

Inherits:
Base
  • Object
show all
Defined in:
lib/riffer/messages/system.rb

Overview

Represents a system message (instructions) in a conversation.

Instance Attribute Summary

Attributes inherited from Base

#content, #id

Instance Method Summary collapse

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

#roleObject

– : () -> Symbol



8
9
10
# File 'lib/riffer/messages/system.rb', line 8

def role
  :system
end