function SIMPLE-REFLEX-AGENT(percept) returns an action
persistent: rules, a set of condition-action rules
state ← INTERPRET-INPUT(percept)
rule ← RULE-MATCH(state,rules)
action ← rule.ACTION
return action
Figure ?? A simple reflex agent. It acts according to a rule whose condition matches the current state, as defined by the percept.