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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
counter? | readonly | TokenCounter | - | packages/tools/src/result/truncate.ts:170 |
imperativeBudgetMs? | readonly | number | Budget for the spill-time scan in milliseconds. Default 250. | packages/tools/src/result/truncate.ts:195 |
imperativePatterns? | readonly | readonly 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? | readonly | unknown | Effective source of the content's producer (a JSON-serializable ToolSource value; see producerTrustClass). | packages/tools/src/result/truncate.ts:186 |
producerTrustClass? | readonly | string | Effective 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? | readonly | string | - | packages/tools/src/result/truncate.ts:173 |
signal? | readonly | AbortSignal | - | packages/tools/src/result/truncate.ts:196 |
spill? | readonly | SpillWriter | - | packages/tools/src/result/truncate.ts:172 |
summarizer? | readonly | ResultSummarizer | - | packages/tools/src/result/truncate.ts:171 |
toolCallId? | readonly | string | - | packages/tools/src/result/truncate.ts:174 |
toolSensitivityTier? | readonly | string | - | packages/tools/src/result/truncate.ts:175 |