Class MemoryOllamaEndpoint

java.lang.Object
com.developer.nefarious.zjoule.plugin.memory.MemoryOllamaEndpoint
All Implemented Interfaces:
IMemoryObject<String>

public class MemoryOllamaEndpoint extends Object implements IMemoryObject<String>
  • Field Details

  • Method Details

    • getInstance

      public static MemoryOllamaEndpoint getInstance()
    • initialize

      public static void initialize(IEclipseMemory eclipseMemory)
    • resetInstance

      public static void resetInstance()
    • isEmpty

      public Boolean isEmpty()
      Description copied from interface: IMemoryObject
      Checks if the stored data is empty or invalid.
      Specified by:
      isEmpty in interface IMemoryObject<String>
      Returns:
      true if the stored data is empty or invalid; false otherwise.
    • load

      public String load()
      Description copied from interface: IMemoryObject
      Loads the data from memory.
      Specified by:
      load in interface IMemoryObject<String>
      Returns:
      the stored object of type T, or null if no data is found or loading fails.
    • save

      public void save(String ollamaEndpoint)
      Description copied from interface: IMemoryObject
      Saves the given data to memory.
      Specified by:
      save in interface IMemoryObject<String>
      Parameters:
      ollamaEndpoint - the object of type T to save.
    • clear

      public void clear()
      Specified by:
      clear in interface IMemoryObject<String>