How do you implement a sliding window memory — keeping only the last N messages — without losing the system prompt? | Messages | langchain Interview Questions | NextRound.in