Skip to main content

Interface: LongTermMemoryRetrievalInput

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:4

Properties​

conversationId​

conversationId: string

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:7


maxContextChars?​

optional maxContextChars: number

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

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:11


mode​

mode: string

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:9


organizationId?​

optional organizationId: string

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:6


personaId​

personaId: string

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:8


queryText​

queryText: string

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:10


retrievalPolicy?​

optional retrievalPolicy: MemoryRetrievalPolicy

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


topKByScope?​

optional topKByScope: Partial<Record<"user" | "persona" | "organization", number>>

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

Optional per-scope retrieval caps. Implementations are free to ignore/override.


userId​

userId: string

Defined in: packages/agentos/src/core/conversation/ILongTermMemoryRetriever.ts:5