ResponseStream - Amazon SageMaker

ResponseStream

A stream of payload parts. Each part contains a portion of the response for a streaming inference request.

Contents

InternalStreamFailure

The stream processing failed because of an unknown error, exception or failure. Try your request again.

Type: Exception

HTTP Status Code:

Required: No

ModelStreamError

An error occurred while streaming the response body. This error can have the following error codes:

ModelInvocationTimeExceeded

The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker.

StreamBroken

The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.

Type: Exception

HTTP Status Code:

Required: No

PayloadPart

A wrapper for pieces of the payload that's returned in response to a streaming inference request. A streaming inference response consists of one or more payload parts.

Type: PayloadPart object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: