Interface InvokeModelResponse.Builder

    • Method Detail

      • body

        InvokeModelResponse.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.

        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contentType

        InvokeModelResponse.Builder contentType​(String contentType)

        The MIME type of the inference result.

        Parameters:
        contentType - The MIME type of the inference result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.