Record Class OllamaApi.Model.Details

java.lang.Object
java.lang.Record
org.springframework.ai.ollama.api.OllamaApi.Model.Details
Enclosing class:
OllamaApi.Model

public static record OllamaApi.Model.Details(String parentModel, String format, String family, List<String> families, String parameterSize, String quantizationLevel) extends Record
  • Constructor Details

    • Details

      public Details(String parentModel, String format, String family, List<String> families, String parameterSize, String quantizationLevel)
      Creates an instance of a Details record class.
      Parameters:
      parentModel - the value for the parentModel record component
      format - the value for the format record component
      family - the value for the family record component
      families - the value for the families record component
      parameterSize - the value for the parameterSize record component
      quantizationLevel - the value for the quantizationLevel record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • parentModel

      public String parentModel()
      Returns the value of the parentModel record component.
      Returns:
      the value of the parentModel record component
    • format

      public String format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • family

      public String family()
      Returns the value of the family record component.
      Returns:
      the value of the family record component
    • families

      public List<String> families()
      Returns the value of the families record component.
      Returns:
      the value of the families record component
    • parameterSize

      public String parameterSize()
      Returns the value of the parameterSize record component.
      Returns:
      the value of the parameterSize record component
    • quantizationLevel

      public String quantizationLevel()
      Returns the value of the quantizationLevel record component.
      Returns:
      the value of the quantizationLevel record component