Concepts / Introduction to Intelligent Agents

Introduction to Intelligent Agents

An agent is anything that can perceive its environment and act upon that environment.

  • Programming

A Heater That Only Shows Temperature

Many engineering fields use the word agent. You may hear about software agents, intelligent agents, user agents, conversational agents, and reinforcement learning agents. Each name points to a different kind of system, so it is natural to wonder whether these are unrelated ideas that happen to share a label. This article looks for the base idea that the term rests on, because that idea is what lets the word be used at all.

What do you think happens?

Imagine a device that reads the temperature of a room and shows the number on a screen, but never switches anything on or off. Does it count as an agent?

  • Yes, because it senses its surroundings

  • No, because it does not act on its environment

Reveal answer
Answer:

No, because it does not act on its environment

The source defines an agent as anything that can perceive its environment and act upon that environment. Perceiving alone does not make something an agent. The display device perceives the room but has no ability to change it, so it fails the second requirement.

The Definition and Its Two Halves

Definition

An agent is anything that can perceive its environment and act upon that environment. Perceiving means taking in information from the environment, meaning the surroundings the agent is situated in. Acting means doing something that affects that environment.

Notice that the definition names two separate abilities and joins them with the word and. The definition is not satisfied by one ability alone. The source states that an agent is characterized by its ability to perceive and act, so both must be present together. Perception and action are two halves of one requirement, not two alternative ways to qualify.

Tracing the Heater Controller Step by Step

Consider a simple heater controller in a room. It is a system you can describe without any special vocabulary. The best way to test whether it is an agent is to trace what it does in order and check each step against the two requirements in the definition.

Worked example

Checking the heater controller against the definition

A heater controller is installed in a room. Does it count as an agent under the definition that an agent perceives its environment and acts upon it?

  1. 1
    Step 1: Information leaves the environment

    The room has a temperature, and that state of the room is the information the controller can take in.

  2. 2
    Step 2: The controller perceives

    The controller takes in information from the room. This satisfies the perceiving requirement.

  3. 3
    Step 3: The controller acts

    The controller responds by switching the heater on or off. This is an effect on the environment, so it satisfies the acting requirement.

  4. 4
    Step 4: The action reaches back into the room

    Switching the heater changes the room, which closes the path. The controller acts upon the same environment it perceives.

  5. 5
    Step 5: Check the requirements

    Both abilities are present and joined in one cycle, so the controller meets the definition.

Result

The heater controller is an agent because it both perceives its environment and acts upon it.

Perceive environmentChoose actionAct on environmentEnvironment changesthe next perceptionreflects this changeinformationchosen responseeffectnext cycle
What happens next after an agent acts, and how does that action change what the agent perceives on its next cycle?

The diagram shows the heater controller as a path rather than a static picture of parts. Information leaves the environment, reaches the agent as perception, and the agent responds with action. That action changes the environment, and the change is what the agent perceives on its next cycle. The loop is what makes the agent's perceiving and acting connected rather than two unrelated features.

Keeping Perception and Action Apart

Because the definition asks for two abilities, it helps to keep them separate when you analyze a system. Perception answers the question of what the system can learn about its surroundings. Action answers the question of what the system can change in those surroundings. Asking both questions about the same system is how you check whether it meets the definition.

Environmentthe surroundings the agentis situated inAgentperception: information inaction: effects out
Which part contains which, and which direction does information flow? Information moves from the environment to the agent as perception, and the agent's effects move back into the environment as action.

The two arrows in this diagram are the whole definition in visual form. Remove the upward arrow and the agent is blind to its surroundings. Remove the downward arrow and the agent has no effect on them. Either removal breaks the definition.

Removing the Ability to Act

Now change one thing in the heater example. Suppose the controller only displayed the temperature and never switched anything. The perception would still be there, because the device still takes in information about the room. The action would be gone. By the definition, the device would no longer be an agent.

Perceives: yesPerceives: noPerceives: yesActs: noActs: yesActs: yesAgent: noAgent: noAgent: yes
How do systems that only sense, only act, or do both differ in whether they count as agents under the definition?

Why the Same Label Shows Up Everywhere

The source notes that the term agent appears in many engineering contexts, so the defining idea of perceiving and acting is the reliable starting point for analyzing any of them. When you meet a new kind of agent, you do not need to memorize a separate definition for each setting. You ask the same two questions: what does it perceive in its environment, and what does it act upon?

The source frames this as the base idea that makes the word usable across fields. Software agents, conversational agents, and reinforcement learning agents each name a different kind of system. The shared base is still perception and action, and that is the thread you can use to compare them.

Mistakes When Applying the Definition

  • Common mistake

    Counting any system that senses something as an agent

    What it looks like

    A device that only displays a room temperature is treated as an agent because it reads the room.

    Why it fails

    The definition requires perceiving and acting. Perception alone does not make something an agent.

    Do this instead

    Ask whether the system can also affect its environment. If it cannot, it fails the definition.

  • Common mistake

    Counting any system that changes something as an agent

    What it looks like

    A switch that changes state when pressed by a person is treated as an agent simply because it acts.

    Why it fails

    The definition also requires perceiving. Action alone does not make something an agent.

    Do this instead

    Check whether the system takes in information from its environment before it acts.

  • Common mistake

    Treating perception and action as separate checks you can pass independently

    Why it fails

    The definition joins the two abilities with and and connects them through the same environment with the word upon.

    Do this instead

    Check both abilities, then confirm the action reaches the same environment the agent perceives.

  • Common mistake

    Assuming the many named agent types each need their own definition

Classifying Described Systems

EASY

For each system below, decide whether it perceives its environment, acts upon it, or both, and then say whether it counts as an agent under the definition. System A: a thermometer that shows the room temperature on a screen. System B: a heater controller that reads the room temperature and switches the heater on or off. System C: a motor that turns when a button is pressed, with no sensing of its surroundings.

Hints
  • Ask first whether the system takes in information from its environment.
  • Then ask whether the system changes anything in its environment.
  • An agent needs both answers to be yes.

Key Takeaways

  1. 1
    An agent is anything that can perceive its environment and act upon that environment.
  2. 2
    Perceiving and acting are both required. Either one alone does not make something an agent.
  3. 3
    Perception carries information from the environment to the agent, and action carries the agent's effects back into the environment.
  4. 4
    When analyzing any system, ask what it perceives and what it can change, and check that both answers are yes.

At a glance

  • An agent is anything that can perceive its environment and act upon that environment.
  • Perceiving and acting are both required. Perception alone or action alone does not make something an agent.
  • Perception carries information from the environment to the agent, and action carries the agent's effects back into the environment.
  • To analyze any system, check what it perceives and what it can change, and confirm both are present.

Related concepts

More concepts starting with I