Skip to main content

Function: pageOriginOf()

pageOriginOf(raw): WikiPageOrigin

Defined in: packages/agentos/src/cognition/substrate/memory/wiki/WikiPageCodec.ts:37

The origin of a page file's text, from its front matter: compiled when sources is a list that holds an entry, uncertain when the front matter does not parse or sources is there and is not a list, else operator.

A compile lists the traces a page was made from in sources; a page written by hand lists none.

Parameters​

raw​

string

The page file's text.

Returns​

WikiPageOrigin