TypeSafeSDK.Answer (TypeSafeSDK v0.4.1)

Copy Markdown View Source

Uncertainty helpers with explicit application-owned policy thresholds.

Summary

Functions

Classify certainty using explicit act: and review: thresholds. No implicit policy.

Functions

confidence(answer)

gate(answer, opts)

@spec gate(
  TypeSafeSDK.NoulAnswer.t()
  | TypeSafeSDK.ChoiceAnswer.t()
  | TypeSafeSDK.ScoreAnswer.t(),
  keyword()
) :: :act | :review | :escalate

Classify certainty using explicit act: and review: thresholds. No implicit policy.

yes?(answer)

See TypeSafeSDK.Answer.Noul.yes?/1.

yes?(answer, threshold)

See TypeSafeSDK.Answer.Noul.yes?/2.