Interface SystemContentBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SystemContentBlock.Builder,,SystemContentBlock> SdkBuilder<SystemContentBlock.Builder,,SystemContentBlock> SdkPojo
- Enclosing class:
SystemContentBlock
public static interface SystemContentBlock.Builder
extends SdkPojo, CopyableBuilder<SystemContentBlock.Builder,SystemContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SystemContentBlock.BuilderguardContent(Consumer<GuardrailConverseContentBlock.Builder> guardContent) A content block to assess with the guardrail.guardContent(GuardrailConverseContentBlock guardContent) A content block to assess with the guardrail.A system prompt for the model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
text
A system prompt for the model.
- Parameters:
text- A system prompt for the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardContent
A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
- Parameters:
guardContent- A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardContent
default SystemContentBlock.Builder guardContent(Consumer<GuardrailConverseContentBlock.Builder> guardContent) A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
This is a convenience method that creates an instance of theGuardrailConverseContentBlock.Builderavoiding the need to create one manually viaGuardrailConverseContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardContent(GuardrailConverseContentBlock).- Parameters:
guardContent- a consumer that will call methods onGuardrailConverseContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-