Record Class OllamaApi.Model.Details
java.lang.Object
java.lang.Record
org.springframework.ai.ollama.api.OllamaApi.Model.Details
- Enclosing class:
- OllamaApi.Model
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.families()
Returns the value of thefamilies
record component.family()
Returns the value of thefamily
record component.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparameterSize
record component.Returns the value of theparentModel
record component.Returns the value of thequantizationLevel
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Details
public Details(String parentModel, String format, String family, List<String> families, String parameterSize, String quantizationLevel) Creates an instance of aDetails
record class.- Parameters:
parentModel
- the value for theparentModel
record componentformat
- the value for theformat
record componentfamily
- the value for thefamily
record componentfamilies
- the value for thefamilies
record componentparameterSize
- the value for theparameterSize
record componentquantizationLevel
- the value for thequantizationLevel
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
parentModel
Returns the value of theparentModel
record component.- Returns:
- the value of the
parentModel
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
family
Returns the value of thefamily
record component.- Returns:
- the value of the
family
record component
-
families
Returns the value of thefamilies
record component.- Returns:
- the value of the
families
record component
-
parameterSize
Returns the value of theparameterSize
record component.- Returns:
- the value of the
parameterSize
record component
-
quantizationLevel
Returns the value of thequantizationLevel
record component.- Returns:
- the value of the
quantizationLevel
record component
-