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