public static enum FunctionCallingConfig.Mode extends Enum<FunctionCallingConfig.Mode> implements com.google.protobuf.ProtocolMessageEnum
Function calling mode.Protobuf enum
google.cloud.vertexai.v1.FunctionCallingConfig.Mode| Enum Constant and Description |
|---|
ANY
Model is constrained to always predicting a function call only.
|
AUTO
Default model behavior, model decides to predict either a function call
or a natural language response.
|
MODE_UNSPECIFIED
Unspecified function calling mode.
|
NONE
Model will not predict any function call.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_VALUE
Model is constrained to always predicting a function call only.
|
static int |
AUTO_VALUE
Default model behavior, model decides to predict either a function call
or a natural language response.
|
static int |
MODE_UNSPECIFIED_VALUE
Unspecified function calling mode.
|
static int |
NONE_VALUE
Model will not predict any function call.
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionCallingConfig.Mode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<FunctionCallingConfig.Mode> |
internalGetValueMap() |
static FunctionCallingConfig.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static FunctionCallingConfig.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FunctionCallingConfig.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FunctionCallingConfig.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FunctionCallingConfig.Mode MODE_UNSPECIFIED
Unspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0;public static final FunctionCallingConfig.Mode AUTO
Default model behavior, model decides to predict either a function call or a natural language response.
AUTO = 1;public static final FunctionCallingConfig.Mode ANY
Model is constrained to always predicting a function call only. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".
ANY = 2;public static final FunctionCallingConfig.Mode NONE
Model will not predict any function call. Model behavior is same as when not passing any function declarations.
NONE = 3;public static final FunctionCallingConfig.Mode UNRECOGNIZED
public static final int MODE_UNSPECIFIED_VALUE
Unspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0;public static final int AUTO_VALUE
Default model behavior, model decides to predict either a function call or a natural language response.
AUTO = 1;public static final int ANY_VALUE
Model is constrained to always predicting a function call only. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".
ANY = 2;public static final int NONE_VALUE
Model will not predict any function call. Model behavior is same as when not passing any function declarations.
NONE = 3;public static FunctionCallingConfig.Mode[] values()
for (FunctionCallingConfig.Mode c : FunctionCallingConfig.Mode.values()) System.out.println(c);
public static FunctionCallingConfig.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static FunctionCallingConfig.Mode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static FunctionCallingConfig.Mode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<FunctionCallingConfig.Mode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static FunctionCallingConfig.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.