Quiz 16 Question 9 of 20

An agent pipeline consists of three sequential tools: a CodeAnalysisTool that identifies functions to refactor, a RefactoringTool that applies the changes, and a TestRunnerTool that validates the output. The agent passes state between tools by appending each tool's output to the conversation context. After testing, the team notices that when the CodeAnalysisTool's output is long (>2000 tokens), the TestRunnerTool sometimes receives incomplete state because earlier context was truncated from the window. Which state-sharing mechanism would MOST reliably solve this problem?

Select an answer to reveal the explanation.

Motivation