Interface LongTermMemoryRetrievalInput

interface LongTermMemoryRetrievalInput {
    userId: string;
    organizationId?: string;
    conversationId: string;
    personaId: string;
    mode: string;
    queryText: string;
    memoryPolicy: ResolvedLongTermMemoryPolicy;
    maxContextChars?: number;
    topKByScope?: Partial<Record<"user" | "persona" | "organization", number>>;
}

Properties

userId: string
organizationId?: string
conversationId: string
personaId: string
mode: string
queryText: string
maxContextChars?: number

Advisory character budget for the returned context string. Implementations may truncate to stay within this budget.

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

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