Complex · Giving a helper something to stand on
Letting the helper choose when to look
Now the order agent may choose when to look things up, and how many times. That helps with hard questions, but it could keep looking forever. So code sets a search limit: how many lookups, and what counts as done. At the limit, it stops and passes the task to Milo.
Video coming
Example
Maple Mart, the order agent checks on soap search limit: 4 lookups done means: a box count and a delivery day lookup 1 supplier list: soap comes in boxes of 12 lookup 2 supplier list: soap arrives on Thursdays It had both after 2 lookups, so it stopped looking.
Try it Yourself
The order agent reaches its search limit with no answer. What happens next? Answer in a sentence.
Exercise
Who sets the search limit?