All Questions
Agents And Tool Use hard

An agent occasionally loops, calling `search` with near-identical queries, and one overnight run took 400 steps. The team proposes a 25-step cap. Some legitimate tasks also call a slow tool that can return 50,000-token results. What stop design is most robust?

  1. A Host-enforced budgets on steps, tokens, and wall time plus repeat-call detection, ending in a structured partial result or escalation.
  2. B A system-prompt instruction to stop when progress stalls, trusting the model's judgment so long legitimate tasks are not cut off.
  3. C The 25-step cap on its own, since every step costs roughly the same, so a step limit bounds total tokens and wall time proportionally.
  4. D The 25-step cap, followed by an automatic restart from a fresh context, since loops are usually transient sampling noise.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions