ExTypesafe.Question.Noul (ExTypesafe v0.2.0)

Copy Markdown View Source

A yes/no question. Returns the probability the answer is yes (0.0–1.0).

Optionally supply criteria to describe what "yes" and "no" mean:

%ExTypesafe.Question.Noul{
  instructions: "Does this convey urgency?",
  criteria: %{true: "Explicitly time-sensitive", false: "No urgency expressed"}
}

Summary

Types

t()

@type t() :: %ExTypesafe.Question.Noul{
  criteria: %{optional(true | false) => ExTypesafe.Question.entry()} | nil,
  instructions: ExTypesafe.Question.instructions(),
  type: term()
}