Class: Ask::Agent::Memory::Entry
- Inherits:
-
Data
- Object
- Data
- Ask::Agent::Memory::Entry
- Defined in:
- lib/ask/agent/memory.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
32 33 34 |
# File 'lib/ask/agent/memory.rb', line 32 def content @content end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
32 33 34 |
# File 'lib/ask/agent/memory.rb', line 32 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
32 33 34 |
# File 'lib/ask/agent/memory.rb', line 32 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
32 33 34 |
# File 'lib/ask/agent/memory.rb', line 32 def @metadata end |
Instance Method Details
#to_h ⇒ Object
33 |
# File 'lib/ask/agent/memory.rb', line 33 def to_h = { id: id, content: content, metadata: , created_at: created_at.iso8601 } |