Class: SessionSummaryStore
Defined in: packages/agentos/src/memory/retrieval/session/SessionSummaryStore.ts:99
Dedicated vector store wrapper for session-level summaries.
Example
const store = new SessionSummaryStore({ vectorStore, embeddingManager });
await store.indexSession({
scope: 'user', scopeId: 'u42', sessionId: 's-7',
summary: 'User discussed adopting a rescue dog from Portland shelter...',
});
const hits = await store.querySessions('rescue dog adoption', {
scope: 'user', scopeId: 'u42', topK: 5,
});
Constructors
Constructor
new SessionSummaryStore(
opts):SessionSummaryStore
Defined in: packages/agentos/src/memory/retrieval/session/SessionSummaryStore.ts:104
Parameters
opts
Returns
SessionSummaryStore
Methods
indexSession()
indexSession(
input):Promise<void>
Defined in: packages/agentos/src/memory/retrieval/session/SessionSummaryStore.ts:115
Embed the summary and upsert into the scope-specific collection.
Upsert is idempotent: re-indexing the same sessionId replaces
the prior vector rather than appending a duplicate.
Parameters
input
Returns
Promise<void>
querySessions()
querySessions(
query,options):Promise<QueriedSession[]>
Defined in: packages/agentos/src/memory/retrieval/session/SessionSummaryStore.ts:142
Embed the query and return the top-K sessions for the given
scope, ordered by descending similarity. Returns [] when the
collection does not yet exist (cold scope).
Parameters
query
string
options
scope
scopeId
string
topK
number
Returns
Promise<QueriedSession[]>