@@ -484,6 +484,8 @@ message ToolConfig {
484
484
message FunctionCallingConfig {
485
485
// Function calling mode.
486
486
enum Mode {
487
+ reserved 4 ;
488
+
487
489
// Unspecified function calling mode. This value should not be used.
488
490
MODE_UNSPECIFIED = 0 ;
489
491
@@ -492,14 +494,23 @@ message FunctionCallingConfig {
492
494
AUTO = 1 ;
493
495
494
496
// 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].
498
501
ANY = 2 ;
499
502
500
503
// Model will not predict any function calls. Model behavior is same as when
501
504
// not passing any function declarations.
502
505
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 ;
503
514
}
504
515
505
516
// Optional. Function calling mode.
0 commit comments