A memory record stored in the storage provider.

interface MemoryRecord {
    id: string;
    sessionId: string;
    userId: string;
    appName: string;
    timestamp: string;
    content: MemoryContent;
    embedding?: number[];
}

Properties

id: string

Unique identifier for this memory

sessionId: string

Session this memory was created from

userId: string

User who owns this memory

appName: string

Application name

timestamp: string

When this memory was created

content: MemoryContent

The memory content - structure depends on SummaryProvider. Could be: raw text, structured summary, custom schema.

embedding?: number[]

Vector embedding (if EmbeddingProvider configured). Storage provider can use this for similarity search.