Enum FunctionCallingConfig.Mode (1.34.0)

publicenumFunctionCallingConfig.ModeextendsEnum<FunctionCallingConfig.Mode>implementsProtocolMessageEnum

Function calling mode.

Protobuf enum google.cloud.vertexai.v1.FunctionCallingConfig.Mode

Implements

ProtocolMessageEnum

Static Fields

Name Description
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".

ANY = 2;

ANY_VALUE

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".

ANY = 2;

AUTO

Default model behavior, model decides to predict either function calls or natural language response.

AUTO = 1;

AUTO_VALUE

Default model behavior, model decides to predict either function calls or natural language response.

AUTO = 1;

MODE_UNSPECIFIED

Unspecified function calling mode. This value should not be used.

MODE_UNSPECIFIED = 0;

MODE_UNSPECIFIED_VALUE

Unspecified function calling mode. This value should not be used.

MODE_UNSPECIFIED = 0;

NONE

Model will not predict any function calls. Model behavior is same as when not passing any function declarations.

NONE = 3;

NONE_VALUE

Model will not predict any function calls. Model behavior is same as when not passing any function declarations.

NONE = 3;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.