Kind: Class
Source: atloria-monorepo/libs/agent-core/src/context/history-processors.ts
Keeps the last N tool outputs in full detail. Older ones are replaced with extractive summaries.
Directly extracted from the existing elideOldObservations() function in autonomous-loop.ts — same logic, now composable.
SWE-agent default: n=5.
Implements: HistoryProcessor
Methods
| Method | Signature | Returns |
|---|---|---|
process | process(items: AgentInputItem[]) | AgentInputItem[] |
Properties
| Property | Type |
|---|---|
name | any |
Where it refuses work
LastNObservationsProcessorstops the work with an early return whenoutputIndices.length <= this.n.LastNObservationsProcessorstops the work with an early return when!indicesToElide.has(i).
Was this page helpful?