Class MemoryOllamaEndpoint
java.lang.Object
com.developer.nefarious.zjoule.plugin.memory.MemoryOllamaEndpoint
- All Implemented Interfaces:
IMemoryObject<String>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
static MemoryOllamaEndpoint
static void
initialize
(IEclipseMemory eclipseMemory) isEmpty()
Checks if the stored data is empty or invalid.load()
Loads the data from memory.static void
void
Saves the given data to memory.
-
Field Details
-
KEY
- See Also:
-
-
Method Details
-
getInstance
-
initialize
-
resetInstance
public static void resetInstance() -
isEmpty
Description copied from interface:IMemoryObject
Checks if the stored data is empty or invalid.- Specified by:
isEmpty
in interfaceIMemoryObject<String>
- Returns:
true
if the stored data is empty or invalid;false
otherwise.
-
load
Description copied from interface:IMemoryObject
Loads the data from memory.- Specified by:
load
in interfaceIMemoryObject<String>
- Returns:
- the stored object of type
T
, ornull
if no data is found or loading fails.
-
save
Description copied from interface:IMemoryObject
Saves the given data to memory.- Specified by:
save
in interfaceIMemoryObject<String>
- Parameters:
ollamaEndpoint
- the object of typeT
to save.
-
clear
public void clear()- Specified by:
clear
in interfaceIMemoryObject<String>
-