Design a fallback when a lookup times out
Keep action verbs and their objects together. · 185 words
A timeout means the lookup gave no usable data, not that the answer is 'no'. Give the model a bounded fallback. For a travel example, write: "Call flight_status for flight BA 217 on 14 May. If it times out once, call airport_board for the departure airport and report the flight row shown there. If both sources fail, say 'status unavailable' and do not guess." Include the source name and retrieval time. A checkable result is a flight-number row from one named source, or an unavailable report that documents both failures.
A fallback can be a different read-only source, not another copy of the same call. For a museum example, write: "Use event_search for the 'Space and Maps' talk on 8 June. If it times out, use the museum's official calendar at museum_calendar. State which source supplied the answer. If both fail, say 'schedule not confirmed' and omit contact information unless a verified number was supplied." The source details are the event title, date, and time from the successful page. The checkable result is a dated entry tied to a named source, not a vague assurance.
Check your recall
What should the travel prompt report if both flight_status and airport_board time out?
Check your answer
It should report 'status unavailable,' name both failed sources, and avoid guessing the flight status. It should not describe the flight as delayed, canceled, or on time.
Sources and credits
Original KeyTouch lesson. Background reading · Microsoft · Generative AI for Beginners.