Enum FunctionCallingConfigMode.Known

java.lang.Object
java.lang.Enum<FunctionCallingConfigMode.Known>
com.google.genai.types.FunctionCallingConfigMode.Known
All Implemented Interfaces:
Serializable, Comparable<FunctionCallingConfigMode.Known>
Enclosing class:
FunctionCallingConfigMode

public static enum FunctionCallingConfigMode.Known extends Enum<FunctionCallingConfigMode.Known>
Enum representing the known values for FunctionCallingConfigMode.
  • Enum Constant Details

    • MODE_UNSPECIFIED

      public static final FunctionCallingConfigMode.Known MODE_UNSPECIFIED
      The function calling config mode is unspecified. Should not be used.
    • AUTO

      public static final FunctionCallingConfigMode.Known AUTO
      Default model behavior, model decides to predict either function calls or natural language response.
    • ANY

      public static final FunctionCallingConfigMode.Known ANY
      Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
    • NONE

      public static final FunctionCallingConfigMode.Known NONE
      Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
    • FUNCTION_CALLING_CONFIG_MODE_UNSPECIFIED

      public static final FunctionCallingConfigMode.Known FUNCTION_CALLING_CONFIG_MODE_UNSPECIFIED
  • Method Details

    • values

      public static FunctionCallingConfigMode.Known[] 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 FunctionCallingConfigMode.Known 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