Record Class WatsonxAiChatResponse
java.lang.Object
java.lang.Record
org.springframework.ai.watsonx.api.WatsonxAiChatResponse
- Record Components:
modelId
- the model idcreatedAt
- the creation dateresults
- the resultssystem
- the system
public record WatsonxAiChatResponse(String modelId, Date createdAt, List<WatsonxAiChatResults> results, Map<String,Object> system)
extends Record
Java class for Watsonx.ai Chat Response object.
- Since:
- 1.0.0
- Author:
- Pablo Sanchidrian Herrera
-
Constructor Summary
ConstructorsConstructorDescriptionWatsonxAiChatResponse
(String modelId, Date createdAt, List<WatsonxAiChatResults> results, Map<String, Object> system) Creates an instance of aWatsonxAiChatResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.modelId()
Returns the value of themodelId
record component.results()
Returns the value of theresults
record component.system()
Returns the value of thesystem
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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)
. -
modelId
Returns the value of themodelId
record component.- Returns:
- the value of the
modelId
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
results
Returns the value of theresults
record component.- Returns:
- the value of the
results
record component
-
system
Returns the value of thesystem
record component.- Returns:
- the value of the
system
record component
-