An agent is anything that perceives its environment through sensors and acts upon the environment through actuators. Intelligent agents can be human, robots with cameras and motors, or thermostats detecting room temperature. An agent's behavior is described by its agent function, which maps percept sequences to actions. Rational agents select actions expected to maximize a performance measure given the agent's knowledge and percept sequence. Learning agents can improve their performance over time by experiencing examples.