Memory enables AI agents to store and retrieve information as needed for various tasks. Sensory memory : This is the initial stage of memory, akin to human sensory perception. It allows LLMs to retain sensory impressions—whether visual, auditory, or tactile—for a brief period after the initial stimuli have ceased.