Debian Codegraph @

docs/dyn/ces_v1beta.projects.locations.apps.conversations.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="ces_v1beta.html">Gemini Enterprise for Customer Experience API</a> . <a href="ces_v1beta.projects.html">projects</a> . <a href="ces_v1beta.projects.locations.html">locations</a> . <a href="ces_v1beta.projects.locations.apps.html">apps</a> . <a href="ces_v1beta.projects.locations.apps.conversations.html">conversations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Batch deletes the specified conversations.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, source=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes the specified conversation.</p>
86 <p class="toc_element">
87 <code><a href="#generateEvaluation">generateEvaluation(conversation, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates a golden evaluation from a conversation.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, source=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets details of the specified conversation.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, source=None, sources=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists conversations in the given app.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
101 <pre>Batch deletes the specified conversations.
102
103 Args:
104 parent: string, Required. The resource name of the app to delete conversations from. Format: `projects/{project}/locations/{location}/apps/{app}` (required)
105 body: object, The request body.
106 The object takes the form of:
107
108 { # Request message for AgentService.BatchDeleteConversations.
109 &quot;conversations&quot;: [ # Required. The resource names of the conversations to delete.
110 &quot;A String&quot;,
111 ],
112 }
113
114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
118
119 Returns:
120 An object of the form:
121
122 { # This resource represents a long-running operation that is the result of a network API call.
123 &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.
124 &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.
125 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
126 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
127 {
128 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
129 },
130 ],
131 &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.
132 },
133 &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.
134 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
135 },
136 &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}`.
137 &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`.
138 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
139 },
140 }</pre>
141 </div>
142
143 <div class="method">
144 <code class="details" id="close">close()</code>
145 <pre>Close httplib2 connections.</pre>
146 </div>
147
148 <div class="method">
149 <code class="details" id="delete">delete(name, source=None, x__xgafv=None)</code>
150 <pre>Deletes the specified conversation.
151
152 Args:
153 name: string, Required. The resource name of the conversation to delete. (required)
154 source: string, Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by default.
155 Allowed values
156 SOURCE_UNSPECIFIED - Unspecified source.
157 LIVE - The conversation is from the live end user.
158 SIMULATOR - The conversation is from the simulator.
159 EVAL - The conversation is from the evaluation.
160 AGENT_TOOL - The conversation is from an agent tool. Agent tool runs the agent in a separate session, which is persisted for testing and debugging purposes.
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166 Returns:
167 An object of the form:
168
169 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
170 }</pre>
171 </div>
172
173 <div class="method">
174 <code class="details" id="generateEvaluation">generateEvaluation(conversation, body=None, x__xgafv=None)</code>
175 <pre>Creates a golden evaluation from a conversation.
176
177 Args:
178 conversation: string, Required. The conversation to create the golden evaluation for. Format: `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` (required)
179 body: object, The request body.
180 The object takes the form of:
181
182 { # Request message for EvaluationService.GenerateEvaluation.
183 &quot;source&quot;: &quot;A String&quot;, # Optional. Indicate the source of the conversation. If not set, all sources will be searched.
184 }
185
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191 Returns:
192 An object of the form:
193
194 { # This resource represents a long-running operation that is the result of a network API call.
195 &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.
196 &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.
197 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
198 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
199 {
200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
201 },
202 ],
203 &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.
204 },
205 &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.
206 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
207 },
208 &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}`.
209 &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`.
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 }</pre>
213 </div>
214
215 <div class="method">
216 <code class="details" id="get">get(name, source=None, x__xgafv=None)</code>
217 <pre>Gets details of the specified conversation.
218
219 Args:
220 name: string, Required. The resource name of the conversation to retrieve. (required)
221 source: string, Optional. Indicate the source of the conversation. If not set, all source will be searched.
222 Allowed values
223 SOURCE_UNSPECIFIED - Unspecified source.
224 LIVE - The conversation is from the live end user.
225 SIMULATOR - The conversation is from the simulator.
226 EVAL - The conversation is from the evaluation.
227 AGENT_TOOL - The conversation is from an agent tool. Agent tool runs the agent in a separate session, which is persisted for testing and debugging purposes.
228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233 Returns:
234 An object of the form:
235
236 { # A conversation represents an interaction between an end user and the CES app.
237 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The version of the app used for processing the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
238 &quot;channelType&quot;: &quot;A String&quot;, # DEPRECATED. Please use input_types instead.
239 &quot;deployment&quot;: &quot;A String&quot;, # Output only. The deployment of the app used for processing the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
240 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the conversation was completed.
241 &quot;entryAgent&quot;: &quot;A String&quot;, # Output only. The agent that initially handles the conversation. If not specified, the conversation is handled by the root agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
242 &quot;inputTypes&quot;: [ # Output only. The input types of the conversation.
243 &quot;A String&quot;,
244 ],
245 &quot;languageCode&quot;: &quot;A String&quot;, # Output only. The language code of the conversation.
246 &quot;messages&quot;: [ # Deprecated. Use turns instead.
247 { # A message within a conversation.
248 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
249 { # A chunk of content within a message.
250 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
251 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
252 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
253 },
254 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
255 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
256 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
257 },
258 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
259 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
260 },
261 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
262 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
263 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
264 },
265 &quot;payload&quot;: { # Optional. Custom payload data.
266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
267 },
268 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
269 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
270 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
272 },
273 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
274 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
275 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
276 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
277 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
278 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
279 },
280 },
281 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
282 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
283 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
284 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
285 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
286 },
287 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
288 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
289 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
290 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
291 },
292 },
293 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
294 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
295 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
296 },
297 },
298 ],
299 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
300 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
301 },
302 ],
303 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
304 &quot;source&quot;: &quot;A String&quot;, # Output only. Indicate the source of the conversation.
305 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the conversation was created.
306 &quot;turnCount&quot;: 42, # Output only. The number of turns in the conversation.
307 &quot;turns&quot;: [ # Required. The turns in the conversation.
308 { # All information about a single turn in the conversation.
309 &quot;messages&quot;: [ # Optional. List of messages in the conversation turn, including user input, agent responses and intermediate events during the processing.
310 { # A message within a conversation.
311 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
312 { # A chunk of content within a message.
313 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
314 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
315 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
316 },
317 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
318 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
319 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
320 },
321 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
322 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
323 },
324 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
325 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
326 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
327 },
328 &quot;payload&quot;: { # Optional. Custom payload data.
329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
330 },
331 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
332 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
333 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
335 },
336 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
337 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
338 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
339 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
340 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
341 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
342 },
343 },
344 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
345 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
346 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
347 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
348 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
349 },
350 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
351 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
352 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
353 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
354 },
355 },
356 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
357 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
358 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
359 },
360 },
361 ],
362 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
363 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
364 },
365 ],
366 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the action processing.
367 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
369 },
370 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
371 # Object with schema name: Span
372 ],
373 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
374 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
375 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
376 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
377 },
378 },
379 ],
380 }</pre>
381 </div>
382
383 <div class="method">
384 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, source=None, sources=None, x__xgafv=None)</code>
385 <pre>Lists conversations in the given app.
386
387 Args:
388 parent: string, Required. The resource name of the app to list conversations from. (required)
389 filter: string, Optional. Filter to be applied when listing the conversations. See https://google.aip.dev/160 for more details.
390 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
391 pageToken: string, Optional. The next_page_token value returned from a previous list AgentService.ListConversations call.
392 source: string, Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by default. Will be deprecated in favor of `sources` field.
393 Allowed values
394 SOURCE_UNSPECIFIED - Unspecified source.
395 LIVE - The conversation is from the live end user.
396 SIMULATOR - The conversation is from the simulator.
397 EVAL - The conversation is from the evaluation.
398 AGENT_TOOL - The conversation is from an agent tool. Agent tool runs the agent in a separate session, which is persisted for testing and debugging purposes.
399 sources: string, Optional. Indicate the sources of the conversations. If not set, all available sources will be applied by default. (repeated)
400 Allowed values
401 SOURCE_UNSPECIFIED - Unspecified source.
402 LIVE - The conversation is from the live end user.
403 SIMULATOR - The conversation is from the simulator.
404 EVAL - The conversation is from the evaluation.
405 AGENT_TOOL - The conversation is from an agent tool. Agent tool runs the agent in a separate session, which is persisted for testing and debugging purposes.
406 x__xgafv: string, V1 error format.
407 Allowed values
408 1 - v1 error format
409 2 - v2 error format
410
411 Returns:
412 An object of the form:
413
414 { # Response message for AgentService.ListConversations.
415 &quot;conversations&quot;: [ # The list of conversations.
416 { # A conversation represents an interaction between an end user and the CES app.
417 &quot;appVersion&quot;: &quot;A String&quot;, # Output only. The version of the app used for processing the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
418 &quot;channelType&quot;: &quot;A String&quot;, # DEPRECATED. Please use input_types instead.
419 &quot;deployment&quot;: &quot;A String&quot;, # Output only. The deployment of the app used for processing the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
420 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the conversation was completed.
421 &quot;entryAgent&quot;: &quot;A String&quot;, # Output only. The agent that initially handles the conversation. If not specified, the conversation is handled by the root agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
422 &quot;inputTypes&quot;: [ # Output only. The input types of the conversation.
423 &quot;A String&quot;,
424 ],
425 &quot;languageCode&quot;: &quot;A String&quot;, # Output only. The language code of the conversation.
426 &quot;messages&quot;: [ # Deprecated. Use turns instead.
427 { # A message within a conversation.
428 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
429 { # A chunk of content within a message.
430 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
431 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
432 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
433 },
434 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
435 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
436 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
437 },
438 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
439 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
440 },
441 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
442 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
443 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
444 },
445 &quot;payload&quot;: { # Optional. Custom payload data.
446 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
447 },
448 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
449 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
450 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
451 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
452 },
453 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
454 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
455 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
456 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
457 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
458 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
459 },
460 },
461 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
462 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
463 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
464 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
465 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
466 },
467 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
468 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
469 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
470 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
471 },
472 },
473 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
474 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
475 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
476 },
477 },
478 ],
479 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
480 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
481 },
482 ],
483 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
484 &quot;source&quot;: &quot;A String&quot;, # Output only. Indicate the source of the conversation.
485 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the conversation was created.
486 &quot;turnCount&quot;: 42, # Output only. The number of turns in the conversation.
487 &quot;turns&quot;: [ # Required. The turns in the conversation.
488 { # All information about a single turn in the conversation.
489 &quot;messages&quot;: [ # Optional. List of messages in the conversation turn, including user input, agent responses and intermediate events during the processing.
490 { # A message within a conversation.
491 &quot;chunks&quot;: [ # Optional. Content of the message as a series of chunks.
492 { # A chunk of content within a message.
493 &quot;agentTransfer&quot;: { # Represents an event indicating the transfer of a conversation to a different agent. # Optional. Agent transfer event.
494 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the agent.
495 &quot;targetAgent&quot;: &quot;A String&quot;, # Required. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
496 },
497 &quot;blob&quot;: { # Represents a blob input or output in the conversation. # Optional. Blob data.
498 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the blob.
499 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
500 },
501 &quot;defaultVariables&quot;: { # A struct represents default variables at the start of the conversation, keyed by variable names.
502 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
503 },
504 &quot;image&quot;: { # Represents an image input or output in the conversation. # Optional. Image data.
505 &quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes of the image.
506 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
507 },
508 &quot;payload&quot;: { # Optional. Custom payload data.
509 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
510 },
511 &quot;text&quot;: &quot;A String&quot;, # Optional. Text data.
512 &quot;toolCall&quot;: { # Request for the client or the agent to execute the specified tool. # Optional. Tool execution request.
513 &quot;args&quot;: { # Optional. The input parameters and values for the tool in JSON object format.
514 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
515 },
516 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
517 &quot;id&quot;: &quot;A String&quot;, # Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in ToolResponse.
518 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
519 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool to execute.
520 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
521 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
522 },
523 },
524 &quot;toolResponse&quot;: { # The execution result of a specific tool from the client or the agent. # Optional. Tool execution response.
525 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the tool.
526 &quot;id&quot;: &quot;A String&quot;, # Optional. The matching ID of the tool call the response is for.
527 &quot;response&quot;: { # Required. The tool execution result in JSON object format. Use &quot;output&quot; key to specify tool response and &quot;error&quot; key to specify error details (if any). If &quot;output&quot; and &quot;error&quot; keys are not specified, then whole &quot;response&quot; is treated as tool execution result.
528 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
529 },
530 &quot;tool&quot;: &quot;A String&quot;, # Optional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
531 &quot;toolsetTool&quot;: { # A tool that is created from a toolset. # Optional. The toolset tool that got executed.
532 &quot;toolId&quot;: &quot;A String&quot;, # Optional. The tool ID to filter the tools to retrieve the schema for.
533 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the Toolset from which this tool is derived. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
534 },
535 },
536 &quot;transcript&quot;: &quot;A String&quot;, # Optional. Transcript associated with the audio.
537 &quot;updatedVariables&quot;: { # A struct represents variables that were updated in the conversation, keyed by variable names.
538 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
539 },
540 },
541 ],
542 &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
543 &quot;role&quot;: &quot;A String&quot;, # Optional. The role within the conversation, e.g., user, agent.
544 },
545 ],
546 &quot;rootSpan&quot;: { # A span is a unit of work or a single operation during the request processing. # Optional. The root span of the action processing.
547 &quot;attributes&quot;: { # Output only. Key-value attributes associated with the span.
548 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
549 },
550 &quot;childSpans&quot;: [ # Output only. The child spans that are nested under this span.
551 # Object with schema name: Span
552 ],
553 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the span.
554 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of the span.
555 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the span.
556 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of the span.
557 },
558 },
559 ],
560 },
561 ],
562 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
563 }</pre>
564 </div>
565
566 <div class="method">
567 <code class="details" id="list_next">list_next()</code>
568 <pre>Retrieves the next page of results.
569
570 Args:
571 previous_request: The request for the previous page. (required)
572 previous_response: The response from the request for the previous page. (required)
573
574 Returns:
575 A request object that you can call &#x27;execute()&#x27; on to request the next
576 page. Returns None if there are no more items in the collection.
577 </pre>
578 </div>
579
580 </body></html>