Why it matters

Scratchpad enables persistent reasoning within episode. Foundation for ReAct.

Advertisement

The architecture

Data structure: append-only list of thought/action/observation.

Formatted into prompt.

Scratchpad structureThought logreasoning stepsAction logtool callsObservation logtool resultsFormat + truncate scratchpad to fit context window
Scratchpad.
Advertisement

How it works end to end

Append per step.

Format into text for prompt.

Truncate if too long.

Distinct from long-term memory.