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.

msg = Riffer::Messages::System.new("You are a helpful assistant.")
msg.role     # => :system
msg.content  # => "You are a helpful assistant."

Instance Attribute Summary

Attributes inherited from Base

#content

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_h

Constructor Details

This class inherits a constructor from Riffer::Messages::Base

Instance Method Details

#roleObject

: () -> Symbol



12
13
14
# File 'lib/riffer/messages/system.rb', line 12

def role
  :system
end