TruncateConfig
Defined in: src/context-manager/methods/truncate.ts:20
Experimental
Configuration for the truncate method.
Properties
Section titled “Properties”previewTokens?
Section titled “previewTokens?”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.
preview?
Section titled “preview?”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’.