Interface: RollingSummaryMemoryUpdate
Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:12
Properties
contributorIds?
optionalcontributorIds: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?
optionalmemoryPolicy: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?
optionalmode:string
Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:20
Optional routing mode (customFlags.mode, persona id, etc.).
organizationId?
optionalorganizationId: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?
optionalprofileId: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()?
optionalrecordSelfChange: <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
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?
optionalsummaryUpdatedAt:number|null
Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:36
When this summary snapshot was updated.
summaryUptoTimestamp?
optionalsummaryUptoTimestamp:number|null
Defined in: packages/agentos/src/core/conversation/IRollingSummaryMemorySink.ts:34
Timestamp up to which messages are considered summarized.
turnScopes?
optionalturnScopes: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