Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c522f58

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Validation mode in FunctionCallingConfig
docs: update the comment for ANY mode in FunctionCallingConfig. PiperOrigin-RevId: 800520293
1 parent c4c5ad7 commit c522f58

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

google/cloud/aiplatform/v1beta1/tool.proto

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ message ToolConfig {
484484
message 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

Comments
 (0)