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
public static record TitanEmbeddingBedrockApi.TitanEmbeddingRequest(String inputText, String inputImage)
extends Record
Titan Embedding request parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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
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). -
inputText
Returns the value of theinputTextrecord component.- Returns:
- the value of the
inputTextrecord component
-
inputImage
Returns the value of theinputImagerecord component.- Returns:
- the value of the
inputImagerecord component
-