Skip to content

Commit ba5a2fb

Browse files
Google APIscopybara-github
authored andcommitted
feat: add function_call.id and function_response.id
PiperOrigin-RevId: 736282512
1 parent f575c85 commit ba5a2fb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/tool.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
169169
message 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.
183187
message 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];

0 commit comments

Comments
 (0)