state_machine_sm_create
Create a named state machine by specifying its name, initial state, and valid states. Use to model system behavior or workflows, then add transitions.
Instructions
[state_machine] Create a named state machine with an initial state. states: list of all valid state names. Then add allowed transitions with sm_add_transition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| initial | Yes | ||
| states | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |