Artificial intelligence • Original RRTutors lesson
Intelligent Agents and Environments
Model an AI agent as a system that observes an environment and selects actions toward an objective.
Concept and explanation
An agent receives observations through sensors or interfaces and affects its environment through actions. The task environment can be described by what is observable, whether it changes over time, whether actions are deterministic, and how many agents interact. This analysis helps determine whether a fixed rule, search procedure, or learned policy is appropriate.
How to apply it
Specify percepts, actions, state, goal or reward, and environmental uncertainty before choosing an architecture.
Worked example
A thermostat observes temperature and selects heating actions; a delivery robot observes location and obstacles and selects motion commands.
Illustrative Python example
observation = {"temperature": 18}
action = "heat_on" if observation["temperature"] < 20 else "heat_off"
print(action)
Expected result
The agent maps an observation to an action under a simple target rule.
Limitations and cautions
Real environments may be only partially observable, delayed, noisy, or unsafe to explore.
Practice exercise
Describe the observations, actions, and goal for an AI agent that schedules study sessions.
Key takeaway: Agent design begins with the environment and objective, not the model.