Class OllamaModel
java.lang.Object
com.developer.nefarious.zjoule.plugin.models.OllamaModel
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.developer.nefarious.zjoule.plugin.models.OllamaModelDetails
Retrieves additional details about the model.Retrieves the digest hash of the model.Retrieves the model's family from its details.Retrieves the model's format from its details.getModel()
Retrieves the model identifier.Retrieves the last modification timestamp of the model.getName()
Retrieves the name of the model.Retrieves the model's parameter size from its details.Retrieves the model's quantization level from its details.long
getSize()
Retrieves the size of the model in bytes.void
setDetails
(com.developer.nefarious.zjoule.plugin.models.OllamaModelDetails details) Sets additional details about the model.void
Sets the digest hash of the model.void
Sets the model identifier.void
setModifiedAt
(String modifiedAt) Sets the last modification timestamp of the model.void
Sets the name of the model.void
setSize
(long size) Sets the size of the model in bytes.
-
Constructor Details
-
OllamaModel
public OllamaModel()
-
-
Method Details
-
getName
Retrieves the name of the model.- Returns:
- the model name as a
String
.
-
setName
Sets the name of the model.- Parameters:
name
- the model name to set.
-
getModel
Retrieves the model identifier.- Returns:
- the model identifier as a
String
.
-
setModel
Sets the model identifier.- Parameters:
model
- the model identifier to set.
-
getModifiedAt
Retrieves the last modification timestamp of the model.- Returns:
- the modification timestamp as a
String
.
-
setModifiedAt
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
Retrieves the digest hash of the model.- Returns:
- the digest hash as a
String
.
-
setDigest
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
- theOllamaModelDetails
object to set.
-
getFormat
Retrieves the model's format from its details.- Returns:
- the model format as a
String
.
-
getFamily
Retrieves the model's family from its details.- Returns:
- the model family as a
String
.
-
getParameterSize
Retrieves the model's parameter size from its details.- Returns:
- the parameter size as a
String
.
-
getQuantizationLevel
Retrieves the model's quantization level from its details.- Returns:
- the quantization level as a
String
.
-