Skip to main content

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

Interface: BaseMetadata

Base interface for all memory metadata types. It includes common properties for all memories, such as:

  • type: The kind of memory (e.g., MemoryType.MESSAGE, MemoryType.DOCUMENT).
  • source: An optional string indicating the origin of the memory (e.g., 'discord', 'user_input').
  • sourceId: An optional UUID linking to a source entity or object.
  • scope: The visibility scope of the memory (shared, private, or room).
  • timestamp: An optional numerical timestamp (e.g., milliseconds since epoch) of when the memory was created or relevant.
  • tags: Optional array of strings for categorizing or filtering memories. Specific metadata types like DocumentMetadata or MessageMetadata extend this base.