Interface ToolResultContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ToolResultContentBlock.Builder,
,ToolResultContentBlock> SdkBuilder<ToolResultContentBlock.Builder,
,ToolResultContentBlock> SdkPojo
- Enclosing class:
ToolResultContentBlock
public static interface ToolResultContentBlock.Builder
extends SdkPojo, CopyableBuilder<ToolResultContentBlock.Builder,ToolResultContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ToolResultContentBlock.Builder
document
(Consumer<DocumentBlock.Builder> document) A tool result that is a document.document
(DocumentBlock document) A tool result that is a document.default ToolResultContentBlock.Builder
image
(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.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
-
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 field is only supported by Anthropic Claude 3 models.
ImageBlock.Builder
avoiding the need to create one manually viaImageBlock.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaDocumentBlock.builder()
.When the
Consumer
completes,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:
-