Enum Class ConfidenceLevel

java.lang.Object
java.lang.Enum<ConfidenceLevel>
com.vaadin.flow.component.ai.common.ConfidenceLevel
All Implemented Interfaces:
Serializable, Comparable<ConfidenceLevel>, Constable

public enum ConfidenceLevel extends Enum<ConfidenceLevel>
How sure the LLM was about a value it produced. A level is a rough judgement reported by the model about itself, not a probability: it is useful for ranking the fields of one fill against each other, and not for much else.

The default meaning of each level is defined in the tool description the LLM sees; an application can replace the wording per level (see FormAIController#describeConfidenceLevel).

Since:
25.3
Author:
Vaadin Ltd
  • Enum Constant Details

    • HIGH

      public static final ConfidenceLevel HIGH
      The value is written in the document and copied as it is.
    • MEDIUM

      public static final ConfidenceLevel MEDIUM
      The value follows from the document but needed some interpretation, such as combining fields, converting units, or choosing one candidate over another.
    • LOW

      public static final ConfidenceLevel LOW
      The document is unclear, or the value is a guess.
  • Method Details

    • values

      public static ConfidenceLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConfidenceLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null