Enum FunctionConfirmation
- All Implemented Interfaces:
Serializable, Comparable<FunctionConfirmation>, java.lang.constant.Constable
Represents the user's choice when prompted to confirm the execution of one
or more tool calls.
- Author:
- anahata
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user wants to always approve this tool in the future without prompting.The user wants to never allow this tool to be executed.The user denied this specific execution for the current turn.The user approved this specific execution for the current turn. -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionConfirmationReturns the enum constant of this type with the specified name.static FunctionConfirmation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YES
The user approved this specific execution for the current turn. -
NO
The user denied this specific execution for the current turn. -
ALWAYS
The user wants to always approve this tool in the future without prompting. -
NEVER
The user wants to never allow this tool to be executed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
