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 Summary
ConstructorsConstructorDescriptionShowModelResponse(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 aShowModelResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.license()Returns the value of thelicenserecord component.messages()Returns the value of themessagesrecord component.Returns the value of themodelfilerecord component.Returns the value of themodelInforecord component.Returns the value of themodifiedAtrecord component.Returns the value of theparametersrecord component.Returns the value of theprojectorInforecord component.system()Returns the value of thesystemrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
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 aShowModelResponserecord class.- Parameters:
license- the value for thelicenserecord componentmodelfile- the value for themodelfilerecord componentparameters- the value for theparametersrecord componenttemplate- the value for thetemplaterecord componentsystem- the value for thesystemrecord componentdetails- the value for thedetailsrecord componentmessages- the value for themessagesrecord componentmodelInfo- the value for themodelInforecord componentprojectorInfo- the value for theprojectorInforecord componentcapabilities- the value for thecapabilitiesrecord componentmodifiedAt- the value for themodifiedAtrecord 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). -
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
modelfile
Returns the value of themodelfilerecord component.- Returns:
- the value of the
modelfilerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
system
Returns the value of thesystemrecord component.- Returns:
- the value of the
systemrecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
modelInfo
Returns the value of themodelInforecord component.- Returns:
- the value of the
modelInforecord component
-
projectorInfo
Returns the value of theprojectorInforecord component.- Returns:
- the value of the
projectorInforecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
modifiedAt
Returns the value of themodifiedAtrecord component.- Returns:
- the value of the
modifiedAtrecord component
-