class RubyLLM::Choice
A selected judgment option and its full probability distribution.
Attributes
Returns the selected option, preserving its declared String or Symbol type.
Returns the provider’s confidence in the distribution, between 0 and 1.
Returns each declared option’s probability.
Public Instance Methods
Source
# File lib/ruby_llm/choice.rb, line 30 def to_h { type:, choice:, probabilities:, confidence: } end
Returns the answer as a Hash.