Class: ActivePinecone::Message
- Inherits:
-
Object
- Object
- ActivePinecone::Message
- Defined in:
- lib/active_pinecone/message.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#references ⇒ Object
readonly
Returns the value of attribute references.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role:, content:, references: []) ⇒ Message
constructor
A new instance of Message.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/active_pinecone/message.rb', line 3 def content @content end |
#references ⇒ Object (readonly)
Returns the value of attribute references.
3 4 5 |
# File 'lib/active_pinecone/message.rb', line 3 def references @references end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
3 4 5 |
# File 'lib/active_pinecone/message.rb', line 3 def role @role end |