Debian Codegraph @

docs/dyn/aiplatform_v1beta1.projects.locations.agents.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="aiplatform_v1beta1.html">Agent Platform API</a> . <a href="aiplatform_v1beta1.projects.html">projects</a> . <a href="aiplatform_v1beta1.projects.locations.html">locations</a> . <a href="aiplatform_v1beta1.projects.locations.agents.html">agents</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1beta1.projects.locations.agents.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates an agent.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an agent.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Retrieves an agent.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists agents in a location.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Updates an agent.</p>
103 <h3>Method Details</h3>
104 <div class="method">
105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107 </div>
108
109 <div class="method">
110 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
111 <pre>Creates an agent.
112
113 Args:
114 parent: string, Required. The resource name of the location to create the agent in. Format: `projects/{project}/locations/{location}`. (required)
115 body: object, The request body.
116 The object takes the form of:
117
118 { # A Vertex agent contains instructions and configurations for the LLM to execute a certain task.
119 &quot;base_agent&quot;: &quot;A String&quot;, # Required. The base agent for the agent. Supported values: * `antigravity-preview-05-2026`
120 &quot;base_environment&quot;: &quot;&quot;, # Optional. The base environment configuration for the agent. Valid types: * A string value for the environment ID, or `remote` for the default. * A struct value for the `environment_config`.
121 &quot;created&quot;: &quot;A String&quot;, # Output only. The time the agent was created.
122 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the agent.
123 &quot;id&quot;: &quot;A String&quot;, # Immutable. The user-specified ID for the agent. This ID becomes the final component of the agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can be up to 63 characters and must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
124 &quot;metadata&quot;: { # Optional. The metadata for the agent.
125 &quot;a_key&quot;: &quot;A String&quot;,
126 },
127 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the agent. Format: `projects/{project}/locations/{location}/agents/{agent}`.
128 &quot;object&quot;: &quot;A String&quot;, # Output only. The object type of the resource. For agents, the value is `agent`.
129 &quot;system_instruction&quot;: &quot;A String&quot;, # Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.
130 &quot;tools&quot;: [ # Optional. The tools available to the agent.
131 { # A tool provides a list of actions available to the Agent during the process of executing a task.
132 &quot;headers&quot;: { # Optional. The headers for the MCP server, such as for authentication. Only applicable when `type` is `mcp_server`.
133 &quot;a_key&quot;: &quot;A String&quot;,
134 },
135 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the MCP server. Only applicable when `type` is `mcp_server`.
136 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the tool. Supported types: * `code_execution` * `filesystem` * `google_search` * `mcp_server` * `url_context`
137 &quot;url&quot;: &quot;A String&quot;, # Optional. The URL for the MCP server endpoint. Only applicable when `type` is `mcp_server`.
138 },
139 ],
140 &quot;updated&quot;: &quot;A String&quot;, # Output only. The time the agent was last updated.
141 }
142
143 x__xgafv: string, V1 error format.
144 Allowed values
145 1 - v1 error format
146 2 - v2 error format
147
148 Returns:
149 An object of the form:
150
151 { # This resource represents a long-running operation that is the result of a network API call.
152 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
153 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
154 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
155 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
156 {
157 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
158 },
159 ],
160 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
161 },
162 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
164 },
165 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
166 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
167 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
168 },
169 }</pre>
170 </div>
171
172 <div class="method">
173 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
174 <pre>Deletes an agent.
175
176 Args:
177 name: string, Required. The resource name of the agent to delete. Format: `projects/{project}/locations/{location}/agents/{agent}`. (required)
178 x__xgafv: string, V1 error format.
179 Allowed values
180 1 - v1 error format
181 2 - v2 error format
182
183 Returns:
184 An object of the form:
185
186 { # This resource represents a long-running operation that is the result of a network API call.
187 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
188 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
189 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
190 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
191 {
192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
193 },
194 ],
195 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
196 },
197 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
198 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
199 },
200 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
201 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
202 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
203 },
204 }</pre>
205 </div>
206
207 <div class="method">
208 <code class="details" id="get">get(name, x__xgafv=None)</code>
209 <pre>Retrieves an agent.
210
211 Args:
212 name: string, Required. The resource name of the agent to retrieve. Format: `projects/{project}/locations/{location}/agents/{agent}`. (required)
213 x__xgafv: string, V1 error format.
214 Allowed values
215 1 - v1 error format
216 2 - v2 error format
217
218 Returns:
219 An object of the form:
220
221 { # A Vertex agent contains instructions and configurations for the LLM to execute a certain task.
222 &quot;base_agent&quot;: &quot;A String&quot;, # Required. The base agent for the agent. Supported values: * `antigravity-preview-05-2026`
223 &quot;base_environment&quot;: &quot;&quot;, # Optional. The base environment configuration for the agent. Valid types: * A string value for the environment ID, or `remote` for the default. * A struct value for the `environment_config`.
224 &quot;created&quot;: &quot;A String&quot;, # Output only. The time the agent was created.
225 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the agent.
226 &quot;id&quot;: &quot;A String&quot;, # Immutable. The user-specified ID for the agent. This ID becomes the final component of the agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can be up to 63 characters and must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
227 &quot;metadata&quot;: { # Optional. The metadata for the agent.
228 &quot;a_key&quot;: &quot;A String&quot;,
229 },
230 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the agent. Format: `projects/{project}/locations/{location}/agents/{agent}`.
231 &quot;object&quot;: &quot;A String&quot;, # Output only. The object type of the resource. For agents, the value is `agent`.
232 &quot;system_instruction&quot;: &quot;A String&quot;, # Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.
233 &quot;tools&quot;: [ # Optional. The tools available to the agent.
234 { # A tool provides a list of actions available to the Agent during the process of executing a task.
235 &quot;headers&quot;: { # Optional. The headers for the MCP server, such as for authentication. Only applicable when `type` is `mcp_server`.
236 &quot;a_key&quot;: &quot;A String&quot;,
237 },
238 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the MCP server. Only applicable when `type` is `mcp_server`.
239 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the tool. Supported types: * `code_execution` * `filesystem` * `google_search` * `mcp_server` * `url_context`
240 &quot;url&quot;: &quot;A String&quot;, # Optional. The URL for the MCP server endpoint. Only applicable when `type` is `mcp_server`.
241 },
242 ],
243 &quot;updated&quot;: &quot;A String&quot;, # Output only. The time the agent was last updated.
244 }</pre>
245 </div>
246
247 <div class="method">
248 <code class="details" id="list">list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
249 <pre>Lists agents in a location.
250
251 Args:
252 parent: string, Required. The resource name of the location to list agents from. Format: `projects/{project}/locations/{location}`. (required)
253 orderBy: string, Optional. A comma-separated list of fields to order by. Supported fields: * `created` * `updated` Use `desc` after a field name for descending order. Example: `created desc`.
254 pageSize: integer, Optional. The maximum number of agents to return. The service may return fewer than this value. The maximum page size is 100; values above 100 will be coerced to 100. If unspecified, the default page size is 10.
255 pageToken: string, Optional. A page token, received from a previous AgentService.ListAgents call. Provide this to retrieve the subsequent page.
256 x__xgafv: string, V1 error format.
257 Allowed values
258 1 - v1 error format
259 2 - v2 error format
260
261 Returns:
262 An object of the form:
263
264 { # Response message for AgentService.ListAgents.
265 &quot;agents&quot;: [ # The agents matching the request.
266 { # A Vertex agent contains instructions and configurations for the LLM to execute a certain task.
267 &quot;base_agent&quot;: &quot;A String&quot;, # Required. The base agent for the agent. Supported values: * `antigravity-preview-05-2026`
268 &quot;base_environment&quot;: &quot;&quot;, # Optional. The base environment configuration for the agent. Valid types: * A string value for the environment ID, or `remote` for the default. * A struct value for the `environment_config`.
269 &quot;created&quot;: &quot;A String&quot;, # Output only. The time the agent was created.
270 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the agent.
271 &quot;id&quot;: &quot;A String&quot;, # Immutable. The user-specified ID for the agent. This ID becomes the final component of the agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can be up to 63 characters and must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
272 &quot;metadata&quot;: { # Optional. The metadata for the agent.
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
275 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the agent. Format: `projects/{project}/locations/{location}/agents/{agent}`.
276 &quot;object&quot;: &quot;A String&quot;, # Output only. The object type of the resource. For agents, the value is `agent`.
277 &quot;system_instruction&quot;: &quot;A String&quot;, # Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.
278 &quot;tools&quot;: [ # Optional. The tools available to the agent.
279 { # A tool provides a list of actions available to the Agent during the process of executing a task.
280 &quot;headers&quot;: { # Optional. The headers for the MCP server, such as for authentication. Only applicable when `type` is `mcp_server`.
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the MCP server. Only applicable when `type` is `mcp_server`.
284 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the tool. Supported types: * `code_execution` * `filesystem` * `google_search` * `mcp_server` * `url_context`
285 &quot;url&quot;: &quot;A String&quot;, # Optional. The URL for the MCP server endpoint. Only applicable when `type` is `mcp_server`.
286 },
287 ],
288 &quot;updated&quot;: &quot;A String&quot;, # Output only. The time the agent was last updated.
289 },
290 ],
291 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass this value as ListAgentsRequest.page_token in a subsequent call.
292 }</pre>
293 </div>
294
295 <div class="method">
296 <code class="details" id="list_next">list_next()</code>
297 <pre>Retrieves the next page of results.
298
299 Args:
300 previous_request: The request for the previous page. (required)
301 previous_response: The response from the request for the previous page. (required)
302
303 Returns:
304 A request object that you can call &#x27;execute()&#x27; on to request the next
305 page. Returns None if there are no more items in the collection.
306 </pre>
307 </div>
308
309 <div class="method">
310 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
311 <pre>Updates an agent.
312
313 Args:
314 name: string, Identifier. The resource name of the agent. Format: `projects/{project}/locations/{location}/agents/{agent}`. (required)
315 body: object, The request body.
316 The object takes the form of:
317
318 { # A Vertex agent contains instructions and configurations for the LLM to execute a certain task.
319 &quot;base_agent&quot;: &quot;A String&quot;, # Required. The base agent for the agent. Supported values: * `antigravity-preview-05-2026`
320 &quot;base_environment&quot;: &quot;&quot;, # Optional. The base environment configuration for the agent. Valid types: * A string value for the environment ID, or `remote` for the default. * A struct value for the `environment_config`.
321 &quot;created&quot;: &quot;A String&quot;, # Output only. The time the agent was created.
322 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the agent.
323 &quot;id&quot;: &quot;A String&quot;, # Immutable. The user-specified ID for the agent. This ID becomes the final component of the agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can be up to 63 characters and must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
324 &quot;metadata&quot;: { # Optional. The metadata for the agent.
325 &quot;a_key&quot;: &quot;A String&quot;,
326 },
327 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the agent. Format: `projects/{project}/locations/{location}/agents/{agent}`.
328 &quot;object&quot;: &quot;A String&quot;, # Output only. The object type of the resource. For agents, the value is `agent`.
329 &quot;system_instruction&quot;: &quot;A String&quot;, # Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.
330 &quot;tools&quot;: [ # Optional. The tools available to the agent.
331 { # A tool provides a list of actions available to the Agent during the process of executing a task.
332 &quot;headers&quot;: { # Optional. The headers for the MCP server, such as for authentication. Only applicable when `type` is `mcp_server`.
333 &quot;a_key&quot;: &quot;A String&quot;,
334 },
335 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the MCP server. Only applicable when `type` is `mcp_server`.
336 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the tool. Supported types: * `code_execution` * `filesystem` * `google_search` * `mcp_server` * `url_context`
337 &quot;url&quot;: &quot;A String&quot;, # Optional. The URL for the MCP server endpoint. Only applicable when `type` is `mcp_server`.
338 },
339 ],
340 &quot;updated&quot;: &quot;A String&quot;, # Output only. The time the agent was last updated.
341 }
342
343 updateMask: string, Optional. The list of fields to update. If not present, all fields are updated.
344 x__xgafv: string, V1 error format.
345 Allowed values
346 1 - v1 error format
347 2 - v2 error format
348
349 Returns:
350 An object of the form:
351
352 { # A Vertex agent contains instructions and configurations for the LLM to execute a certain task.
353 &quot;base_agent&quot;: &quot;A String&quot;, # Required. The base agent for the agent. Supported values: * `antigravity-preview-05-2026`
354 &quot;base_environment&quot;: &quot;&quot;, # Optional. The base environment configuration for the agent. Valid types: * A string value for the environment ID, or `remote` for the default. * A struct value for the `environment_config`.
355 &quot;created&quot;: &quot;A String&quot;, # Output only. The time the agent was created.
356 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the agent.
357 &quot;id&quot;: &quot;A String&quot;, # Immutable. The user-specified ID for the agent. This ID becomes the final component of the agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can be up to 63 characters and must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
358 &quot;metadata&quot;: { # Optional. The metadata for the agent.
359 &quot;a_key&quot;: &quot;A String&quot;,
360 },
361 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the agent. Format: `projects/{project}/locations/{location}/agents/{agent}`.
362 &quot;object&quot;: &quot;A String&quot;, # Output only. The object type of the resource. For agents, the value is `agent`.
363 &quot;system_instruction&quot;: &quot;A String&quot;, # Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.
364 &quot;tools&quot;: [ # Optional. The tools available to the agent.
365 { # A tool provides a list of actions available to the Agent during the process of executing a task.
366 &quot;headers&quot;: { # Optional. The headers for the MCP server, such as for authentication. Only applicable when `type` is `mcp_server`.
367 &quot;a_key&quot;: &quot;A String&quot;,
368 },
369 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of the MCP server. Only applicable when `type` is `mcp_server`.
370 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the tool. Supported types: * `code_execution` * `filesystem` * `google_search` * `mcp_server` * `url_context`
371 &quot;url&quot;: &quot;A String&quot;, # Optional. The URL for the MCP server endpoint. Only applicable when `type` is `mcp_server`.
372 },
373 ],
374 &quot;updated&quot;: &quot;A String&quot;, # Output only. The time the agent was last updated.
375 }</pre>
376 </div>
377
378 </body></html>