Record Class OllamaApi.ShowModelResponse

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

public static record OllamaApi.ShowModelResponse(String license, String modelfile, String parameters, String template, String system, OllamaApi.Model.Details details, List<OllamaApi.Message> messages, Map<String,Object> modelInfo, Map<String,Object> projectorInfo, List<String> capabilities, Instant modifiedAt) extends Record
  • Constructor Details

    • ShowModelResponse

      public ShowModelResponse(String license, String modelfile, String parameters, String template, String system, OllamaApi.Model.Details details, List<OllamaApi.Message> messages, Map<String,Object> modelInfo, Map<String,Object> projectorInfo, List<String> capabilities, Instant modifiedAt)
      Creates an instance of a ShowModelResponse record class.
      Parameters:
      license - the value for the license record component
      modelfile - the value for the modelfile record component
      parameters - the value for the parameters record component
      template - the value for the template record component
      system - the value for the system record component
      details - the value for the details record component
      messages - the value for the messages record component
      modelInfo - the value for the modelInfo record component
      projectorInfo - the value for the projectorInfo record component
      capabilities - the value for the capabilities record component
      modifiedAt - the value for the modifiedAt 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.
    • license

      public String license()
      Returns the value of the license record component.
      Returns:
      the value of the license record component
    • modelfile

      public String modelfile()
      Returns the value of the modelfile record component.
      Returns:
      the value of the modelfile record component
    • parameters

      public String parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • template

      public String template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • system

      public String system()
      Returns the value of the system record component.
      Returns:
      the value of the system record component
    • details

      public OllamaApi.Model.Details details()
      Returns the value of the details record component.
      Returns:
      the value of the details record component
    • messages

      public List<OllamaApi.Message> messages()
      Returns the value of the messages record component.
      Returns:
      the value of the messages record component
    • modelInfo

      public Map<String,Object> modelInfo()
      Returns the value of the modelInfo record component.
      Returns:
      the value of the modelInfo record component
    • projectorInfo

      public Map<String,Object> projectorInfo()
      Returns the value of the projectorInfo record component.
      Returns:
      the value of the projectorInfo record component
    • capabilities

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

      public Instant modifiedAt()
      Returns the value of the modifiedAt record component.
      Returns:
      the value of the modifiedAt record component