AWS SDK for Kotlin
1.5.1
      Platform filter
Skip to content
    AWS SDK for Kotlin
bedrockruntime/aws.sdk.kotlin.services.bedrockruntime.model/InvokeModelWithBidirectionalStreamOutput/asChunk

asChunk

fun asChunk(): BidirectionalOutputPayloadPart

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.

© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. Generated by dokka