InvokeModelWithBidirectionalStreamOutput
Output from the bidirectional stream that was used for model invocation.
Inheritors
Types
Link copied to clipboard
data class Chunk(val value: BidirectionalOutputPayloadPart) : InvokeModelWithBidirectionalStreamOutput
The speech chunk that was provided as output from the invocation step.
Link copied to clipboard
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.