Simple · Memory, the budget, and working toward a goal
Why an agent forgets
A model carries nothing from one request to the next. Each request starts empty, unless the software sends the facts again. The record is the set of facts the software keeps, outside the model. On Monday, Milo’s agent ordered 40 cartons. On Tuesday it ordered 40 more, because nobody sent Monday’s order back. A long job needs the record sent back at each step.
Example
Maple Mart, Monday the agent orders 40 cartons of milk the record: Monday, 40 cartons, ordered Tuesday, nothing sent back the agent orders 40 more Tuesday, the record sent back the agent sees Monday’s order and waits
Try it Yourself
Write what the software must send back on Tuesday, so Milo’s agent does not order twice.
Exercise
Why did Milo’s agent order the milk twice?