# Function createStateMachine

Agents exports - Agent framework, Orchestrator, Experts Split from index.ts for file size compliance (Issue #285)

- createStateMachine(options?: StateMachineOptions): AgentStateMachine

  Creates a new agent state machine.

  #### Parameters

  - `Optional` options: StateMachineOptions

    State machine options

  #### Returns AgentStateMachine

  A new AgentStateMachine instance

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