the current internal state of the agent’s decision process, and ovals to represent the background
information used in the process. The agent program, which is also very simple, is shown in
Figure 2.8. The INTERPRET-INPUT function generates an abstracted description of the current
state from the percept, and the RULE-MATCH function returns the first rule in the set of rules that
matches the given state description. Although such agents can be implemented very efficiently
(see Chapter 10), their range of applicability is very narrow, as we shall see.