Interface ToolResultBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ToolResultBlock.Builder,
,ToolResultBlock> SdkBuilder<ToolResultBlock.Builder,
,ToolResultBlock> SdkPojo
- Enclosing class:
ToolResultBlock
public static interface ToolResultBlock.Builder
extends SdkPojo, CopyableBuilder<ToolResultBlock.Builder,ToolResultBlock>
-
Method Summary
Modifier and TypeMethodDescriptioncontent
(Collection<ToolResultContentBlock> content) The content for tool result content block.content
(Consumer<ToolResultContentBlock.Builder>... content) The content for tool result content block.content
(ToolResultContentBlock... content) The content for tool result content block.The status for the tool result content block.status
(ToolResultStatus status) The status for the tool result content block.The ID of the tool request that this is the result for.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
-
toolUseId
The ID of the tool request that this is the result for.
- Parameters:
toolUseId
- The ID of the tool request that this is the result for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for tool result content block.
- Parameters:
content
- The content for tool result content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for tool result content block.
- Parameters:
content
- The content for tool result content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for tool result content block.
This is a convenience method that creates an instance of theToolResultContentBlock.Builder
avoiding the need to create one manually viaToolResultContentBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(List<ToolResultContentBlock>)
.- Parameters:
content
- a consumer that will call methods onToolResultContentBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status for the tool result content block.
This field is only supported Anthropic Claude 3 models.
- Parameters:
status
- The status for the tool result content block.This field is only supported Anthropic Claude 3 models.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status for the tool result content block.
This field is only supported Anthropic Claude 3 models.
- Parameters:
status
- The status for the tool result content block.This field is only supported Anthropic Claude 3 models.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-