# Variable PruningStrategy`Const`

PruningStrategy: {
OLDEST_FIRST: "oldest_first";
LOWEST_PRIORITY: "lowest_priority";
PRIORITY_WEIGHTED_AGE: "priority_weighted_age";
SUMMARIZE: "summarize";
SLIDING_WINDOW: "sliding_window";
HIERARCHICAL: "hierarchical";
SEMANTIC: "semantic";
} = ...

Strategy for pruning context when budget is exceeded.

#### Type Declaration

- ##### `Readonly` OLDEST_FIRST: "oldest_first"

- ##### `Readonly` LOWEST_PRIORITY: "lowest_priority"

- ##### `Readonly` PRIORITY_WEIGHTED_AGE: "priority_weighted_age"

- ##### `Readonly` SUMMARIZE: "summarize"

- ##### `Readonly` SLIDING_WINDOW: "sliding_window"

- ##### `Readonly` HIERARCHICAL: "hierarchical"

- ##### `Readonly` SEMANTIC: "semantic"

- Defined in packages/nexus-agents/src/agents/context-pruner.ts:41
- Defined in packages/nexus-agents/src/agents/context-pruner.ts:51