Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/tools / result

result

Tool result envelope helpers for @graphorin/tools — token counting, truncation pipeline ('middle' | 'tail' | 'spill-to-file' | 'summarize'), and the ToolReturn content-parts pass-through convention.

References

countTokensHeuristic

Re-exports countTokensHeuristic


ResultEnvelope

Re-exports ResultEnvelope


splitTextAndContentParts

Re-exports splitTextAndContentParts


TokenCounter

Re-exports TokenCounter


toResultEnvelope

Re-exports toResultEnvelope


truncateBody

Re-exports truncateBody


TruncationOutcome

Re-exports TruncationOutcome