class RubyLLM::Probability
The probability that a judgmentโs yes/no question is true.
Attributes
Returns the probability of yes, between 0 and 1.
Public Instance Methods
Source
# File lib/ruby_llm/probability.rb, line 22 def to_h { type:, probability: } end
Returns the answer as a Hash.
Source
# File lib/ruby_llm/probability.rb, line 17 def type :probability end
Returns :probability.