To fully understand the difference, consider the interaction of an agent with the environment to its sensors and its actuators, and this interaction takes place over many cycles, often called the perception-action cycle.