An agent is anything that can be viewed as perceiving its environment through sensors and acting
upon that environment through effectors. A human agent has eyes, ears, and other organs for
sensors, and hands, legs, mouth, and other body parts for effectors. A robotic agent substitutes
cameras and infrared range finders for the sensors and various motors for the effectors. A
software agent has encoded bit strings as its percepts and actions. A generic agent is diagrammed
in Figure 2.1.