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
textResponsePart
field -
InvokeAgent response – in the
textResponsePart
field
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TextResponsePart.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextResponsePart.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends TextResponsePart.Builder>
serializableBuilderClass()
Span
span()
Contains information about where the text with a citation begins and ends in the generated output.String
text()
The part of the generated text that contains a citation.TextResponsePart.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
span
public final Span 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
public final String text()
The part of the generated text that contains a citation.
- Returns:
- The part of the generated text that contains a citation.
-
toBuilder
public TextResponsePart.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<TextResponsePart.Builder,TextResponsePart>
-
builder
public static TextResponsePart.Builder builder()
-
serializableBuilderClass
public static Class<? extends TextResponsePart.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-