LLMs don't have any memory. It could have been steered through a prompt or just random rumblings.

This agent framework specifically gives the LLM memory.