Toolnexus.Classifier.ChoiceAnswer (toolnexus v0.18.1)

Copy Markdown View Source

One option from the offered set, with a probability for every offered option.

:near_uniform is DERIVED from :probabilities on decode and never read from the wire. It is ADVISORY, not a correctness signal: it detects an encoding that gave the model nothing to rank on, and cannot distinguish a good encoding from a subtly wrong one.

Summary

Types

t()

@type t() :: %Toolnexus.Classifier.ChoiceAnswer{
  choice: String.t() | nil,
  confidence: number(),
  near_uniform: boolean(),
  probabilities: %{required(String.t()) => number()}
}