Record Class TitanEmbeddingBedrockApi.TitanEmbeddingRequest
java.lang.Object
java.lang.Record
org.springframework.ai.bedrock.titan.api.TitanEmbeddingBedrockApi.TitanEmbeddingRequest
- Record Components:
inputText- The text to compute the embedding for.inputImage- The image to compute the embedding for. Only applicable for the 'Titan Multimodal Embeddings G1' model.
- Enclosing class:
TitanEmbeddingBedrockApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTitanEmbeddingRequest builder. -
Constructor Summary
ConstructorsConstructorDescriptionTitanEmbeddingRequest(String inputText, String inputImage) Creates an instance of aTitanEmbeddingRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputImagerecord component.Returns the value of theinputTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TitanEmbeddingRequest
Creates an instance of aTitanEmbeddingRequestrecord class.- Parameters:
inputText- the value for theinputTextrecord componentinputImage- the value for theinputImagerecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
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). -
inputText
-
inputImage
Returns the value of theinputImagerecord component.- Returns:
- the value of the
inputImagerecord component
-