The apparent function of the Spirit in this case was to move Nephi to the recognition of the real purpose for his desires, and once that was stated the Spirit opens the vision to Nephi and departs. The guide function filled to this point is replaced by an angel in the following verses (see verse 14). Nephi continues to have a dialogue with a heavenly messenger, but the person of that messenger shifts from the Spirit to an angel.