Class CoreMemory
java.lang.Object
me.zacharias.chat.core.memory.CoreMemory
CoreMemory is a class that provides a way to store and retrieve strings from a file.
This is meant to be used as a way to store and retrieve strings from a file.
This is meant to be used as a way to store and retrieve strings from a file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the memory.static CoreMemoryGets the singleton instance of CoreMemory.Gets all memories as a JSON string.String[]Gets the memory.voidremoveMemory(String name) Removes the memory.
-
Constructor Details
-
CoreMemory
Creates a new instance of CoreMemory.- Parameters:
memoryFile- The file to store the memory in
-
-
Method Details
-
getInstance
Gets the singleton instance of CoreMemory.- Returns:
- The singleton instance of CoreMemory
-
getMemoriesIdentity
-
getMemory
-
addMemory
-
removeMemory
-
getMemories
Gets all memories as a JSON string.- Returns:
- A JSON string of all memories
-
getMemoriesArray
-