Interface RollingSummaryMemoryUpdate

interface RollingSummaryMemoryUpdate {
    userId: string;
    organizationId?: string;
    sessionId: string;
    conversationId: string;
    personaId: string;
    mode?: string;
    profileId?: null | string;
    memoryPolicy?: ResolvedLongTermMemoryPolicy;
    summaryText: string;
    summaryJson: any;
    summaryUptoTimestamp?: null | number;
    summaryUpdatedAt?: null | number;
}

Properties

userId: string
organizationId?: string

Optional organization context (multi-tenant / org-scoped memory).

sessionId: string
conversationId: string
personaId: string
mode?: string

Optional routing mode (customFlags.mode, persona id, etc.).

profileId?: null | string

Compaction profile id used for this update (if profile routing is enabled).

Effective long-term memory policy for this conversation at the time of compaction. Implementations should respect this (e.g., allow per-conversation opt-out).

summaryText: string

The rolling summary markdown (human-readable).

summaryJson: any

The structured memory JSON (memory_json) emitted by the compactor.

summaryUptoTimestamp?: null | number

Timestamp up to which messages are considered summarized.

summaryUpdatedAt?: null | number

When this summary snapshot was updated.