MemoryEntry
Types for the cross-session long-term memory system.
These types define the data structures used by MemoryService implementations for storing, searching, and managing cross-session knowledge.
Properties
Section titled “Properties”author?
Section titled “author?”optional author?: string;Who authored the original content: ‘user’ | ‘assistant’ | agent name
content
Section titled “content”content: string;The memory content (extracted fact, summary, or raw text)
createdAt
Section titled “createdAt”createdAt: Date;When the memory was created
id: string;Unique identifier for this memory
metadata?
Section titled “metadata?”optional metadata?: Record<string, unknown>;Structured metadata for filtering
score?
Section titled “score?”optional score?: number;Relevance score (populated by search, not storage)
sessionId
Section titled “sessionId”sessionId: string;The session this memory was derived from
userId
Section titled “userId”userId: string;The user this memory belongs to