Interface ToolResultContentBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolResultContentBlock.Builder,,ToolResultContentBlock> SdkBuilder<ToolResultContentBlock.Builder,,ToolResultContentBlock> SdkPojo
- Enclosing class:
ToolResultContentBlock
-
Method Summary
Modifier and TypeMethodDescriptiondefault ToolResultContentBlock.Builderdocument(Consumer<DocumentBlock.Builder> document) A tool result that is a document.document(DocumentBlock document) A tool result that is a document.default ToolResultContentBlock.Builderimage(Consumer<ImageBlock.Builder> image) A tool result that is an image.image(ImageBlock image) A tool result that is an image.A tool result that is JSON format data.A tool result that is text.default ToolResultContentBlock.Buildervideo(Consumer<VideoBlock.Builder> video) A tool result that is video.video(VideoBlock video) A tool result that is video.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
-
json
A tool result that is JSON format data.
- Parameters:
json- A tool result that is JSON format data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
A tool result that is text.
- Parameters:
text- A tool result that is text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
A tool result that is an image.
This field is only supported by Anthropic Claude 3 models.
- Parameters:
image- A tool result that is an image.This field is only supported by Anthropic Claude 3 models.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
A tool result that is an image.
This is a convenience method that creates an instance of theThis field is only supported by Anthropic Claude 3 models.
ImageBlock.Builderavoiding the need to create one manually viaImageBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimage(ImageBlock).- Parameters:
image- a consumer that will call methods onImageBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
document
A tool result that is a document.
- Parameters:
document- A tool result that is a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
document
A tool result that is a document.
This is a convenience method that creates an instance of theDocumentBlock.Builderavoiding the need to create one manually viaDocumentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocument(DocumentBlock).- Parameters:
document- a consumer that will call methods onDocumentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
video
A tool result that is video.
- Parameters:
video- A tool result that is video.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
A tool result that is video.
This is a convenience method that creates an instance of theVideoBlock.Builderavoiding the need to create one manually viaVideoBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovideo(VideoBlock).- Parameters:
video- a consumer that will call methods onVideoBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-