Function: ensureScopeRow()
ensureScopeRow(
db,brainId,scopeId,now):Promise<void>
Defined in: packages/agentos/src/cognition/memory/retrieval/store/conversationScopes.ts:16
The registry row of one conversation scope, written once: a second call changes nothing.
Parameters
db
Pick<StorageAdapter, "run">
The adapter, the Brain, or the transaction the scope's trace is written in.
brainId
string
scopeId
string
now
number
The row's created_at when this call writes it, in Unix milliseconds.
Returns
Promise<void>
Throws
TypeError when scopeId is not a key conversationScopeKey built.