Enum FunctionConfirmation

java.lang.Object
java.lang.Enum<FunctionConfirmation>
uno.anahata.ai.tools.FunctionConfirmation
All Implemented Interfaces:
Serializable, Comparable<FunctionConfirmation>, java.lang.constant.Constable

public enum FunctionConfirmation extends Enum<FunctionConfirmation>
Represents the user's choice when prompted to confirm the execution of one or more tool calls.
Author:
anahata
  • Enum Constant Details

    • YES

      public static final FunctionConfirmation YES
      The user approved this specific execution for the current turn.
    • NO

      public static final FunctionConfirmation NO
      The user denied this specific execution for the current turn.
    • ALWAYS

      public static final FunctionConfirmation ALWAYS
      The user wants to always approve this tool in the future without prompting.
    • NEVER

      public static final FunctionConfirmation NEVER
      The user wants to never allow this tool to be executed.
  • Method Details

    • values

      public static FunctionConfirmation[] 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

      public static FunctionConfirmation valueOf(String name)
      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 name
      NullPointerException - if the argument is null