java.lang.Object
com.developer.nefarious.zjoule.plugin.models.OllamaModel

public class OllamaModel extends Object
Represents a machine learning model in the Ollama system.

This class provides metadata about the model, such as its name, size, digest, modification date, and additional details contained within OllamaModelDetails. It is designed for serialization and deserialization using the Google Gson library.

  • Constructor Details

    • OllamaModel

      public OllamaModel()
  • Method Details

    • getName

      public String getName()
      Retrieves the name of the model.
      Returns:
      the model name as a String.
    • setName

      public void setName(String name)
      Sets the name of the model.
      Parameters:
      name - the model name to set.
    • getModel

      public String getModel()
      Retrieves the model identifier.
      Returns:
      the model identifier as a String.
    • setModel

      public void setModel(String model)
      Sets the model identifier.
      Parameters:
      model - the model identifier to set.
    • getModifiedAt

      public String getModifiedAt()
      Retrieves the last modification timestamp of the model.
      Returns:
      the modification timestamp as a String.
    • setModifiedAt

      public void setModifiedAt(String modifiedAt)
      Sets the last modification timestamp of the model.
      Parameters:
      modifiedAt - the modification timestamp to set.
    • getSize

      public long getSize()
      Retrieves the size of the model in bytes.
      Returns:
      the model size as a long.
    • setSize

      public void setSize(long size)
      Sets the size of the model in bytes.
      Parameters:
      size - the model size to set.
    • getDigest

      public String getDigest()
      Retrieves the digest hash of the model.
      Returns:
      the digest hash as a String.
    • setDigest

      public void setDigest(String digest)
      Sets the digest hash of the model.
      Parameters:
      digest - the digest hash to set.
    • getDetails

      public com.developer.nefarious.zjoule.plugin.models.OllamaModelDetails getDetails()
      Retrieves additional details about the model.
      Returns:
      the OllamaModelDetails object containing additional model metadata.
    • setDetails

      public void setDetails(com.developer.nefarious.zjoule.plugin.models.OllamaModelDetails details)
      Sets additional details about the model.
      Parameters:
      details - the OllamaModelDetails object to set.
    • getFormat

      public String getFormat()
      Retrieves the model's format from its details.
      Returns:
      the model format as a String.
    • getFamily

      public String getFamily()
      Retrieves the model's family from its details.
      Returns:
      the model family as a String.
    • getParameterSize

      public String getParameterSize()
      Retrieves the model's parameter size from its details.
      Returns:
      the parameter size as a String.
    • getQuantizationLevel

      public String getQuantizationLevel()
      Retrieves the model's quantization level from its details.
      Returns:
      the quantization level as a String.