Interface ReasoningContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReasoningContentBlock.Builder,
,ReasoningContentBlock> SdkBuilder<ReasoningContentBlock.Builder,
,ReasoningContentBlock> SdkPojo
- Enclosing class:
ReasoningContentBlock
@Mutable
@NotThreadSafe
public static interface ReasoningContentBlock.Builder
extends SdkPojo, CopyableBuilder<ReasoningContentBlock.Builder,ReasoningContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReasoningContentBlock.Builder
reasoningText
(Consumer<ReasoningTextBlock.Builder> reasoningText) Contains information about the reasoning that the model used to return the content in the content block.reasoningText
(ReasoningTextBlock reasoningText) Contains information about the reasoning that the model used to return the content in the content block.redactedContent
(SdkBytes redactedContent) The content in the reasoning that was encrypted by the model provider for trust and safety reasons.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
reasoningText
Contains information about the reasoning that the model used to return the content in the content block.
- Parameters:
reasoningText
- Contains information about the reasoning that the model used to return the content in the content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reasoningText
default ReasoningContentBlock.Builder reasoningText(Consumer<ReasoningTextBlock.Builder> reasoningText) Contains information about the reasoning that the model used to return the content in the content block.
This is a convenience method that creates an instance of theReasoningTextBlock.Builder
avoiding the need to create one manually viaReasoningTextBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreasoningText(ReasoningTextBlock)
.- Parameters:
reasoningText
- a consumer that will call methods onReasoningTextBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redactedContent
The content in the reasoning that was encrypted by the model provider for trust and safety reasons.
- Parameters:
redactedContent
- The content in the reasoning that was encrypted by the model provider for trust and safety reasons.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-