ResponseStream

sealed class ResponseStream

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

Inheritors

Types

Link copied to clipboard
data class PayloadPart(val value: PayloadPart) : ResponseStream

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.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this ResponseStream as a PayloadPart and retrieves its aws.sdk.kotlin.services.sagemakerruntime.model.PayloadPart value. Throws an exception if the ResponseStream is not a PayloadPart.

Link copied to clipboard