# Interface PruneOptions

Options for a pruning operation.

interface PruneOptions {
targetTokens?: number;
strategy?: PruningStrategy;
categories?: ("system" | "task" | "active")[];
summarizationPrompt?: string;
slidingWindowOptions?: Partial<SlidingWindowOptions>;
hierarchicalOptions?: Partial<HierarchicalOptions>;
semanticOptions?: Partial<SemanticOptions>;
}

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

##### Index

### Properties

targetTokens?
strategy?
categories?
summarizationPrompt?
slidingWindowOptions?
hierarchicalOptions?
semanticOptions?

## Properties

### `Optional` targetTokens

targetTokens?: number

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

### `Optional` strategy

strategy?: PruningStrategy

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

### `Optional` categories

categories?: ("system" | "task" | "active")[]

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

### `Optional` summarizationPrompt

summarizationPrompt?: string

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

### `Optional` slidingWindowOptions

slidingWindowOptions?: Partial<SlidingWindowOptions>

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

### `Optional` hierarchicalOptions

hierarchicalOptions?: Partial<HierarchicalOptions>

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

### `Optional` semanticOptions

semanticOptions?: Partial<SemanticOptions>

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