An evaluation answer giving the probability that a yes/no question is true.
A noul is TypeSafe's yes/no question type. The model returns a single number from 0 (no) to 1 (yes). Near 0.5 means yes and no are equally likely; it does not mean "medium". A noul has no separate confidence.
No threshold is applied here. Decide what counts as a yes in your code, where the threshold can depend on the stakes.
Fields
probability- the probability that the answer is yes
Example
action :urgent, AshAi.Evaluate.Noul do
description "Does `ticket` convey urgency?"
argument :ticket, :string, allow_nil?: false
run evaluate("typesafe:jev-latest")
end
urgent = Ash.run_action!(input)
if urgent.probability >= 0.8, do: page_on_call()
Summary
Types
@type t() :: %AshAi.Evaluate.Noul{probability: float()}