Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / ResultEnvelope
Interface: ResultEnvelope<TOutput>
Defined in: packages/tools/src/result/envelope.ts:19
Canonical envelope passed through the executor's downstream pipeline. The text-shaped portion (textBody) is the only field subject to the result-size cap and the inbound sanitization scan.
Stable
Type Parameters
| Type Parameter | Default type |
|---|---|
TOutput | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
contentParts | readonly | readonly MessageContent[] | Multipart wire payload (text + non-text parts). | packages/tools/src/result/envelope.ts:25 |
output | readonly | TOutput | undefined | Typed structured payload (the model-facing output). | packages/tools/src/result/envelope.ts:21 |
textBody | readonly | string | Plain-text rendering of the structured payload (used for cap accounting). | packages/tools/src/result/envelope.ts:23 |