Chunk
data class Chunk(val value: BidirectionalOutputPayloadPart) : InvokeModelWithBidirectionalStreamOutput
The speech chunk that was provided as output from the invocation step.
Inherited functions
Link copied to clipboard
Casts this InvokeModelWithBidirectionalStreamOutput as a Chunk and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.BidirectionalOutputPayloadPart value. Throws an exception if the InvokeModelWithBidirectionalStreamOutput is not a Chunk.
Link copied to clipboard
Casts this InvokeModelWithBidirectionalStreamOutput as a Chunk and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.BidirectionalOutputPayloadPart value. Returns null if the InvokeModelWithBidirectionalStreamOutput is not a Chunk.