Record Class TitanEmbeddingBedrockApi.TitanEmbeddingResponse
java.lang.Object
java.lang.Record
org.springframework.ai.bedrock.titan.api.TitanEmbeddingBedrockApi.TitanEmbeddingResponse
- Record Components:
embedding- The embedding vector.inputTextTokenCount- The number of tokens in the input text.embeddingsByType- The embeddings by type.message- No idea what this is.
- Enclosing class:
- TitanEmbeddingBedrockApi
public static record TitanEmbeddingBedrockApi.TitanEmbeddingResponse(float[] embedding, Integer inputTextTokenCount, Integer successCount, Integer failureCount, Map<String,Object> embeddingsByType, Object results, Object message)
extends Record
Titan Embedding response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Returns the value of theembeddingrecord component.Returns the value of theembeddingsByTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinputTextTokenCountrecord component.message()Returns the value of themessagerecord component.results()Returns the value of theresultsrecord component.Returns the value of thesuccessCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TitanEmbeddingResponse
public TitanEmbeddingResponse(float[] embedding, Integer inputTextTokenCount, Integer successCount, Integer failureCount, Map<String, Object> embeddingsByType, Object results, Object message) Creates an instance of aTitanEmbeddingResponserecord class.- Parameters:
embedding- the value for theembeddingrecord componentinputTextTokenCount- the value for theinputTextTokenCountrecord componentsuccessCount- the value for thesuccessCountrecord componentfailureCount- the value for thefailureCountrecord componentembeddingsByType- the value for theembeddingsByTyperecord componentresults- the value for theresultsrecord componentmessage- the value for themessagerecord 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). -
embedding
public float[] embedding()Returns the value of theembeddingrecord component.- Returns:
- the value of the
embeddingrecord component
-
inputTextTokenCount
Returns the value of theinputTextTokenCountrecord component.- Returns:
- the value of the
inputTextTokenCountrecord component
-
successCount
Returns the value of thesuccessCountrecord component.- Returns:
- the value of the
successCountrecord component
-
failureCount
Returns the value of thefailureCountrecord component.- Returns:
- the value of the
failureCountrecord component
-
embeddingsByType
Returns the value of theembeddingsByTyperecord component.- Returns:
- the value of the
embeddingsByTyperecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-