ExTypesafe.Response.ChoiceAnswer (ExTypesafe v0.1.0)

Copy Markdown View Source

Answer to a Choice question.

  • choice — the highest-probability option
  • probabilities — every option mapped to its probability (floats summing to 1)
  • confidence — how certain the model is (0.0–1.0)

Summary

Types

t()

@type t() :: %ExTypesafe.Response.ChoiceAnswer{
  choice: String.t(),
  confidence: float(),
  probabilities: %{required(String.t()) => float()},
  type: String.t()
}