Skip to content

SourceTruncationProcessor

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/context/history-processors.ts

Hard character limit per tool output observation. Prevents any single tool from injecting massive payloads into context.

Applied first in the pipeline so downstream processors work with bounded-size items.

Implements: HistoryProcessor

Methods

MethodSignatureReturns
processprocess(items: AgentInputItem[])AgentInputItem[]

Properties

PropertyType
nameany

Where it refuses work

  • SourceTruncationProcessor stops the work with an early return when !isToolOutput(item).
  • SourceTruncationProcessor stops the work with an early return when output.length <= this.maxChars.

Was this page helpful?

Download as PDF