Complex · Finding the right facts before answering
Looking things up, but not forever
Next, Ayla lets the help agent decide for itself when to search, and how often. Hard questions get better answers this way. Left alone, though, it might search again and again with no end. So Milo puts the search limit in code: 3 lookups at most for one question. Once it reaches 3, it stops and shows Ayla what it has.
Example
Maple Mart, a helper asks: are the plant kits here yet? look 1 card for plant kits found: kept in the back room look 2 fact map, garden maker found: delivers on Mondays answer two facts are enough, so it replies The search limit is 3 lookups, and code sets it. At 3 with no answer: stop, and tell Ayla what was found.
Try it Yourself
After 3 lookups, the help agent still has no answer. What comes next?
Exercise
Who sets the help agent’s search limit?