# Class DynamicExpertManager

Manages dynamic expert creation within a pipeline run.

- Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:57

##### Index

### Constructors

constructor

### Accessors

remaining
atLimit

### Methods

create
list
get

## Constructors

### constructor

- new DynamicExpertManager(maxExperts?: number): DynamicExpertManager

  #### Parameters

  - maxExperts: number = MAX_DYNAMIC_EXPERTS

  #### Returns DynamicExpertManager

  - Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:61

## Accessors

### remaining

- get remaining(): number

  How many more experts can be created.

  #### Returns number

  - Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:115

### atLimit

- get atLimit(): boolean

  Whether the limit has been reached.

  #### Returns boolean

  - Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:120

## Methods

### create

- create(spec: DynamicExpertSpec): DynamicExpert | null

  Create a new dynamic expert. Returns null if limit reached.

  #### Parameters

  - spec: DynamicExpertSpec

  #### Returns DynamicExpert | null

  - Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:66

### list

- list(): readonly DynamicExpert[]

  Get all created experts.

  #### Returns readonly DynamicExpert[]

  - Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:105

### get

- get(id: string): DynamicExpert | undefined

  Get an expert by ID.

  #### Parameters

  - id: string

  #### Returns DynamicExpert | undefined

  - Defined in packages/nexus-agents/src/pipeline/dynamic-expert.ts:110