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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ToolResultBlock.Buildercontent(Collection<ToolResultContentBlock> content)The content for tool result content block.ToolResultBlock.Buildercontent(Consumer<ToolResultContentBlock.Builder>... content)The content for tool result content block.ToolResultBlock.Buildercontent(ToolResultContentBlock... content)The content for tool result content block.ToolResultBlock.Builderstatus(String status)The status for the tool result content block.ToolResultBlock.Builderstatus(ToolResultStatus status)The status for the tool result content block.ToolResultBlock.BuildertoolUseId(String toolUseId)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
toolUseId
ToolResultBlock.Builder toolUseId(String 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
ToolResultBlock.Builder content(Collection<ToolResultContentBlock> 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
ToolResultBlock.Builder content(ToolResultContentBlock... 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
ToolResultBlock.Builder content(Consumer<ToolResultContentBlock.Builder>... 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 to#content(List.) - 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:
#content(java.util.Collection)
-
status
ToolResultBlock.Builder status(String 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:
ToolResultStatus,ToolResultStatus
-
status
ToolResultBlock.Builder status(ToolResultStatus 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:
ToolResultStatus,ToolResultStatus
-
-