Interface: AnchorManagerOptions
Defined in: anchors/types.ts:166
Configuration for the AnchorManager
Properties
estimateTokens?
optional estimateTokens?: (content) => number;
Defined in: anchors/types.ts:193
Token estimator function (default: rough estimate based on chars)
Parameters
| Parameter | Type |
|---|---|
content | string |
Returns
number
includeDefaults?
optional includeDefaults?: boolean;
Defined in: anchors/types.ts:188
Include built-in default safety anchors (default: true)
maxAnchors?
optional maxAnchors?: number;
Defined in: anchors/types.ts:171
Maximum number of anchors to keep (default: 20) When exceeded, oldest low-priority anchors are removed first
maxTokens?
optional maxTokens?: number;
Defined in: anchors/types.ts:177
Maximum tokens budget for anchors (default: 2000) Anchors exceeding this budget are truncated or removed
persistPath?
optional persistPath?: string;
Defined in: anchors/types.ts:183
Path for persisting anchors (for scope: ‘persistent’) If not provided, persistent anchors work like session anchors