public static interface InvokeModelResponse.Builder extends BedrockRuntimeResponse.Builder, SdkPojo, CopyableBuilder<InvokeModelResponse.Builder,InvokeModelResponse>
| Modifier and Type | Method and Description |
|---|---|
InvokeModelResponse.Builder |
body(SdkBytes body)
Inference response from the model in the format specified in the content-type header field.
|
InvokeModelResponse.Builder |
contentType(String contentType)
The MIME type of the inference result.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildInvokeModelResponse.Builder body(SdkBytes body)
Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to Inference parameters.
body - Inference response from the model in the format specified in the content-type header field. To see the
format and content of this field for different models, refer to Inference
parameters.InvokeModelResponse.Builder contentType(String contentType)
The MIME type of the inference result.
contentType - The MIME type of the inference result.Copyright © 2023. All rights reserved.