Interface ContentBlockDelta.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContentBlockDelta.Builder,
,ContentBlockDelta> SdkBuilder<ContentBlockDelta.Builder,
,ContentBlockDelta> SdkPojo
- Enclosing class:
ContentBlockDelta
public static interface ContentBlockDelta.Builder
extends SdkPojo, CopyableBuilder<ContentBlockDelta.Builder,ContentBlockDelta>
-
Method Summary
Modifier and TypeMethodDescriptionThe content text.default ContentBlockDelta.Builder
toolUse
(Consumer<ToolUseBlockDelta.Builder> toolUse) Information about a tool that the model is requesting to use.toolUse
(ToolUseBlockDelta toolUse) Information about a tool that the model is requesting to use.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 Details
-
text
The content text.
- Parameters:
text
- The content text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolUse
Information about a tool that the model is requesting to use.
- Parameters:
toolUse
- Information about a tool that the model is requesting to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolUse
Information about a tool that the model is requesting to use.
This is a convenience method that creates an instance of theToolUseBlockDelta.Builder
avoiding the need to create one manually viaToolUseBlockDelta.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totoolUse(ToolUseBlockDelta)
.- Parameters:
toolUse
- a consumer that will call methods onToolUseBlockDelta.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-