async def _should_reflect(self) -> bool:
        """Check if the agent should reflect on their memories.
        Returns True if the cumulative importance score of memories
        since the last reflection is over 100
        """
        data = await (await get_database()).get_should_reflect(str(self.id))

        last_reflection_time = (
            data[0]["created_at"] if len(data) > 0 else datetime(1970, 1, 1)
        )

        memories_since_last_reflection = await self._get_memories_since(
            last_reflection_time
        )

        cumulative_importance = sum(
            [memory.importance for memory in memories_since_last_reflection]
        )

        return cumulative_importance > 500
Check if the agent should reflect on their memories.
        Returns True if the cumulative importance score of memories
        since the last reflection is over 100
        
src/agent/base.py