Skip to main content

Function: encodePlainScopeId()

encodePlainScopeId(scope, scopeId): string

Defined in: packages/agentos/src/cognition/memory/retrieval/store/scopeIdForm.ts:97

The encoded form of a scope id a release before the layer filed. A user id is one plain id; a persona id is <userId>::<personaId>, split at its last :: (no shipped persona id holds ::); every other scope keeps its id, since a thread's or an organization's plain form is not re-filed.

Parameters​

scope​

string

scopeId​

string

Returns​

string