TypeSafe.Answer.Noul (typesafe_ai v0.1.1)

Copy Markdown View Source

The answer to a question built with TypeSafe.noul/2.

:noul is the probability of yes, from 0 to 1. There is no separate confidence field and no automatic Boolean conversion. Your application decides whether to act, ask for clarification, or request human review.

%TypeSafe.Answer.Noul{noul: probability} = response.answers["refund"]

# An illustrative policy; choose a threshold using your own evaluation data.
refund_requested? = probability >= 0.8

Summary

Types

t()

The service's probability of yes.

Types

t()

@type t() :: %TypeSafe.Answer.Noul{noul: number()}

The service's probability of yes.