Debian Codegraph @

docs/dyn/aiplatform_v1beta1.projects.locations.skills.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.skills.html">skills</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1beta1.projects.locations.skills.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="aiplatform_v1beta1.projects.locations.skills.revisions.html">revisions()</a></code>
84 </p>
85 <p class="firstline">Returns the revisions Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, body=None, skillId=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Create a Skill.</p>
93 <p class="toc_element">
94 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Delete a Skill.</p>
96 <p class="toc_element">
97 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
98 <p class="firstline">Get a Skill.</p>
99 <p class="toc_element">
100 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">List Skills.</p>
102 <p class="toc_element">
103 <code><a href="#list_next">list_next()</a></code></p>
104 <p class="firstline">Retrieves the next page of results.</p>
105 <p class="toc_element">
106 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
107 <p class="firstline">Update a Skill.</p>
108 <p class="toc_element">
109 <code><a href="#retrieve">retrieve(parent, query=None, topK=None, x__xgafv=None)</a></code></p>
110 <p class="firstline">Retrieves skills.</p>
111 <h3>Method Details</h3>
112 <div class="method">
113 <code class="details" id="close">close()</code>
114 <pre>Close httplib2 connections.</pre>
115 </div>
116
117 <div class="method">
118 <code class="details" id="create">create(parent, body=None, skillId=None, x__xgafv=None)</code>
119 <pre>Create a Skill.
120
121 Args:
122 parent: string, Required. The location to create the Skill in. Format: `projects/{project}/locations/{location}` (required)
123 body: object, The request body.
124 The object takes the form of:
125
126 { # A skill.
127 &quot;compatibility&quot;: &quot;A String&quot;, # Optional. Specifies the compatibility of the Skill. Indicates environment requirements (intended product, system packages, network access, etc.). This should align with `compatibility` in the `SKILL.md` file.
128 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was created.
129 &quot;description&quot;: &quot;A String&quot;, # Required. Describes the Skill. Should describe both what the skill does and when to use it. Should include specific keywords that help agents identify relevant tasks. This should align with `description` in the `SKILL.md` file.
130 &quot;displayName&quot;: &quot;A String&quot;, # Required. Provides the display name of the Skill. This should align with `name` in the `SKILL.md` file.
131 &quot;labels&quot;: { # The labels with user-defined metadata to organize Skills.
132 &quot;a_key&quot;: &quot;A String&quot;,
133 },
134 &quot;license&quot;: &quot;A String&quot;, # Optional. Specifies the license of the Skill. This should be an SPDX license identifier (e.g., &quot;MIT&quot;, &quot;Apache-2.0&quot;). See https://spdx.org/licenses/. This should align with `license` in the `SKILL.md` file.
135 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Skill. Format: `projects/{project}/locations/{location}/skills/{skill}`
136 &quot;sha256&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum of the zipped filesystem.
137 &quot;skillSource&quot;: &quot;A String&quot;, # Output only. The source of the Skill.
138 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the Skill.
139 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was most recently updated.
140 &quot;zippedFilesystem&quot;: &quot;A String&quot;, # Required. Provides the zipped filesystem of the Skill. This should contain the `SKILL.md` file at the root of the zip and optional directories for scripts, references, and assets. Directory should align with the directory structure specified at https://agentskills.io/specification#directory-structure.
141 }
142
143 skillId: string, Required. The ID to use for the Skill, which will become the final component of the Skill&#x27;s resource name. If not provided, a system-generated ID will be used. This value must be 1-63 characters. Valid characters are lowercase letters, numbers, and hyphens. The first character must be a lowercase letter, and the last character must be a lowercase letter or a number. Specifically, the ID must match the regular expression: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` See [AIP-122](https://aip.dev/122#resource-id-segments) for more details.
144 x__xgafv: string, V1 error format.
145 Allowed values
146 1 - v1 error format
147 2 - v2 error format
148
149 Returns:
150 An object of the form:
151
152 { # This resource represents a long-running operation that is the result of a network API call.
153 &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.
154 &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.
155 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
156 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
157 {
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
160 ],
161 &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.
162 },
163 &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.
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165 },
166 &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}`.
167 &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`.
168 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
169 },
170 }</pre>
171 </div>
172
173 <div class="method">
174 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
175 <pre>Delete a Skill.
176
177 Args:
178 name: string, Required. The resource name of the Skill to delete. Format: `projects/{project}/locations/{location}/skills/{skill}` (required)
179 x__xgafv: string, V1 error format.
180 Allowed values
181 1 - v1 error format
182 2 - v2 error format
183
184 Returns:
185 An object of the form:
186
187 { # This resource represents a long-running operation that is the result of a network API call.
188 &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.
189 &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.
190 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
191 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
192 {
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 ],
196 &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.
197 },
198 &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.
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200 },
201 &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}`.
202 &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`.
203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
204 },
205 }</pre>
206 </div>
207
208 <div class="method">
209 <code class="details" id="get">get(name, x__xgafv=None)</code>
210 <pre>Get a Skill.
211
212 Args:
213 name: string, Required. The resource name of the Skill to retrieve. Format: `projects/{project}/locations/{location}/skills/{skill}` (required)
214 x__xgafv: string, V1 error format.
215 Allowed values
216 1 - v1 error format
217 2 - v2 error format
218
219 Returns:
220 An object of the form:
221
222 { # A skill.
223 &quot;compatibility&quot;: &quot;A String&quot;, # Optional. Specifies the compatibility of the Skill. Indicates environment requirements (intended product, system packages, network access, etc.). This should align with `compatibility` in the `SKILL.md` file.
224 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was created.
225 &quot;description&quot;: &quot;A String&quot;, # Required. Describes the Skill. Should describe both what the skill does and when to use it. Should include specific keywords that help agents identify relevant tasks. This should align with `description` in the `SKILL.md` file.
226 &quot;displayName&quot;: &quot;A String&quot;, # Required. Provides the display name of the Skill. This should align with `name` in the `SKILL.md` file.
227 &quot;labels&quot;: { # The labels with user-defined metadata to organize Skills.
228 &quot;a_key&quot;: &quot;A String&quot;,
229 },
230 &quot;license&quot;: &quot;A String&quot;, # Optional. Specifies the license of the Skill. This should be an SPDX license identifier (e.g., &quot;MIT&quot;, &quot;Apache-2.0&quot;). See https://spdx.org/licenses/. This should align with `license` in the `SKILL.md` file.
231 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Skill. Format: `projects/{project}/locations/{location}/skills/{skill}`
232 &quot;sha256&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum of the zipped filesystem.
233 &quot;skillSource&quot;: &quot;A String&quot;, # Output only. The source of the Skill.
234 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the Skill.
235 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was most recently updated.
236 &quot;zippedFilesystem&quot;: &quot;A String&quot;, # Required. Provides the zipped filesystem of the Skill. This should contain the `SKILL.md` file at the root of the zip and optional directories for scripts, references, and assets. Directory should align with the directory structure specified at https://agentskills.io/specification#directory-structure.
237 }</pre>
238 </div>
239
240 <div class="method">
241 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
242 <pre>List Skills.
243
244 Args:
245 parent: string, Required. The location to list the Skills in. Format: `projects/{project}/locations/{location}` (required)
246 pageSize: integer, Optional. The standard list page size.
247 pageToken: string, Optional. The standard list page token.
248 x__xgafv: string, V1 error format.
249 Allowed values
250 1 - v1 error format
251 2 - v2 error format
252
253 Returns:
254 An object of the form:
255
256 { # Response message for SkillRegistryService.ListSkills.
257 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as ListSkillsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
258 &quot;skills&quot;: [ # The Skills.
259 { # A skill.
260 &quot;compatibility&quot;: &quot;A String&quot;, # Optional. Specifies the compatibility of the Skill. Indicates environment requirements (intended product, system packages, network access, etc.). This should align with `compatibility` in the `SKILL.md` file.
261 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was created.
262 &quot;description&quot;: &quot;A String&quot;, # Required. Describes the Skill. Should describe both what the skill does and when to use it. Should include specific keywords that help agents identify relevant tasks. This should align with `description` in the `SKILL.md` file.
263 &quot;displayName&quot;: &quot;A String&quot;, # Required. Provides the display name of the Skill. This should align with `name` in the `SKILL.md` file.
264 &quot;labels&quot;: { # The labels with user-defined metadata to organize Skills.
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 &quot;license&quot;: &quot;A String&quot;, # Optional. Specifies the license of the Skill. This should be an SPDX license identifier (e.g., &quot;MIT&quot;, &quot;Apache-2.0&quot;). See https://spdx.org/licenses/. This should align with `license` in the `SKILL.md` file.
268 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Skill. Format: `projects/{project}/locations/{location}/skills/{skill}`
269 &quot;sha256&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum of the zipped filesystem.
270 &quot;skillSource&quot;: &quot;A String&quot;, # Output only. The source of the Skill.
271 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the Skill.
272 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was most recently updated.
273 &quot;zippedFilesystem&quot;: &quot;A String&quot;, # Required. Provides the zipped filesystem of the Skill. This should contain the `SKILL.md` file at the root of the zip and optional directories for scripts, references, and assets. Directory should align with the directory structure specified at https://agentskills.io/specification#directory-structure.
274 },
275 ],
276 }</pre>
277 </div>
278
279 <div class="method">
280 <code class="details" id="list_next">list_next()</code>
281 <pre>Retrieves the next page of results.
282
283 Args:
284 previous_request: The request for the previous page. (required)
285 previous_response: The response from the request for the previous page. (required)
286
287 Returns:
288 A request object that you can call &#x27;execute()&#x27; on to request the next
289 page. Returns None if there are no more items in the collection.
290 </pre>
291 </div>
292
293 <div class="method">
294 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
295 <pre>Update a Skill.
296
297 Args:
298 name: string, Identifier. The resource name of the Skill. Format: `projects/{project}/locations/{location}/skills/{skill}` (required)
299 body: object, The request body.
300 The object takes the form of:
301
302 { # A skill.
303 &quot;compatibility&quot;: &quot;A String&quot;, # Optional. Specifies the compatibility of the Skill. Indicates environment requirements (intended product, system packages, network access, etc.). This should align with `compatibility` in the `SKILL.md` file.
304 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was created.
305 &quot;description&quot;: &quot;A String&quot;, # Required. Describes the Skill. Should describe both what the skill does and when to use it. Should include specific keywords that help agents identify relevant tasks. This should align with `description` in the `SKILL.md` file.
306 &quot;displayName&quot;: &quot;A String&quot;, # Required. Provides the display name of the Skill. This should align with `name` in the `SKILL.md` file.
307 &quot;labels&quot;: { # The labels with user-defined metadata to organize Skills.
308 &quot;a_key&quot;: &quot;A String&quot;,
309 },
310 &quot;license&quot;: &quot;A String&quot;, # Optional. Specifies the license of the Skill. This should be an SPDX license identifier (e.g., &quot;MIT&quot;, &quot;Apache-2.0&quot;). See https://spdx.org/licenses/. This should align with `license` in the `SKILL.md` file.
311 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Skill. Format: `projects/{project}/locations/{location}/skills/{skill}`
312 &quot;sha256&quot;: &quot;A String&quot;, # Output only. The SHA256 checksum of the zipped filesystem.
313 &quot;skillSource&quot;: &quot;A String&quot;, # Output only. The source of the Skill.
314 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the Skill.
315 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Skill was most recently updated.
316 &quot;zippedFilesystem&quot;: &quot;A String&quot;, # Required. Provides the zipped filesystem of the Skill. This should contain the `SKILL.md` file at the root of the zip and optional directories for scripts, references, and assets. Directory should align with the directory structure specified at https://agentskills.io/specification#directory-structure.
317 }
318
319 updateMask: string, Optional. Mask specifying which fields to update.
320 x__xgafv: string, V1 error format.
321 Allowed values
322 1 - v1 error format
323 2 - v2 error format
324
325 Returns:
326 An object of the form:
327
328 { # This resource represents a long-running operation that is the result of a network API call.
329 &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.
330 &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.
331 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
332 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
333 {
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
335 },
336 ],
337 &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.
338 },
339 &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.
340 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
341 },
342 &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}`.
343 &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`.
344 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
345 },
346 }</pre>
347 </div>
348
349 <div class="method">
350 <code class="details" id="retrieve">retrieve(parent, query=None, topK=None, x__xgafv=None)</code>
351 <pre>Retrieves skills.
352
353 Args:
354 parent: string, Required. The location to retrieve the Skills in. Format: `projects/{project}/locations/{location}` (required)
355 query: string, Optional. The query to find matching skills.
356 topK: integer, Optional. The maximum number of skills to return. The service may return fewer than this value. If unspecified, at most 10 skills will be returned. The maximum value is 100.
357 x__xgafv: string, V1 error format.
358 Allowed values
359 1 - v1 error format
360 2 - v2 error format
361
362 Returns:
363 An object of the form:
364
365 { # Response message for SkillRegistryService.RetrieveSkills.
366 &quot;retrievedSkills&quot;: [ # Skills ranked by similarity if applicable; otherwise, the order is undefined.
367 { # A retrieved skill.
368 &quot;description&quot;: &quot;A String&quot;, # The skill description.
369 &quot;skillName&quot;: &quot;A String&quot;, # The skill resource name. Format: projects/{project}/locations/{location}/skills/{skill}
370 },
371 ],
372 }</pre>
373 </div>
374
375 </body></html>