class RubyLLM::Score
A probability-weighted position on a judgment’s ordered levels.
Attributes
Returns the provider’s confidence in the distribution, between 0 and 1.
Returns the ordered descriptions, preserving structured Hashes and Arrays.
Returns each zero-based Integer level index’s probability.
Returns the weighted score, which can fall between level indexes.
Public Instance Methods
Source
# File lib/ruby_llm/score.rb, line 34 def to_h { type:, score:, levels:, probabilities:, confidence: } end
Returns the answer as a Hash.