[Statechart] Add PromptStateMachine class.