Skip to content

tinker_cookbook.preference.LabeledComparison

class tinker_cookbook.preference.LabeledComparison(**)

A Comparison annotated with a human preference label (A, B, or Tie).

Fields:

  • comparison (Comparison)
  • label (Literal['A', 'B', 'Tie'])

swap()

Return a new LabeledComparison with A/B swapped and label inverted.

Returns: LabeledComparison: A copy with completions and label swapped.