# Interface StateMachineOptions

State machine options.

interface StateMachineOptions {
initialState?: AgentState;
maxErrorCount?: number;
trackHistory?: boolean;
maxHistorySize?: number;
}

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:57

##### Index

### Properties

initialState?
maxErrorCount?
trackHistory?
maxHistorySize?

## Properties

### `Optional` initialState

initialState?: AgentState

Initial state (defaults to 'idle')

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:59

### `Optional` maxErrorCount

maxErrorCount?: number

Maximum error count before permanent error state

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:61

### `Optional` trackHistory

trackHistory?: boolean

Enable transition history tracking

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:63

### `Optional` maxHistorySize

maxHistorySize?: number

Maximum history entries to keep

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:65