Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/tools / / ResultSummarizer

Interface: ResultSummarizer

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

Stable

Pluggable summarizer hook - the agent runtime supplies an implementation backed by the consolidator-tier model. When absent the 'summarize' strategy gracefully degrades to 'middle' and records the fall-through on the outcome.

Properties

PropertyModifierTypeDefined in
modelreadonlystringpackages/tools/src/result/truncate.ts:97

Methods

summarize()

ts
summarize(body, opts): Promise<string>;

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

Parameters

ParameterType
bodystring
opts{ maxTokens: number; signal?: AbortSignal; }
opts.maxTokensnumber
opts.signal?AbortSignal

Returns

Promise&lt;string&gt;