All Questions
Agents And Tool Use easy

An agent's search tool returns full web pages of about 30,000 tokens each. After a few steps, cost and latency climb sharply. What is the best fix?

  1. A Move to a model with a larger context window so the full pages always fit in the prompt.
  2. B Reduce the step cap to two so the agent cannot accumulate more than two large results.
  3. C Cache the model's final answers so repeated questions skip the tool calls entirely.
  4. D Truncate or summarize tool results to a few thousand tokens before adding them back.

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

Get the app

Related questions