asOutput
Casts this RetrieveAndGenerateStreamResponseOutput as a Output and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.RetrieveAndGenerateOutputEvent value. Throws an exception if the RetrieveAndGenerateStreamResponseOutput is not a Output.