Interface CoTHistory


public interface CoTHistory
The history mechanism automatically maintains a list of recent actions taken by an AI as part of a CoTProcess, to help the AI maintain context when it needs to execute a series of CoTTasks as part of an overall, logical task.

What is recorded: (a) transitions (the model emitted {goTo,intent,stepAfter}), and (b) successful non?transition results that were validated and applied to state (for example via CoTTask.stateUpdates).

History storage: The primary list is kept on the process as history. For ease of serialization and prompt access, a bounded mirror is also maintained at process.state.history. Both lists are append?only during a run. Limits are controlled by CoTProcess.historyMaxItems (memory) and CoTProcess.stateHistoryMaxItems (state mirror).