Skip to content

Function: requestMemoryScope()

requestMemoryScope(requestContext): AgentMemoryOption | undefined

Resolve the trusted Mastra memory scope stamped by AppKit middleware.

Pick<RequestContext<unknown>, "get"> | undefined

AgentMemoryOption | undefined