Interface ContentBody.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContentBody.Builder,
,ContentBody> SdkBuilder<ContentBody.Builder,
,ContentBody> SdkPojo
- Enclosing class:
ContentBody
-
Method Summary
Modifier and TypeMethodDescriptionThe body of the API response.images
(Collection<ImageInput> images) Lists details, including format and source, for the image in the response from the function call.images
(Consumer<ImageInput.Builder>... images) Lists details, including format and source, for the image in the response from the function call.images
(ImageInput... images) Lists details, including format and source, for the image in the response from the function call.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 Details
-
body
The body of the API response.
- Parameters:
body
- The body of the API response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
images
Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the
returnControlInvocationResults
must be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Parameters:
images
- Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in thereturnControlInvocationResults
must be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
images
Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the
returnControlInvocationResults
must be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Parameters:
images
- Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in thereturnControlInvocationResults
must be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
images
Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the
This is a convenience method that creates an instance of thereturnControlInvocationResults
must be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.ImageInput.Builder
avoiding the need to create one manually viaImageInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimages(List<ImageInput>)
.- Parameters:
images
- a consumer that will call methods onImageInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-