asResponseEventOrNull
Casts this AgenticRetrieveStreamResponseOutput as a ResponseEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveResponseEvent value. Returns null if the AgenticRetrieveStreamResponseOutput is not a ResponseEvent.