Function: memoryAskerOf()
memoryAskerOf(
context):ReadMemoryPageAsker
Defined in: packages/agentos/src/cognition/memory/io/tools/ReadMemoryPageTool.ts:78
The asker of a tool call, from the context the runtime built; never from the call's arguments.
The subject the runtime put in context.userContext.memorySubject, when it holds a kind of user or session and
a non-empty id, is the asker, whatever context.userContext.userId holds: the subject is the key the turn's memory
is filed under, so a session whose id, or whose user id, is one of the anonymous words reads its own pages and is
never read as nobody. With no such subject the user is context.userContext.userId: an id that names nobody ('',
anonymous_user, anonymous, system, guest), or no id at all, is nobody, and the result has no subject; any
other id is the user of that id, so a context that names a user and no subject is never read as nobody.
Parameters
context
The execution context the tool was called with.
ToolExecutionContext | undefined