# Interface CreateExpertOptions

Options for creating an expert. (Source: Issue #476 - Wire context pruning to ExpertFactory)

interface CreateExpertOptions {
adapter?: IModelAdapter;
modelOverrides?: Partial<ModelPreference>;
additionalCapabilities?: AgentCapability[];
contextPruning?: ContextPrunerAgentConfig;
}

- Defined in packages/nexus-agents/src/agents/experts/expert-factory.ts:43

##### Index

### Properties

adapter?
modelOverrides?
additionalCapabilities?
contextPruning?

## Properties

### `Optional` adapter

adapter?: IModelAdapter

Model adapter to use

- Defined in packages/nexus-agents/src/agents/experts/expert-factory.ts:45

### `Optional` modelOverrides

modelOverrides?: Partial<ModelPreference>

Override model preferences from config

- Defined in packages/nexus-agents/src/agents/experts/expert-factory.ts:47

### `Optional` additionalCapabilities

additionalCapabilities?: AgentCapability[]

Additional capabilities to add

- Defined in packages/nexus-agents/src/agents/experts/expert-factory.ts:49

### `Optional` contextPruning

contextPruning?: ContextPrunerAgentConfig

Context pruning configuration (Issue #476). Enables automatic memory management for long-running conversations. Since Issue #479, context pruning is enabled by default.

- Defined in packages/nexus-agents/src/agents/experts/expert-factory.ts:55