Class NoulAnswer
java.lang.Object
com.google.genai.gaos.models.decisions.NoulAnswer
- All Implemented Interfaces:
Answer
NoulAnswer
Calibrated result for a `NoulQuestion`.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NoulAnswer.Builderbuilder()Required.booleaninthashCode()noul()Required.toString()type()withConfidence(double confidence) Required.withNoul(double noul) Required.
-
Constructor Details
-
NoulAnswer
public NoulAnswer(double confidence, double noul)
-
-
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`). -
noul
Required. Output only. Calibrated probability `P(true)` in `[0.01, 0.99]`. -
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`). -
withNoul
Required. Output only. Calibrated probability `P(true)` in `[0.01, 0.99]`. -
equals
-
hashCode
public int hashCode() -
toString
-