Record Class DashScopeApiSpec.RerankRequestInput
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.RerankRequestInput
- Record Components:
query- query string for rerank.documents- list of documents for rerank.
- Enclosing class:
- DashScopeApiSpec
public static record DashScopeApiSpec.RerankRequestInput(String query, List<String> documents)
extends Record
Represents dashscope rerank request input
-
Constructor Summary
ConstructorsConstructorDescriptionRerankRequestInput(String query, List<String> documents) Creates an instance of aRerankRequestInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.query()Returns the value of thequeryrecord component.final StringtoString()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). -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
documents
Returns the value of thedocumentsrecord component.- Returns:
- the value of the
documentsrecord component
-