class RubyLLM::Evaluation::Result
One criterion’s verdict or native decision, with its acceptance policy.
Attributes
Returns the exception when this criterion could not be evaluated.
Returns the evaluator conversation or native judgment, as frozen portable evidence.
Returns the actual evaluator model identifier, when available.
Returns the criterion name.
Returns the evaluator’s explanation, when available.
Returns a boolean, Probability, Score, or Choice without discarding its distribution.
Public Instance Methods
Source
# File lib/ruby_llm/evaluation/result.rb, line 38 def passed? status == :passed end
Returns true when this criterion passed its acceptance policy.
Source
# File lib/ruby_llm/evaluation/result.rb, line 55 def status return :error if error return :unassessed if value.nil? return :measured if decision.nil? decision ? :passed : :failed end
Returns :passed, :failed, :measured, :unassessed, or :error.
Source
# File lib/ruby_llm/evaluation/result.rb, line 64 def to_h { name:, status:, value: value.respond_to?(:to_h) ? value.to_h : value, reason:, minimum: @minimum, model:, evidence:, error: error && { class: error.class.name, message: error.message } } end
Returns the measurement, policy, and outcome as a Hash.