Skip to content

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 ParameterDefault type
TOutputunknown

Properties

PropertyModifierTypeDescriptionDefined in
contentPartsreadonlyreadonly MessageContent[]Multipart wire payload (text + non-text parts).packages/tools/src/result/envelope.ts:25
outputreadonlyTOutput | undefinedTyped structured payload (the model-facing output).packages/tools/src/result/envelope.ts:21
textBodyreadonlystringPlain-text rendering of the structured payload (used for cap accounting).packages/tools/src/result/envelope.ts:23