Skip to content

TruncateConfig

Defined in: src/context-manager/methods/truncate.ts:20

Experimental

Configuration for the truncate method.

optional previewTokens?: number;

Defined in: src/context-manager/methods/truncate.ts:22

Experimental

Number of tokens to keep as preview text. Defaults to 1,000.


optional preview?: "head" | "tail" | "headTail";

Defined in: src/context-manager/methods/truncate.ts:25

Experimental

Which portion of the text to keep as preview. Defaults to ‘headTail’.