Skip to main content

Interface: RollingSummaryMemoryUpdate

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:12

Properties​

contributorIds?​

optional contributorIds: string[]

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:53

With turnScopes: the explicit user ids whose messages this compaction and the conversation's earlier ones summarized. Each trace the sink files records them, and the recorder notes a session row for each with the write, so forgetUser for any of them finds the trace, in the session's scopes and in its learner's own.


conversationId​

conversationId: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:17


memoryPolicy?​

optional memoryPolicy: ResolvedLongTermMemoryPolicy

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:27

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


mode?​

optional mode: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:20

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


organizationId?​

optional organizationId: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:15

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


personaId​

personaId: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:18


profileId?​

optional profileId: string | null

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:22

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


recordSelfChange()?​

optional recordSelfChange: <T>(input) => Promise<ProposalResult<T>>

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:47

With turnScopes: the learner session's recorder, bound to the turn. A sink that files under the turn's scope ids records each upsert through it as one memory write, or files nothing.

Type Parameters​

T​

T

Parameters​

input​

SessionSelfChange<T>

Returns​

Promise<ProposalResult<T>>


sessionId​

sessionId: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:16


summaryJson​

summaryJson: any

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:32

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


summaryText​

summaryText: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:30

The rolling summary markdown (human-readable).


summaryUpdatedAt?​

optional summaryUpdatedAt: number | null

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:36

When this summary snapshot was updated.


summaryUptoTimestamp?​

optional summaryUptoTimestamp: number | null

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:34

Timestamp up to which messages are considered summarized.


turnScopes?​

optional turnScopes: TurnScopes

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:42

With a learning layer: the turn's scope ids, from the GMI's learner session. The sink files the user, persona and conversation targets under them and records the upsert through recordSelfChange; without them it files under the plain ids and records nothing, as with no layer.


userId​

userId: string

Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:13