Class: Riffer::Messages::User

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

Overview

Represents a user message in a conversation.

msg = Riffer::Messages::User.new("Hello!")
msg.role     # => :user
msg.content  # => "Hello!"

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/user.rb', line 12

def role
  :user
end