Class TextResponsePart
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.TextResponsePart
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
@Generated("software.amazon.awssdk:codegen")
public final class TextResponsePart
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
Contains the part of the generated text that contains a citation, alongside where it begins and ends.
This data type is used in the following API operations:
-
RetrieveAndGenerate response – in the
textResponsePartfield -
InvokeAgent response – in the
textResponsePartfield
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TextResponsePart.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends TextResponsePart.Builder>final Spanspan()Contains information about where the text with a citation begins and ends in the generated output.final Stringtext()The part of the generated text that contains a citation.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
span
Contains information about where the text with a citation begins and ends in the generated output.
- Returns:
- Contains information about where the text with a citation begins and ends in the generated output.
-
text
The part of the generated text that contains a citation.
- Returns:
- The part of the generated text that contains a citation.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-