# Interface ContextManagerConfig

Configuration for ContextManager.

interface ContextManagerConfig {
maxTokens: number;
budget?: ContextBudget;
adapter?: IModelAdapter;
logger?: ILogger;
warningThreshold?: number;
}

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:95

##### Index

### Properties

maxTokens
budget?
adapter?
logger?
warningThreshold?

## Properties

### maxTokens

maxTokens: number

Maximum context window size in tokens

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:97

### `Optional` budget

budget?: ContextBudget

Budget allocation (defaults to DEFAULT_BUDGET)

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:99

### `Optional` adapter

adapter?: IModelAdapter

Model adapter for token counting

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:101

### `Optional` logger

logger?: ILogger

Custom logger

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:103

### `Optional` warningThreshold

warningThreshold?: number

Warning threshold (0-1) - warn when this % of budget is used

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:105