TypeSafe.Answer.Choice (TypeSafe v0.2.2)

Copy Markdown View Source

A choice answer.

  • :choice — the selected label.
  • :confidence — confidence in the selection, from 0 to 1.
  • :probabilities — probability of each label, keyed by label name.

Summary

Types

t()

@type t() :: %TypeSafe.Answer.Choice{
  choice: String.t(),
  confidence: float(),
  probabilities: %{optional(String.t()) => float()},
  type: String.t()
}