# `AshAi.Evaluate.Noul`
[🔗](https://github.com/ash-project/ash_ai/blob/v1.1.0/lib/ash_ai/evaluate/noul.ex#L5)

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()

# `t`

```elixir
@type t() :: %AshAi.Evaluate.Noul{probability: float()}
```

# `handle_change?`

# `prepare_change?`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
