asResponseEvent
Casts this AgenticRetrieveStreamResponseOutput as a ResponseEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveResponseEvent value. Throws an exception if the AgenticRetrieveStreamResponseOutput is not a ResponseEvent.