Class: Rubyagents::UserMessage

Inherits:
Data
  • Object
show all
Defined in:
lib/rubyagents/memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content ⇒ Object (readonly)

Returns the value of attribute content

Returns:

  • (Object) —

    the current value of content



29
30
31
# File 'lib/rubyagents/memory.rb', line 29

def content
  @content
end

Instance Method Details

#to_h ⇒ Object



30
31
32
# File 'lib/rubyagents/memory.rb', line 30

def to_h
  { type: "user_message", content: content }
end