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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SystemContentBlock.BuilderguardContent(Consumer<GuardrailConverseContentBlock.Builder> guardContent)A content block to assess with the guardrail.SystemContentBlock.BuilderguardContent(GuardrailConverseContentBlock guardContent)A content block to assess with the guardrail.SystemContentBlock.Buildertext(String text)A system prompt for the model.-
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, sdkFields
-
-
-
-
Method Detail
-
text
SystemContentBlock.Builder text(String 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
SystemContentBlock.Builder guardContent(GuardrailConverseContentBlock 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:
guardContent(GuardrailConverseContentBlock)
-
-