Appearance
ema / @internals/db / LongTermMemoryEntity
Interface: LongTermMemoryEntity
Defined in: packages/ema/src/db/base.ts:510
Represents long term memory data structure
Extends
Properties
actorId
ts
actorId: number;Defined in: packages/ema/src/db/base.ts:514
The owner of the long term memory
createdAt?
ts
optional createdAt: number;Defined in: packages/ema/src/db/base.ts:14
The date and time the entity was created
Inherited from
id?
ts
optional id: number;Defined in: packages/ema/src/db/base.ts:10
The unique identifier for the entity
Inherited from
index0
ts
index0: string;Defined in: packages/ema/src/db/base.ts:518
The 0-index to search, a.k.a. 一级分类
index1
ts
index1: string;Defined in: packages/ema/src/db/base.ts:522
The 1-index to search, a.k.a. 二级分类
memory
ts
memory: string;Defined in: packages/ema/src/db/base.ts:526
The memory text when the actor saw the messages.
messages?
ts
optional messages: number[];Defined in: packages/ema/src/db/base.ts:530
The messages ids facilitating the long term memory, for debugging purpose.