Personalizing Student-Agent Interactions Using Log-Contextualized Retrieval Augmented Generation (RAG)