Package app.ductape.sdk.vector.types
Record Class VectorEmbeddingTypes.BatchEmbeddingResult
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorEmbeddingTypes.BatchEmbeddingResult
- Enclosing class:
- VectorEmbeddingTypes
public static record VectorEmbeddingTypes.BatchEmbeddingResult(List<VectorEmbeddingTypes.EmbeddingResult> embeddings, Integer totalTokens, String model, VectorEmbeddingTypes.EmbeddingProvider provider)
extends Record
TS
IBatchEmbeddingResult-
Constructor Summary
ConstructorsConstructorDescriptionBatchEmbeddingResult(List<VectorEmbeddingTypes.EmbeddingResult> embeddings, Integer totalTokens, String model, VectorEmbeddingTypes.EmbeddingProvider provider) Creates an instance of aBatchEmbeddingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theembeddingsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalTokensrecord component.
-
Constructor Details
-
BatchEmbeddingResult
public BatchEmbeddingResult(List<VectorEmbeddingTypes.EmbeddingResult> embeddings, Integer totalTokens, String model, VectorEmbeddingTypes.EmbeddingProvider provider) Creates an instance of aBatchEmbeddingResultrecord class.- Parameters:
embeddings- the value for theembeddingsrecord componenttotalTokens- the value for thetotalTokensrecord componentmodel- the value for themodelrecord componentprovider- the value for theproviderrecord 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). -
embeddings
Returns the value of theembeddingsrecord component.- Returns:
- the value of the
embeddingsrecord component
-
totalTokens
Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-