compass.utilities.event_log.emit_branch#

emit_branch(step, outcome, **fields)[source]#

Record which way a workflow decision went

Parameters:
  • step (str) – ID of the decision’s node in compass/data/workflow.json5.

  • outcome (str) – The when label of the edge taken, as listed in the map.

  • **fields – Details explaining the outcome (e.g. a score and threshold).