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.Builder
cachePoint(Consumer<CachePointBlock.Builder> cachePoint)
CachePoint to include in the system prompt.SystemContentBlock.Builder
cachePoint(CachePointBlock cachePoint)
CachePoint to include in the system prompt.default SystemContentBlock.Builder
guardContent(Consumer<GuardrailConverseContentBlock.Builder> guardContent)
A content block to assess with the guardrail.SystemContentBlock.Builder
guardContent(GuardrailConverseContentBlock guardContent)
A content block to assess with the guardrail.SystemContentBlock.Builder
text(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, sdkFieldNameToField, 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.Builder
avoiding the need to create one manually viaGuardrailConverseContentBlock.builder()
.When the
Consumer
completes,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)
-
cachePoint
SystemContentBlock.Builder cachePoint(CachePointBlock cachePoint)
CachePoint to include in the system prompt.
- Parameters:
cachePoint
- CachePoint to include in the system prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePoint
default SystemContentBlock.Builder cachePoint(Consumer<CachePointBlock.Builder> cachePoint)
CachePoint to include in the system prompt.
This is a convenience method that creates an instance of theCachePointBlock.Builder
avoiding the need to create one manually viaCachePointBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocachePoint(CachePointBlock)
.- Parameters:
cachePoint
- a consumer that will call methods onCachePointBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cachePoint(CachePointBlock)
-
-