to_dict
to_dict
Return the gate as the dictionary sent in the function’s gates list, in the
shape of the SWML gate object. Keys that weren’t set (id,
criteria, on_unclear, unclear, visual_input, dialogue, history, since)
are left out.
Returns
dict[str, Any] — The gate: id (when set), question, criteria (when
true_means or false_means is set), threshold, on_fail, then on_unclear,
unclear, visual_input, dialogue, history, and since, each when set.