MachineState
The value of the machine (statecharts-and-squads.md 2.6, rule 8): its status, the active state per region and the counts that the state root of the Call context carries (orchestration-layer.md 3.4), and from 1.58.0 the slots, timers, queued events and per-Turn counts of an authored machine.
An object with 12 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
active | map of MachineId | yes | The active state of each region while the machine runs; empty otherwise. |
handoffs | integer | yes | Handoffs taken in the Call; none on the implicit machine. |
nodes | map of WorkflowNodeResult | no | A Workflow machine (1.59.0): the result of each node that ran, by node id, which expressions read as nodes.<id>. Content, never logged. |
queued | array of MachineEvent | no | An authored machine (1.58.0): the events the machine raised for itself (slot.filled, slot.cleared), which the Session processes before any other. |
slots | map of any | no | An authored machine (1.58.0): every declared slot's value, null when empty. |
status | MachineStatus | yes | |
timers | array of MachineTimer | no | An authored machine (1.58.0): the timers started and not yet fired or cancelled. |
transitions | integer | yes | State changes taken in the Call; none on the implicit machine. |
turn_handoffs | integer | no | An authored machine (1.58.0): handoffs taken in the current Turn. |
turn_refusals | integer | no | An authored machine (1.58.0): proposals refused in the current Turn. |
turns_in_state | integer | yes | Turns closed since the speaker state was last entered. |
visits | map of integer | yes | How many times each state has been entered in the Call. |