Enum Class ConfidenceLevel
- All Implemented Interfaces:
Serializable,Comparable<ConfidenceLevel>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe value is written in the document and copied as it is.The document is unclear, or the value is a guess.The value follows from the document but needed some interpretation, such as combining fields, converting units, or choosing one candidate over another. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfidenceLevelReturns the enum constant of this class with the specified name.static ConfidenceLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIGH
The value is written in the document and copied as it is. -
MEDIUM
The value follows from the document but needed some interpretation, such as combining fields, converting units, or choosing one candidate over another. -
LOW
The document is unclear, or the value is a guess.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-