ResponseStream

sealed class ResponseStream

Definition of content in the response stream.

Inheritors

Types

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

Content included in the response.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

Casts this ResponseStream as a Chunk and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.PayloadPart value. Returns null if the ResponseStream is not a Chunk.