Skip to main content

Function: registerUnregisteredConversationScopes()

registerUnregisteredConversationScopes(db, brainId): Promise<number>

Defined in: packages/agentos/src/cognition/memory/retrieval/store/conversationScopes.ts:38

Registers every conversation scope this brain holds traces under and no row for, such as one an import wrote. A scope id that is not a key conversationScopeKey wrote gets no row.

Parameters​

db​

Pick<StorageAdapter, "run" | "all">

brainId​

string

Returns​

Promise<number>

How many rows it added.