Class: ActivePinecone::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/active_pinecone/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role:, content:, references: []) ⇒ Message

Returns a new instance of Message.



5
6
7
8
9
# File 'lib/active_pinecone/message.rb', line 5

def initialize(role:, content:, references: [])
  @role = role
  @content = content
  @references = references
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



3
4
5
# File 'lib/active_pinecone/message.rb', line 3

def content
  @content
end

#referencesObject (readonly)

Returns the value of attribute references.



3
4
5
# File 'lib/active_pinecone/message.rb', line 3

def references
  @references
end

#roleObject (readonly)

Returns the value of attribute role.



3
4
5
# File 'lib/active_pinecone/message.rb', line 3

def role
  @role
end