Learning from Supervision with Semantic and Episodic Memory: A Reflective Approach to Agent Adaptation