@@ -484,6 +484,8 @@ message ToolConfig {
484484message FunctionCallingConfig {
485485 // Function calling mode.
486486 enum Mode {
487+ reserved 4 ;
488+
487489 // Unspecified function calling mode. This value should not be used.
488490 MODE_UNSPECIFIED = 0 ;
489491
@@ -492,14 +494,23 @@ message FunctionCallingConfig {
492494 AUTO = 1 ;
493495
494496 // Model is constrained to always predicting function calls only.
495- // If "allowed_function_names" are set, the predicted function calls will be
496- // limited to any one of "allowed_function_names", else the predicted
497- // function calls will be any one of the provided "function_declarations".
497+ // If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
498+ // are set, the predicted function calls will be limited to any one of
499+ // `allowed_function_names`, else the predicted function calls will be any
500+ // one of the provided [FunctionDeclaration].
498501 ANY = 2 ;
499502
500503 // Model will not predict any function calls. Model behavior is same as when
501504 // not passing any function declarations.
502505 NONE = 3 ;
506+
507+ // Model is constrained to predict either function calls or natural language
508+ // response.
509+ // If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
510+ // are set, the predicted function calls will be limited to any one of
511+ // `allowed_function_names`, else the predicted function calls will be any
512+ // one of the provided [FunctionDeclaration].
513+ VALIDATED = 5 ;
503514 }
504515
505516 // Optional. Function calling mode.
0 commit comments