Jev.Noul (Jev v0.2.0)

Copy Markdown View Source

A yes/no question. Jev answers with the probability of yes, from 0 to 1.

instructions is text or a JSON-encodable map. criteria optionally describes what counts as true and false:

%Jev.Noul{
  instructions: "Does this need immediate attention?",
  criteria: %{true: "Users cannot use the service.", false: "A workaround exists."}
}

Summary

Types

t()

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