Energy-efficient ferroelectric-FET-based agent with memory trace for enhanced reinforcement learning