Skip to main content

@elizaos/core v1.0.0-beta.51 / MemoryType

Enumeration: MemoryType

Enumerates the built-in types of memories that can be stored and retrieved.

  • DOCUMENT: Represents a whole document or a large piece of text.
  • FRAGMENT: A chunk or segment of a DOCUMENT, often created for embedding and search.
  • MESSAGE: A conversational message, typically from a user or the agent.
  • DESCRIPTION: A descriptive piece of information, perhaps about an entity or concept.
  • CUSTOM: For any other type of memory not covered by the built-in types. This enum is used in MemoryMetadata to categorize memories and influences how they are processed or queried.

Enumeration Members​

DOCUMENT​

DOCUMENT: "document"

Defined in​

packages/core/src/types.ts:165


FRAGMENT​

FRAGMENT: "fragment"

Defined in​

packages/core/src/types.ts:166


MESSAGE​

MESSAGE: "message"

Defined in​

packages/core/src/types.ts:167


DESCRIPTION​

DESCRIPTION: "description"

Defined in​

packages/core/src/types.ts:168


CUSTOM​

CUSTOM: "custom"

Defined in​

packages/core/src/types.ts:169