class RubyLLM::Judge

Defines reusable probability, choice, and score questions over application data.

class TicketTriage < RubyLLM::Judge
  probability :urgent, "Does this need attention today?"
  choice :department, "Which team should handle this?" do
    billing "Payments and refunds"
    technical "Bugs and integrations"
  end
end

TicketTriage.judge("Please refund my duplicate charge today.").urgent.probability

Uses Configuration#default_judgment_model unless a model is declared or supplied for the call. An isolated context supplies its own default.

Blocks and procs resolve once per judgment, with declared inputs available as methods. Hashes and arrays preserve structured instructions and criteria.