File tree Expand file tree Collapse file tree
google/cloud/aiplatform/v1beta1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ message FunctionDeclaration {
167167// representing the [FunctionDeclaration.name] and a structured JSON object
168168// containing the parameters and their values.
169169message FunctionCall {
170+ // Optional. The unique id of the function call. If populated, the client to
171+ // execute the `function_call` and return the response with the matching `id`.
172+ string id = 3 [(google.api.field_behavior ) = OPTIONAL ];
173+
170174 // Required. The name of the function to call.
171175 // Matches [FunctionDeclaration.name].
172176 string name = 1 [(google.api.field_behavior ) = REQUIRED ];
@@ -181,6 +185,10 @@ message FunctionCall {
181185// output from the function is used as context to the model. This should contain
182186// the result of a [FunctionCall] made based on model prediction.
183187message FunctionResponse {
188+ // Optional. The id of the function call this response is for. Populated by
189+ // the client to match the corresponding function call `id`.
190+ string id = 3 [(google.api.field_behavior ) = OPTIONAL ];
191+
184192 // Required. The name of the function to call.
185193 // Matches [FunctionDeclaration.name] and [FunctionCall.name].
186194 string name = 1 [(google.api.field_behavior ) = REQUIRED ];
You can’t perform that action at this time.
0 commit comments