問題文
A travel-planning agent must gather flight options, hotel options, and local event listings. The three lookups do not depend on one another, and the user-facing latency budget is tight. Which arrangement uses the budget best?
選択肢
- Run the three lookups at the same time and combine the results once all have returned.
- Run only the flight lookup first and start the other two after the user confirms the flight, which reduces the number of calls that are made in total.
- Merge the three lookups into one tool that takes the whole trip description and returns everything at once, because a single call is always faster than three calls and it also removes the need for the agent to reason about which lookup to make in which order.
- Run them one after another so the agent can reason about each returned result before deciding on the next lookup.