EdgeCondition

typealias EdgeCondition<State> = suspend (State) -> String

A routing function for a conditional edge: it inspects the current state and returns the name of the node to run next, or END to finish.