Class ScoreAnswer
java.lang.Object
com.google.genai.gaos.models.decisions.ScoreAnswer
- All Implemented Interfaces:
Answer
ScoreAnswer
Calibrated result for a `ScoreQuestion`.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScoreAnswer.Builderbuilder()Required.booleaninthashCode()legend()Required.Required.score()Required.toString()type()withConfidence(double confidence) Required.withLegend(Map<String, String> legend) Required.withProbabilities(Map<String, Double> probabilities) Required.withScore(double score) Required.
-
Constructor Details
-
ScoreAnswer
-
-
Method Details
-
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`). -
legend
Required. Output only. Rubric description for each non-empty 0-based level index. -
probabilities
Required. Output only. Closed-world normalized probability in `[0, 1]` for each 0-based level index. -
score
Required. Output only. Probability-weighted expected score (`sum_k k * probability_k`). -
type
-
builder
-
withConfidence
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`). -
withLegend
Required. Output only. Rubric description for each non-empty 0-based level index. -
withProbabilities
Required. Output only. Closed-world normalized probability in `[0, 1]` for each 0-based level index. -
withScore
Required. Output only. Probability-weighted expected score (`sum_k k * probability_k`). -
equals
-
hashCode
public int hashCode() -
toString
-