@elizaos/core v1.0.6 / v2 / 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​
Defined in​
packages/core/src/specs/v2/types.ts:294
entityId​
entityId: `${string}-${string}-${string}-${string}-${string}`
Associated user ID
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:297
agentId?​
optional
agentId: `${string}-${string}-${string}-${string}-${string}`
Associated agent ID
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:300
createdAt?​
optional
createdAt:number
Optional creation timestamp in milliseconds since epoch
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:303
embedding?​
optional
embedding:number
[]
Optional embedding vector for semantic search
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:309
roomId​
roomId: `${string}-${string}-${string}-${string}-${string}`
Associated room ID
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:312
worldId?​
optional
worldId: `${string}-${string}-${string}-${string}-${string}`
Associated world ID (optional)
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:315
unique?​
optional
unique:boolean
Whether memory is unique (used to prevent duplicates)
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:318
similarity?​
optional
similarity:number
Embedding similarity score (set when retrieved via search)
Inherited from​
Defined in​
packages/core/src/specs/v2/types.ts:321
metadata​
metadata:
MessageMetadata
Metadata for the memory
Overrides​
Defined in​
packages/core/src/specs/v2/types.ts:2084
content​
content:
Content
&object
Memory content
Type declaration​
text​
text:
string