The flow
- Two labelers, two providers. Provider disagreement identifies records that need review.
- Reviewer diffs them. It emits one
FieldDisagreementper conflicting field and a singleneeds_adjudicationflag. Agreement short-circuits the expensive step. - Adjudicator runs only on disagreement. It re-reads the original input with both labels and the reviewer’s report, then returns the final record.
Production composition
The example above runs the agents sequentially so the pattern is readable. For a million-document job, wrap labelers in aParallel step and gate the adjudicator behind a Condition in a Workflow. See parallel workflows and conditional workflows.