Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/tools / / TruncationOutcome

Interface: TruncationOutcome

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

Outcome of truncateBody. Carries the truncated body and the metadata the audit emitter writes into the tool:result:truncated row.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
artifactBytes?readonlynumberBytes written to the spill artifact (only set for 'spill-to-file').packages/tools/src/result/truncate.ts:61
artifactPath?readonlystringPath of the spill artifact (only set for 'spill-to-file').packages/tools/src/result/truncate.ts:59
bodyreadonlystring-packages/tools/src/result/truncate.ts:53
droppedTokensreadonlynumber-packages/tools/src/result/truncate.ts:56
keptTokensreadonlynumber-packages/tools/src/result/truncate.ts:55
originalTokensreadonlynumber-packages/tools/src/result/truncate.ts:54
strategyAppliedreadonlyTruncationStrategy-packages/tools/src/result/truncate.ts:57
summarizerModel?readonlystringModel name of the summarizer (only set for 'summarize').packages/tools/src/result/truncate.ts:63
truncatedreadonlyboolean-packages/tools/src/result/truncate.ts:52