Skip to main content

Interface: ReadMemoryPagePort

Defined in: packages/agentos/src/cognition/memory/io/tools/ReadMemoryPageTool.ts:27

The slice of the wiki this tool needs (injected for testability).

Methods​

listPages()​

listPages(asker): Promise<ReadMemoryPageListing[]>

Defined in: packages/agentos/src/cognition/memory/io/tools/ReadMemoryPageTool.ts:34

The asker's own pages and the operator's; with no user, the operator's alone, earlier compiled pages among them.

Parameters​

asker​

ReadMemoryPageAsker

Returns​

Promise<ReadMemoryPageListing[]>


readPage()​

readPage(id, asker): Promise<WikiPage | null>

Defined in: packages/agentos/src/cognition/memory/io/tools/ReadMemoryPageTool.ts:32

The page for asker: the asker's own page of that id first, then the operator's; null for neither, for another subject's page, and for a page an earlier version compiled when a user asks.

Parameters​

id​

string

asker​

ReadMemoryPageAsker

Returns​

Promise<WikiPage | null>