CCDV-F practice › Prompt & Context Engineering · Question 54 of 92

Prompt & Context Engineering

An agent's search tool returns 40 results; the agent needed 3. All 40 stay in the conversation history for the rest of the session. What's the cheapest fix?

Show answer and explanation

Answer: B — Tool output pruning — drop what isn't needed before it enters history

Pruning tool output at the source is the cheapest of the three context remedies — do it before reaching for compaction (which is for when history itself is the bulk) or isolation.