Class ChoiceAnswer.Builder
java.lang.Object
com.google.genai.gaos.models.decisions.ChoiceAnswer.Builder
- Enclosing class:
- ChoiceAnswer
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Required.confidence(double confidence) Required.probabilities(Map<String, Double> probabilities) Required.
-
Method Details
-
choice
Required. Output only. The option ID with the highest probability. -
confidence
Required. Output only. Closed-world confidence score in `[0, 1]`, equal to the calibrated probability of the winning outcome: - `NoulAnswer`: `max(noul, 1 - noul)` - `ChoiceAnswer`: `p_max` (the probability of `choice`) - `ScoreAnswer`: `p_max` (the highest probability in `probabilities`). -
probabilities
Required. Output only. Closed-world normalized probability in `[0, 1]` for each option ID. -
build
-