Lesson 8 of 9 · 5 min read
Tool Results That Fit the Context
A tool result enters the context once and is reread on every later turn of the run, so its size is paid many times over, and its shape decides whether the model can act on it. The same backend answer can be returned in several shapes: raw records, projected fields, a page with a cursor and a total, a summary computed for the question, or a reference the model can fetch again. Choosing among them is a design decision measured on two axes, tokens per run and answer accuracy on a labelled task set, and the measurement usually shows that the answer-shaped result wins on both. Rules follow: project to the fields the next step uses, precompute what the model would otherwise infer, page large results and say the total, never let a partial list look complete, and keep bulk out of the history by returning a reference the model can expand on demand.
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal