Class NoulAnswer

java.lang.Object
com.google.genai.gaos.models.decisions.NoulAnswer
All Implemented Interfaces:
Answer

public class NoulAnswer extends Object implements Answer
NoulAnswer

Calibrated result for a `NoulQuestion`.

  • Constructor Details

    • NoulAnswer

      public NoulAnswer(double confidence, double noul)
  • Method Details

    • confidence

      public Optional<Double> 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

      public Optional<Double> noul()
      Required. Output only. Calibrated probability `P(true)` in `[0.01, 0.99]`.
    • type

      public String type()
      Specified by:
      type in interface Answer
    • builder

      public static NoulAnswer.Builder builder()
    • withConfidence

      public NoulAnswer withConfidence(double 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`).
    • withNoul

      public NoulAnswer withNoul(double noul)
      Required. Output only. Calibrated probability `P(true)` in `[0.01, 0.99]`.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object