Class: Rager::Chat::Message

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rager/chat/message.rb

Instance Method Summary collapse

Instance Method Details

#to_json(options = nil) ⇒ Object



15
16
17
18
19
20
# File 'lib/rager/chat/message.rb', line 15

def to_json(options = nil)
  {
    role: role,
    content: content
  }.to_json(options)
end