Debian Codegraph @

docs/dyn/workspaceevents_v1.tasks.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="workspaceevents_v1.html">Google Workspace Events API</a> . <a href="workspaceevents_v1.tasks.html">tasks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="workspaceevents_v1.tasks.pushNotificationConfigs.html">pushNotificationConfigs()</a></code>
79 </p>
80 <p class="firstline">Returns the pushNotificationConfigs Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Cancel a task from the agent. If supported one should expect no more task updates for the task.</p>
85 <p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87 <p class="firstline">Close httplib2 connections.</p>
88 <p class="toc_element">
89 <code><a href="#get">get(name, historyLength=None, tenant=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Get the current state of a task from the agent.</p>
91 <p class="toc_element">
92 <code><a href="#subscribe">subscribe(name, tenant=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.</p>
94 <h3>Method Details</h3>
95 <div class="method">
96 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
97 <pre>Cancel a task from the agent. If supported one should expect no more task updates for the task.
98
99 Args:
100 name: string, The resource name of the task to cancel. Format: tasks/{task_id} (required)
101 body: object, The request body.
102 The object takes the form of:
103
104 {
105 &quot;tenant&quot;: &quot;A String&quot;, # Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
106 }
107
108 x__xgafv: string, V1 error format.
109 Allowed values
110 1 - v1 error format
111 2 - v2 error format
112
113 Returns:
114 An object of the form:
115
116 { # Task is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
117 &quot;artifacts&quot;: [ # A set of output artifacts for a Task.
118 { # Artifacts are the container for task completed results. These are similar to Messages but are intended to be the product of a task, as opposed to point-to-point communication.
119 &quot;artifactId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the artifact. It must be at least unique within a task.
120 &quot;description&quot;: &quot;A String&quot;, # A human readable description of the artifact, optional.
121 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Artifact.
122 &quot;A String&quot;,
123 ],
124 &quot;metadata&quot;: { # Optional metadata included with the artifact.
125 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
126 },
127 &quot;name&quot;: &quot;A String&quot;, # A human readable name for the artifact.
128 &quot;parts&quot;: [ # The content of the artifact.
129 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
130 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
131 &quot;data&quot;: {
132 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
133 },
134 },
135 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
136 &quot;fileWithBytes&quot;: &quot;A String&quot;,
137 &quot;fileWithUri&quot;: &quot;A String&quot;,
138 &quot;mimeType&quot;: &quot;A String&quot;,
139 &quot;name&quot;: &quot;A String&quot;,
140 },
141 &quot;metadata&quot;: { # Optional metadata associated with this part.
142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
143 },
144 &quot;text&quot;: &quot;A String&quot;,
145 },
146 ],
147 },
148 ],
149 &quot;contextId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.
150 &quot;history&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task.
151 { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id.
152 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
153 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
154 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
155 &quot;data&quot;: {
156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
157 },
158 },
159 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
160 &quot;fileWithBytes&quot;: &quot;A String&quot;,
161 &quot;fileWithUri&quot;: &quot;A String&quot;,
162 &quot;mimeType&quot;: &quot;A String&quot;,
163 &quot;name&quot;: &quot;A String&quot;,
164 },
165 &quot;metadata&quot;: { # Optional metadata associated with this part.
166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
167 },
168 &quot;text&quot;: &quot;A String&quot;,
169 },
170 ],
171 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
172 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
173 &quot;A String&quot;,
174 ],
175 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
176 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
178 },
179 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
180 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
181 },
182 ],
183 &quot;id&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
184 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.
185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
186 },
187 &quot;status&quot;: { # A container for the status of a task # The current status of a Task, including state and a message.
188 &quot;message&quot;: { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id. # A message associated with the status.
189 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
190 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
191 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
192 &quot;data&quot;: {
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
194 },
195 },
196 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
197 &quot;fileWithBytes&quot;: &quot;A String&quot;,
198 &quot;fileWithUri&quot;: &quot;A String&quot;,
199 &quot;mimeType&quot;: &quot;A String&quot;,
200 &quot;name&quot;: &quot;A String&quot;,
201 },
202 &quot;metadata&quot;: { # Optional metadata associated with this part.
203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
204 },
205 &quot;text&quot;: &quot;A String&quot;,
206 },
207 ],
208 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
209 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
210 &quot;A String&quot;,
211 ],
212 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
213 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
215 },
216 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
217 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
218 },
219 &quot;state&quot;: &quot;A String&quot;, # The current state of this task
220 &quot;timestamp&quot;: &quot;A String&quot;, # Timestamp when the status was recorded. Example: &quot;2023-10-27T10:00:00Z&quot;
221 },
222 }</pre>
223 </div>
224
225 <div class="method">
226 <code class="details" id="close">close()</code>
227 <pre>Close httplib2 connections.</pre>
228 </div>
229
230 <div class="method">
231 <code class="details" id="get">get(name, historyLength=None, tenant=None, x__xgafv=None)</code>
232 <pre>Get the current state of a task from the agent.
233
234 Args:
235 name: string, Required. The resource name of the task. Format: tasks/{task_id} (required)
236 historyLength: integer, The number of most recent messages from the task&#x27;s history to retrieve.
237 tenant: string, Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # Task is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
247 &quot;artifacts&quot;: [ # A set of output artifacts for a Task.
248 { # Artifacts are the container for task completed results. These are similar to Messages but are intended to be the product of a task, as opposed to point-to-point communication.
249 &quot;artifactId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the artifact. It must be at least unique within a task.
250 &quot;description&quot;: &quot;A String&quot;, # A human readable description of the artifact, optional.
251 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Artifact.
252 &quot;A String&quot;,
253 ],
254 &quot;metadata&quot;: { # Optional metadata included with the artifact.
255 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
256 },
257 &quot;name&quot;: &quot;A String&quot;, # A human readable name for the artifact.
258 &quot;parts&quot;: [ # The content of the artifact.
259 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
260 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
261 &quot;data&quot;: {
262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
263 },
264 },
265 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
266 &quot;fileWithBytes&quot;: &quot;A String&quot;,
267 &quot;fileWithUri&quot;: &quot;A String&quot;,
268 &quot;mimeType&quot;: &quot;A String&quot;,
269 &quot;name&quot;: &quot;A String&quot;,
270 },
271 &quot;metadata&quot;: { # Optional metadata associated with this part.
272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
273 },
274 &quot;text&quot;: &quot;A String&quot;,
275 },
276 ],
277 },
278 ],
279 &quot;contextId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.
280 &quot;history&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task.
281 { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id.
282 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
283 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
284 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
285 &quot;data&quot;: {
286 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
287 },
288 },
289 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
290 &quot;fileWithBytes&quot;: &quot;A String&quot;,
291 &quot;fileWithUri&quot;: &quot;A String&quot;,
292 &quot;mimeType&quot;: &quot;A String&quot;,
293 &quot;name&quot;: &quot;A String&quot;,
294 },
295 &quot;metadata&quot;: { # Optional metadata associated with this part.
296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
297 },
298 &quot;text&quot;: &quot;A String&quot;,
299 },
300 ],
301 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
302 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
303 &quot;A String&quot;,
304 ],
305 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
306 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
307 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
308 },
309 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
310 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
311 },
312 ],
313 &quot;id&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
314 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.
315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
316 },
317 &quot;status&quot;: { # A container for the status of a task # The current status of a Task, including state and a message.
318 &quot;message&quot;: { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id. # A message associated with the status.
319 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
320 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
321 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
322 &quot;data&quot;: {
323 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
324 },
325 },
326 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
327 &quot;fileWithBytes&quot;: &quot;A String&quot;,
328 &quot;fileWithUri&quot;: &quot;A String&quot;,
329 &quot;mimeType&quot;: &quot;A String&quot;,
330 &quot;name&quot;: &quot;A String&quot;,
331 },
332 &quot;metadata&quot;: { # Optional metadata associated with this part.
333 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
334 },
335 &quot;text&quot;: &quot;A String&quot;,
336 },
337 ],
338 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
339 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
340 &quot;A String&quot;,
341 ],
342 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
343 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
344 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
345 },
346 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
347 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
348 },
349 &quot;state&quot;: &quot;A String&quot;, # The current state of this task
350 &quot;timestamp&quot;: &quot;A String&quot;, # Timestamp when the status was recorded. Example: &quot;2023-10-27T10:00:00Z&quot;
351 },
352 }</pre>
353 </div>
354
355 <div class="method">
356 <code class="details" id="subscribe">subscribe(name, tenant=None, x__xgafv=None)</code>
357 <pre>TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
358
359 Args:
360 name: string, The resource name of the task to subscribe to. Format: tasks/{task_id} (required)
361 tenant: string, Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
362 x__xgafv: string, V1 error format.
363 Allowed values
364 1 - v1 error format
365 2 - v2 error format
366
367 Returns:
368 An object of the form:
369
370 { # The stream response for a message. The stream should be one of the following sequences: If the response is a message, the stream should contain one, and only one, message and then close If the response is a task lifecycle, the first response should be a Task object followed by zero or more TaskStatusUpdateEvents and TaskArtifactUpdateEvents. The stream should complete when the Task if in an interrupted or terminal state. A stream that ends before these conditions are met are
371 &quot;artifactUpdate&quot;: { # TaskArtifactUpdateEvent represents a task delta where an artifact has been generated.
372 &quot;append&quot;: True or False, # Whether this should be appended to a prior one produced
373 &quot;artifact&quot;: { # Artifacts are the container for task completed results. These are similar to Messages but are intended to be the product of a task, as opposed to point-to-point communication. # The artifact itself
374 &quot;artifactId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the artifact. It must be at least unique within a task.
375 &quot;description&quot;: &quot;A String&quot;, # A human readable description of the artifact, optional.
376 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Artifact.
377 &quot;A String&quot;,
378 ],
379 &quot;metadata&quot;: { # Optional metadata included with the artifact.
380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
381 },
382 &quot;name&quot;: &quot;A String&quot;, # A human readable name for the artifact.
383 &quot;parts&quot;: [ # The content of the artifact.
384 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
385 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
386 &quot;data&quot;: {
387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
388 },
389 },
390 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
391 &quot;fileWithBytes&quot;: &quot;A String&quot;,
392 &quot;fileWithUri&quot;: &quot;A String&quot;,
393 &quot;mimeType&quot;: &quot;A String&quot;,
394 &quot;name&quot;: &quot;A String&quot;,
395 },
396 &quot;metadata&quot;: { # Optional metadata associated with this part.
397 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
398 },
399 &quot;text&quot;: &quot;A String&quot;,
400 },
401 ],
402 },
403 &quot;contextId&quot;: &quot;A String&quot;, # The id of the context that this task belongs too
404 &quot;lastChunk&quot;: True or False, # Whether this represents the last part of an artifact
405 &quot;metadata&quot;: { # Optional metadata associated with the artifact update.
406 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
407 },
408 &quot;taskId&quot;: &quot;A String&quot;, # The id of the task for this artifact
409 },
410 &quot;message&quot;: { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id.
411 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
412 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
413 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
414 &quot;data&quot;: {
415 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
416 },
417 },
418 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
419 &quot;fileWithBytes&quot;: &quot;A String&quot;,
420 &quot;fileWithUri&quot;: &quot;A String&quot;,
421 &quot;mimeType&quot;: &quot;A String&quot;,
422 &quot;name&quot;: &quot;A String&quot;,
423 },
424 &quot;metadata&quot;: { # Optional metadata associated with this part.
425 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
426 },
427 &quot;text&quot;: &quot;A String&quot;,
428 },
429 ],
430 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
431 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
432 &quot;A String&quot;,
433 ],
434 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
435 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
436 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
437 },
438 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
439 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
440 },
441 &quot;statusUpdate&quot;: { # TaskStatusUpdateEvent is a delta even on a task indicating that a task has changed.
442 &quot;contextId&quot;: &quot;A String&quot;, # The id of the context that the task belongs to
443 &quot;final&quot;: True or False, # Whether this is the last status update expected for this task.
444 &quot;metadata&quot;: { # Optional metadata to associate with the task update.
445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
446 },
447 &quot;status&quot;: { # A container for the status of a task # The new status of the task.
448 &quot;message&quot;: { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id. # A message associated with the status.
449 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
450 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
451 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
452 &quot;data&quot;: {
453 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
454 },
455 },
456 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
457 &quot;fileWithBytes&quot;: &quot;A String&quot;,
458 &quot;fileWithUri&quot;: &quot;A String&quot;,
459 &quot;mimeType&quot;: &quot;A String&quot;,
460 &quot;name&quot;: &quot;A String&quot;,
461 },
462 &quot;metadata&quot;: { # Optional metadata associated with this part.
463 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
464 },
465 &quot;text&quot;: &quot;A String&quot;,
466 },
467 ],
468 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
469 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
470 &quot;A String&quot;,
471 ],
472 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
473 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
475 },
476 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
477 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
478 },
479 &quot;state&quot;: &quot;A String&quot;, # The current state of this task
480 &quot;timestamp&quot;: &quot;A String&quot;, # Timestamp when the status was recorded. Example: &quot;2023-10-27T10:00:00Z&quot;
481 },
482 &quot;taskId&quot;: &quot;A String&quot;, # The id of the task that is changed
483 },
484 &quot;task&quot;: { # Task is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
485 &quot;artifacts&quot;: [ # A set of output artifacts for a Task.
486 { # Artifacts are the container for task completed results. These are similar to Messages but are intended to be the product of a task, as opposed to point-to-point communication.
487 &quot;artifactId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the artifact. It must be at least unique within a task.
488 &quot;description&quot;: &quot;A String&quot;, # A human readable description of the artifact, optional.
489 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Artifact.
490 &quot;A String&quot;,
491 ],
492 &quot;metadata&quot;: { # Optional metadata included with the artifact.
493 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
494 },
495 &quot;name&quot;: &quot;A String&quot;, # A human readable name for the artifact.
496 &quot;parts&quot;: [ # The content of the artifact.
497 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
498 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
499 &quot;data&quot;: {
500 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
501 },
502 },
503 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
504 &quot;fileWithBytes&quot;: &quot;A String&quot;,
505 &quot;fileWithUri&quot;: &quot;A String&quot;,
506 &quot;mimeType&quot;: &quot;A String&quot;,
507 &quot;name&quot;: &quot;A String&quot;,
508 },
509 &quot;metadata&quot;: { # Optional metadata associated with this part.
510 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
511 },
512 &quot;text&quot;: &quot;A String&quot;,
513 },
514 ],
515 },
516 ],
517 &quot;contextId&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.
518 &quot;history&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task.
519 { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id.
520 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
521 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
522 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
523 &quot;data&quot;: {
524 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
525 },
526 },
527 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
528 &quot;fileWithBytes&quot;: &quot;A String&quot;,
529 &quot;fileWithUri&quot;: &quot;A String&quot;,
530 &quot;mimeType&quot;: &quot;A String&quot;,
531 &quot;name&quot;: &quot;A String&quot;,
532 },
533 &quot;metadata&quot;: { # Optional metadata associated with this part.
534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
535 },
536 &quot;text&quot;: &quot;A String&quot;,
537 },
538 ],
539 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
540 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
541 &quot;A String&quot;,
542 ],
543 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
544 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
546 },
547 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
548 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
549 },
550 ],
551 &quot;id&quot;: &quot;A String&quot;, # Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
552 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.
553 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
554 },
555 &quot;status&quot;: { # A container for the status of a task # The current status of a Task, including state and a message.
556 &quot;message&quot;: { # Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id. # A message associated with the status.
557 &quot;content&quot;: [ # protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
558 { # Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
559 &quot;data&quot;: { # DataPart represents a structured blob. This is most commonly a JSON payload.
560 &quot;data&quot;: {
561 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
562 },
563 },
564 &quot;file&quot;: { # FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
565 &quot;fileWithBytes&quot;: &quot;A String&quot;,
566 &quot;fileWithUri&quot;: &quot;A String&quot;,
567 &quot;mimeType&quot;: &quot;A String&quot;,
568 &quot;name&quot;: &quot;A String&quot;,
569 },
570 &quot;metadata&quot;: { # Optional metadata associated with this part.
571 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
572 },
573 &quot;text&quot;: &quot;A String&quot;,
574 },
575 ],
576 &quot;contextId&quot;: &quot;A String&quot;, # The context id of the message. This is optional and if set, the message will be associated with the given context.
577 &quot;extensions&quot;: [ # The URIs of extensions that are present or contributed to this Message.
578 &quot;A String&quot;,
579 ],
580 &quot;messageId&quot;: &quot;A String&quot;, # The unique identifier (e.g. UUID)of the message. This is required and created by the message creator.
581 &quot;metadata&quot;: { # protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
582 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
583 },
584 &quot;role&quot;: &quot;A String&quot;, # A role for the message.
585 &quot;taskId&quot;: &quot;A String&quot;, # The task id of the message. This is optional and if set, the message will be associated with the given task.
586 },
587 &quot;state&quot;: &quot;A String&quot;, # The current state of this task
588 &quot;timestamp&quot;: &quot;A String&quot;, # Timestamp when the status was recorded. Example: &quot;2023-10-27T10:00:00Z&quot;
589 },
590 },
591 }</pre>
592 </div>
593
594 </body></html>