Interface SystemContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SystemContentBlock.Builder,
,SystemContentBlock> SdkBuilder<SystemContentBlock.Builder,
,SystemContentBlock> SdkPojo
- Enclosing class:
SystemContentBlock
@Mutable
@NotThreadSafe
public static interface SystemContentBlock.Builder
extends SdkPojo, CopyableBuilder<SystemContentBlock.Builder,SystemContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SystemContentBlock.Builder
cachePoint
(Consumer<CachePointBlock.Builder> cachePoint) Creates a cache checkpoint within a tool designationcachePoint
(CachePointBlock cachePoint) Creates a cache checkpoint within a tool designationThe text in the system prompt.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
-
cachePoint
Creates a cache checkpoint within a tool designation
- Parameters:
cachePoint
- Creates a cache checkpoint within a tool designation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePoint
Creates a cache checkpoint within a tool designation
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:
-
text
The text in the system prompt.
- Parameters:
text
- The text in the system prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-