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 theembedding
record component.Returns the value of theembeddingsByType
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefailureCount
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinputTextTokenCount
record component.message()
Returns the value of themessage
record component.results()
Returns the value of theresults
record component.Returns the value of thesuccessCount
record component.final String
toString()
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 aTitanEmbeddingResponse
record class.- Parameters:
embedding
- the value for theembedding
record componentinputTextTokenCount
- the value for theinputTextTokenCount
record componentsuccessCount
- the value for thesuccessCount
record componentfailureCount
- the value for thefailureCount
record componentembeddingsByType
- the value for theembeddingsByType
record componentresults
- the value for theresults
record componentmessage
- the value for themessage
record 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 theembedding
record component.- Returns:
- the value of the
embedding
record component
-
inputTextTokenCount
Returns the value of theinputTextTokenCount
record component.- Returns:
- the value of the
inputTextTokenCount
record component
-
successCount
Returns the value of thesuccessCount
record component.- Returns:
- the value of the
successCount
record component
-
failureCount
Returns the value of thefailureCount
record component.- Returns:
- the value of the
failureCount
record component
-
embeddingsByType
Returns the value of theembeddingsByType
record component.- Returns:
- the value of the
embeddingsByType
record component
-
results
Returns the value of theresults
record component.- Returns:
- the value of the
results
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-