# Interface ForestConfig

Configuration for Forest-of-Thought reasoning.

interface ForestConfig {
maxTrees: number;
maxDepth: number;
maxNodesPerTree: number;
activationBudget: number;
sparsityRatio: number;
activationStrategy: ActivationStrategy;
explorationConstant: number;
crossTreeStrategy: CrossTreeStrategy;
pruningStrategy: ForestPruningStrategy;
minScoreThreshold: number;
confidenceThreshold: number;
earlyTerminationThreshold: number;
maxExplorationTimeMs: number;
nodeTimeoutMs: number;
maxTokensPerTree: number;
enableParallelExploration: boolean;
parallelThreads: number;
enableEarlyTermination: boolean;
enableCrossTreeSharing: boolean;
temperature: number;
seed: number | null;
}

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:69

##### Index

### Properties

maxTrees
maxDepth
maxNodesPerTree
activationBudget
sparsityRatio
activationStrategy
explorationConstant
crossTreeStrategy
pruningStrategy
minScoreThreshold
confidenceThreshold
earlyTerminationThreshold
maxExplorationTimeMs
nodeTimeoutMs
maxTokensPerTree
enableParallelExploration
parallelThreads
enableEarlyTermination
enableCrossTreeSharing
temperature
seed

## Properties

### `Readonly` maxTrees

maxTrees: number

Maximum number of trees in the forest

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:71

### `Readonly` maxDepth

maxDepth: number

Maximum depth per tree

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:73

### `Readonly` maxNodesPerTree

maxNodesPerTree: number

Maximum nodes per tree

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:75

### `Readonly` activationBudget

activationBudget: number

Total activation budget (max active nodes across forest)

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:77

### `Readonly` sparsityRatio

sparsityRatio: number

Percentage of nodes to keep active (0-1)

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:79

### `Readonly` activationStrategy

activationStrategy: ActivationStrategy

Strategy for node activation

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:82

### `Readonly` explorationConstant

explorationConstant: number

UCB exploration constant (for ucb strategy)

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:84

### `Readonly` crossTreeStrategy

crossTreeStrategy: CrossTreeStrategy

Strategy for cross-tree information sharing

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:86

### `Readonly` pruningStrategy

pruningStrategy: ForestPruningStrategy

Strategy for pruning low-quality branches

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:88

### `Readonly` minScoreThreshold

minScoreThreshold: number

Minimum score threshold for keeping nodes

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:91

### `Readonly` confidenceThreshold

confidenceThreshold: number

Confidence threshold for accepting conclusions

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:93

### `Readonly` earlyTerminationThreshold

earlyTerminationThreshold: number

Score threshold for early termination

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:95

### `Readonly` maxExplorationTimeMs

maxExplorationTimeMs: number

Maximum exploration time in ms

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:98

### `Readonly` nodeTimeoutMs

nodeTimeoutMs: number

Timeout per node evaluation in ms

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:100

### `Readonly` maxTokensPerTree

maxTokensPerTree: number

Maximum tokens per tree

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:102

### `Readonly` enableParallelExploration

enableParallelExploration: boolean

Enable parallel tree exploration

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:105

### `Readonly` parallelThreads

parallelThreads: number

Number of parallel exploration threads

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:107

### `Readonly` enableEarlyTermination

enableEarlyTermination: boolean

Enable early termination when good solution found

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:109

### `Readonly` enableCrossTreeSharing

enableCrossTreeSharing: boolean

Enable cross-tree information sharing

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:111

### `Readonly` temperature

temperature: number

Temperature for node generation (creativity vs determinism)

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:114

### `Readonly` seed

seed: number | null

Random seed for reproducibility (null for random)

- Defined in packages/nexus-agents/src/agents/reasoning/forest-config-types.ts:116