Interface: LongTermMemoryRetrievalInput
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:5
Properties
conversationId
conversationId:
string
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:8
maxContextChars?
optionalmaxContextChars:number
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:18
Advisory character budget for the returned context string. Implementations may truncate to stay within this budget.
memoryPolicy
memoryPolicy:
ResolvedLongTermMemoryPolicy
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:12
mode
mode:
string
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:10
organizationId?
optionalorganizationId:string
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:7
personaId
personaId:
string
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:9
queryText
queryText:
string
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:11
retrievalPolicy?
optionalretrievalPolicy:MemoryRetrievalPolicy
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:13
topKByScope?
optionaltopKByScope:Partial<Record<"user"|"persona"|"organization",number>>
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:23
Optional per-scope retrieval caps. Implementations are free to ignore/override.
turnScopes?
optionalturnScopes:TurnScopes
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:29
With a learning layer: the turn's scope ids, from the GMI's learner session. A retriever reads the user, persona and conversation scopes under them (a learner's, or the session's own form on a turn with no learner); without them it reads under the plain ids, as with no layer.
userId
userId:
string
Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:6