How to get previous user messages in custom graph NLU component along with the current user message?

I can get the text of the current user message from the Message object in the custom nlu graph component but I also want to access the previous user messages. How can I?