Interface ToolResultBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolResultBlock.Builder,,ToolResultBlock> SdkBuilder<ToolResultBlock.Builder,,ToolResultBlock> SdkPojo
- Enclosing class:
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.The type for the tool result content block.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaToolResultContentBlock.builder().When the
Consumercompletes,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 by Amazon Nova and Anthropic Claude 3 and 4 models.
- Parameters:
status- The status for the tool result content block.This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 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 by Amazon Nova and Anthropic Claude 3 and 4 models.
- Parameters:
status- The status for the tool result content block.This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type for the tool result content block.
- Parameters:
type- The type for the tool result content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-