What is a state machine?

Definition

Each state describes where the process is now. Inputs or events can trigger a transition to another allowed state.

A workflow can use explicit transitions to keep track of progress and avoid skipping required steps. A model can handle conversation while the state machine controls the next activity.

ELI5

A state machine keeps track of where a process is and which next steps are allowed. It gives a workflow a clear set of stages.

For example, a quiz can wait for an answer, check it and then show feedback. It should not mark an unanswered question as completed just because a model suggests advancing.

Why make transitions explicit?

Explicit rules make it easier to check which actions can occur at each step and track where problems occur.

Can a model work inside a state machine?

Yes, the state machine can manage progression while a model produces or interprets language within particular states.

  1. Ornella Bahidika and Joel Allou against a black background beside the blue-and-white headline “THE HARNESS DRIVES”.
  2. Portraits of Joel Allou and Ornella Bahidika beside the blue-and-white headline "FAST VOICE TUTORS" on a black background.
Definition card for state machine: What is a state machine?

A state machine represents a process as a set of states and rules for moving between them.