Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

404 B
Raw Blame
/** Keep the hosted identity compact without inferring the service edition. */
export function formatHostedIdentity(
  accountId?: string | null,
  userId?: string | null,
): string | null {
  const account = accountId?.trim() ?? ''
  const user = userId?.trim() ?? ''
  if (!account || !user) return null
  return account === 'default' && user === 'default'
    ? 'default'
    : `${account}/${user}`
}