branch
: indicates the start of a branch structure.router
: specifies the Router Tool used to determine the branch logic (usually returns a status label such as is_query / is_answer).branches
: defines the sequence of steps to execute under each state, where the key is the state label and the value is the corresponding list of steps to execute (an empty list means termination).branches
must correspond to the state values returned by the Router tool.