ExTypesafe.Response.ChoiceAnswer (ExTypesafe v0.2.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() | nil,
  confidence: number() | nil,
  probabilities: %{optional(String.t()) => number()},
  type: String.t()
}