Skip to content

Commit 315c196

Browse files
Google APIscopybara-github
authored andcommitted
feat: add computer use support to tools
PiperOrigin-RevId: 776676714
1 parent 1bc5511 commit 315c196

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

google/cloud/aiplatform/v1beta1/tool.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ message Tool {
4949
// output to this tool.
5050
message CodeExecution {}
5151

52+
// Tool to support computer use.
53+
message ComputerUse {
54+
// Represents the environment being operated, such as a web browser.
55+
enum Environment {
56+
// Defaults to browser.
57+
ENVIRONMENT_UNSPECIFIED = 0;
58+
59+
// Operates in a web browser.
60+
ENVIRONMENT_BROWSER = 1;
61+
}
62+
63+
// Required. The environment being operated.
64+
Environment environment = 1 [(google.api.field_behavior) = REQUIRED];
65+
}
66+
5267
// Optional. Function tool type.
5368
// One or more function declarations to be passed to the model along with the
5469
// current user query. Model may decide to call a subset of these functions
@@ -88,6 +103,11 @@ message Tool {
88103

89104
// Optional. Tool to support URL context retrieval.
90105
UrlContext url_context = 8 [(google.api.field_behavior) = OPTIONAL];
106+
107+
// Optional. Tool to support the model interacting directly with the computer.
108+
// If enabled, it automatically populates computer-use specific Function
109+
// Declarations.
110+
ComputerUse computer_use = 11 [(google.api.field_behavior) = OPTIONAL];
91111
}
92112

93113
// Tool to support URL context.

0 commit comments

Comments
 (0)