Working memory lets an agent retain relevant intermediate information during a task or interaction. As tool calls accumulate, the agent must preserve what matters, discard unnecessary results, and sometimes remember earlier interactions. section 8.12
The boundary between useful and excessive context is application-dependent and usually determined empirically. An agent might keep only each search’s final result rather than every retrieved document, storing reusable state for later steps. section 8.12
Multiple searches
During a sequence of searches, working memory can retain each query’s final result while dropping the documents that no longer matter. section 8.12
Figure 8.7 The general agent architecture allowing for multiple actions per response
Use the agent architecture diagram to see where retained state supports multiple actions in one task. section 8.12






