Class ReasoningTextBlock
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.ReasoningTextBlock
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReasoningTextBlock.Builder,ReasoningTextBlock>
@Generated("software.amazon.awssdk:codegen") public final class ReasoningTextBlock extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReasoningTextBlock.Builder,ReasoningTextBlock>
Contains information about the reasoning that the model used to return the content in the content block.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReasoningTextBlock.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReasoningTextBlock.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ReasoningTextBlock.Builder>serializableBuilderClass()Stringsignature()A hash of all the messages in the conversation to ensure that the content in the reasoning text block isn't tampered with.Stringtext()Text describing the reasoning that the model used to return the content in the content block.ReasoningTextBlock.BuildertoBuilder()StringtoString()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
-
signature
public final String signature()
A hash of all the messages in the conversation to ensure that the content in the reasoning text block isn't tampered with. You must submit the signature in subsequent
Converserequests, in addition to the previous messages. If the previous messages are tampered with, the response throws an error.- Returns:
- A hash of all the messages in the conversation to ensure that the content in the reasoning text block
isn't tampered with. You must submit the signature in subsequent
Converserequests, in addition to the previous messages. If the previous messages are tampered with, the response throws an error.
-
text
public final String text()
Text describing the reasoning that the model used to return the content in the content block.
- Returns:
- Text describing the reasoning that the model used to return the content in the content block.
-
toBuilder
public ReasoningTextBlock.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReasoningTextBlock.Builder,ReasoningTextBlock>
-
builder
public static ReasoningTextBlock.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReasoningTextBlock.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-