AI / Apache Burr Interview questions
What is the purpose of the default condition in with_transitions?
default is a special condition that always evaluates to True. It is meant as a catch-all transition that fires when none of the more specific conditions on outgoing edges from an action match.
Burr also lets you skip specifying a condition entirely: passing a plain two-item tuple like ("human_converse", "ai_converse") to with_transitions is shorthand for using default. Because conditions are evaluated in the order they are listed and the first match wins, a default transition should generally be placed last among the edges leaving a given action.
More Related questions...