Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/tools / / TruncateOptions

Interface: TruncateOptions

Defined in: packages/tools/src/result/truncate.ts:169

Stable

Configuration for truncateBody.

Properties

PropertyModifierTypeDescriptionDefined in
counter?readonlyTokenCounter-packages/tools/src/result/truncate.ts:170
imperativeBudgetMs?readonlynumberBudget for the spill-time scan in milliseconds. Default 250.packages/tools/src/result/truncate.ts:195
imperativePatterns?readonlyreadonly ImperativePattern[]Pattern catalogue for the single scan over the FULL body at spill time (defaults to the built-in catalogue). The per-page strip pass in the executor cannot see a pattern split by a read_result page boundary; this whole-artifact scan can.packages/tools/src/result/truncate.ts:193
producerSource?readonlyunknownEffective source of the content's producer (a JSON-serializable ToolSource value; see producerTrustClass).packages/tools/src/result/truncate.ts:186
producerTrustClass?readonlystringEffective trust class of the content's producer, forwarded to SpillWriter.write so the artifact's taint survives process / executor boundaries.packages/tools/src/result/truncate.ts:181
runId?readonlystring-packages/tools/src/result/truncate.ts:173
signal?readonlyAbortSignal-packages/tools/src/result/truncate.ts:196
spill?readonlySpillWriter-packages/tools/src/result/truncate.ts:172
summarizer?readonlyResultSummarizer-packages/tools/src/result/truncate.ts:171
toolCallId?readonlystring-packages/tools/src/result/truncate.ts:174
toolSensitivityTier?readonlystring-packages/tools/src/result/truncate.ts:175