Skip to main content

@elizaos/core v1.0.0-beta.34 / MessageMemory

Interface: MessageMemory

Specialized memory type for messages with enhanced type checking

Extends

Properties

id?

optional id: `${string}-${string}-${string}-${string}-${string}`

Optional unique identifier

Inherited from

Memory.id

Defined in

packages/core/src/types.ts:184


entityId

entityId: `${string}-${string}-${string}-${string}-${string}`

Associated user ID

Inherited from

Memory.entityId

Defined in

packages/core/src/types.ts:187


agentId?

optional agentId: `${string}-${string}-${string}-${string}-${string}`

Associated agent ID

Inherited from

Memory.agentId

Defined in

packages/core/src/types.ts:190


createdAt?

optional createdAt: number

Optional creation timestamp in milliseconds since epoch

Inherited from

Memory.createdAt

Defined in

packages/core/src/types.ts:193


embedding?

optional embedding: number[]

Optional embedding vector for semantic search

Inherited from

Memory.embedding

Defined in

packages/core/src/types.ts:199


roomId

roomId: `${string}-${string}-${string}-${string}-${string}`

Associated room ID

Inherited from

Memory.roomId

Defined in

packages/core/src/types.ts:202


unique?

optional unique: boolean

Whether memory is unique (used to prevent duplicates)

Inherited from

Memory.unique

Defined in

packages/core/src/types.ts:205


similarity?

optional similarity: number

Embedding similarity score (set when retrieved via search)

Inherited from

Memory.similarity

Defined in

packages/core/src/types.ts:208


metadata

metadata: MessageMetadata

Metadata for the memory

Overrides

Memory.metadata

Defined in

packages/core/src/types.ts:1726


content

content: Content & object

Memory content

Type declaration

text

text: string

Overrides

Memory.content

Defined in

packages/core/src/types.ts:1727