ResponseStream

sealed class ResponseStream

Response body of is a stream

Inheritors

Types

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

Base 64 endoded byte response

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

Trace Part which contains intermidate response for customer

Functions

Link copied to clipboard

Casts this ResponseStream as a Chunk and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.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.bedrockagentruntime.model.PayloadPart value. Returns null if the ResponseStream is not a Chunk.

Link copied to clipboard

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

Link copied to clipboard

Casts this ResponseStream as a Trace and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.TracePart value. Returns null if the ResponseStream is not a Trace.