Mastra.getMemory()
The .getMemory()
method is used to retrieve the memory instance that has been configured in the Mastra instance.
Usage example
mastra.getMemory();
Parameters
This method does not accept any parameters.
Returns
memory:
MastraMemory | undefined
The configured memory instance, or undefined if no memory has been configured.