Function: withRequestMemoryScope()
withRequestMemoryScope<
T>(options,requestContext):T&object
Overlay trusted request memory identifiers onto Mastra execution options.
Type Parameters
Section titled “Type Parameters”T extends object
Parameters
Section titled “Parameters”options
Section titled “options”T
requestContext
Section titled “requestContext”Pick<RequestContext<unknown>, "get"> | undefined
Returns
Section titled “Returns”T & object