Function resolveStructuredReply