Skip to content

ema / @internals/db / ShortTermMemoryEntity

Interface: ShortTermMemoryEntity

Defined in: db/base.ts:359

Represents short term memory data structure

Extends

Properties

actorId

ts
actorId: number;

Defined in: db/base.ts:367

The owner of the short term memory


createdAt?

ts
optional createdAt: number;

Defined in: db/base.ts:14

The date and time the entity was created

Inherited from

Entity.createdAt


id?

ts
optional id: number;

Defined in: db/base.ts:10

The unique identifier for the entity

Inherited from

Entity.id


kind

ts
kind: "year" | "month" | "day";

Defined in: db/base.ts:363

The granularity of short term memory


messages?

ts
optional messages: number[];

Defined in: db/base.ts:379

The messages ids facilitating the short term memory, for debugging purpose.


os

ts
os: string;

Defined in: db/base.ts:371

The os when the actor saw the messages.


statement

ts
statement: string;

Defined in: db/base.ts:375

The statement when the actor saw the messages.