Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/tools / / TruncationOutcome
Interface: TruncationOutcome
Defined in: packages/tools/src/result/truncate.ts:52
Outcome of truncateBody. Carries the truncated body and the metadata the audit emitter writes into the tool:result:truncated row.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
artifactBytes? | readonly | number | Bytes written to the spill artifact (only set for 'spill-to-file'). | packages/tools/src/result/truncate.ts:62 |
artifactPath? | readonly | string | Path of the spill artifact (only set for 'spill-to-file'). | packages/tools/src/result/truncate.ts:60 |
body | readonly | string | - | packages/tools/src/result/truncate.ts:54 |
droppedTokens | readonly | number | - | packages/tools/src/result/truncate.ts:57 |
keptTokens | readonly | number | - | packages/tools/src/result/truncate.ts:56 |
originalTokens | readonly | number | - | packages/tools/src/result/truncate.ts:55 |
resultHandle? | readonly | string | Opaque, run-scoped handle URI for the spill artifact — e.g. graphorin-spill:<runId>/<toolCallId>.<ext> (only set for 'spill-to-file'). This is the model-facing reference embedded in the truncation annotation; unlike artifactPath it carries no raw filesystem path. Resolve it with createFileResultReader / the built-in read_result tool. | packages/tools/src/result/truncate.ts:71 |
strategyApplied | readonly | TruncationStrategy | - | packages/tools/src/result/truncate.ts:58 |
summarizerModel? | readonly | string | Model name of the summarizer (only set for 'summarize'). | packages/tools/src/result/truncate.ts:73 |
truncated | readonly | boolean | - | packages/tools/src/result/truncate.ts:53 |