Skip to main content

Interface: WikiPageStorePort

Defined in: packages/agentos/src/cognition/substrate/memory/wiki/types.ts:71

What a wiki page store answers, whatever holds its pages: the operator's files, or one subject's rows.

Methods​

deletePage()​

deletePage(id): Promise<boolean>

Defined in: packages/agentos/src/cognition/substrate/memory/wiki/types.ts:79

Deletes a page with its chunks; true when the store had it.

Parameters​

id​

string

Returns​

Promise<boolean>


index()​

index(opts?): Promise<WikiIndexResult>

Defined in: packages/agentos/src/cognition/substrate/memory/wiki/types.ts:77

Files the pages' chunks for recall; with force, every page's again.

Parameters​

opts?​
force?​

boolean

Returns​

Promise<WikiIndexResult>


readPage()​

readPage(id): Promise<WikiPage | null>

Defined in: packages/agentos/src/cognition/substrate/memory/wiki/types.ts:73

The page of that id, or null when the store has none.

Parameters​

id​

string

Returns​

Promise<WikiPage | null>


writePage()​

writePage(page): Promise<void>

Defined in: packages/agentos/src/cognition/substrate/memory/wiki/types.ts:75

Writes a page, replacing the one of its id.

Parameters​

page​

WikiPage

Returns​

Promise<void>