@@ -20,9 +20,9 @@ import "google/api/annotations.proto"; |
20 | 20 | import "google/api/client.proto"; |
21 | 21 | import "google/api/field_behavior.proto"; |
22 | 22 | import "google/api/resource.proto"; |
| 23 | +import "google/cloud/dialogflow/cx/v3beta1/trace.proto"; |
23 | 24 | import "google/protobuf/empty.proto"; |
24 | 25 | import "google/protobuf/field_mask.proto"; |
25 | | -import "google/protobuf/struct.proto"; |
26 | 26 | import "google/protobuf/timestamp.proto"; |
27 | 27 |
|
28 | 28 | option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; |
@@ -235,157 +235,3 @@ message Example { |
235 | 235 | // Note: example's language code is not currently used in dialogflow agents. |
236 | 236 | string language_code = 13 [(google.api.field_behavior) = OPTIONAL]; |
237 | 237 | } |
238 | | - |
239 | | -// Input of the playbook. |
240 | | -message PlaybookInput { |
241 | | - // Optional. Summary string of the preceding conversation for the child |
242 | | - // playbook invocation. |
243 | | - string preceding_conversation_summary = 1 |
244 | | - [(google.api.field_behavior) = OPTIONAL]; |
245 | | - |
246 | | - // Optional. A list of input parameters for the action. |
247 | | - google.protobuf.Struct action_parameters = 3 |
248 | | - [(google.api.field_behavior) = OPTIONAL]; |
249 | | -} |
250 | | - |
251 | | -// Output of the playbook. |
252 | | -message PlaybookOutput { |
253 | | - // Optional. Summary string of the execution result of the child playbook. |
254 | | - string execution_summary = 1 [(google.api.field_behavior) = OPTIONAL]; |
255 | | - |
256 | | - // Optional. A Struct object of output parameters for the action. |
257 | | - google.protobuf.Struct action_parameters = 4 |
258 | | - [(google.api.field_behavior) = OPTIONAL]; |
259 | | -} |
260 | | - |
261 | | -// Action performed by end user or Dialogflow agent in the conversation. |
262 | | -message Action { |
263 | | - // Action details. |
264 | | - oneof action { |
265 | | - // Optional. Agent obtained a message from the customer. |
266 | | - UserUtterance user_utterance = 1 [(google.api.field_behavior) = OPTIONAL]; |
267 | | - |
268 | | - // Optional. Action performed by the agent as a message. |
269 | | - AgentUtterance agent_utterance = 2 [(google.api.field_behavior) = OPTIONAL]; |
270 | | - |
271 | | - // Optional. Action performed on behalf of the agent by calling a plugin |
272 | | - // tool. |
273 | | - ToolUse tool_use = 3 [(google.api.field_behavior) = OPTIONAL]; |
274 | | - |
275 | | - // Optional. Action performed on behalf of the agent by invoking a child |
276 | | - // playbook. |
277 | | - PlaybookInvocation playbook_invocation = 4 |
278 | | - [(google.api.field_behavior) = OPTIONAL]; |
279 | | - |
280 | | - // Optional. Action performed on behalf of the agent by invoking a CX flow. |
281 | | - FlowInvocation flow_invocation = 5 [(google.api.field_behavior) = OPTIONAL]; |
282 | | - } |
283 | | -} |
284 | | - |
285 | | -// UserUtterance represents one message sent by the customer. |
286 | | -message UserUtterance { |
287 | | - // Required. Message content in text. |
288 | | - string text = 1 [(google.api.field_behavior) = REQUIRED]; |
289 | | -} |
290 | | - |
291 | | -// AgentUtterance represents one message sent by the agent. |
292 | | -message AgentUtterance { |
293 | | - // Required. Message content in text. |
294 | | - string text = 1 [(google.api.field_behavior) = REQUIRED]; |
295 | | -} |
296 | | - |
297 | | -// Stores metadata of the invocation of an action supported by a tool. |
298 | | -message ToolUse { |
299 | | - // Required. The [tool][google.cloud.dialogflow.cx.v3beta1.Tool] that should |
300 | | - // be used. Format: |
301 | | - // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. |
302 | | - string tool = 1 [ |
303 | | - (google.api.field_behavior) = REQUIRED, |
304 | | - (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } |
305 | | - ]; |
306 | | - |
307 | | - // Output only. The display name of the tool. |
308 | | - string display_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; |
309 | | - |
310 | | - // Optional. Name of the action to be called during the tool use. |
311 | | - string action = 2 [(google.api.field_behavior) = OPTIONAL]; |
312 | | - |
313 | | - // Optional. A list of input parameters for the action. |
314 | | - google.protobuf.Struct input_action_parameters = 5 |
315 | | - [(google.api.field_behavior) = OPTIONAL]; |
316 | | - |
317 | | - // Optional. A list of output parameters generated by the action. |
318 | | - google.protobuf.Struct output_action_parameters = 6 |
319 | | - [(google.api.field_behavior) = OPTIONAL]; |
320 | | -} |
321 | | - |
322 | | -// Stores metadata of the invocation of a child playbook. |
323 | | -message PlaybookInvocation { |
324 | | - // Required. The unique identifier of the playbook. |
325 | | - // Format: |
326 | | - // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. |
327 | | - string playbook = 1 [ |
328 | | - (google.api.field_behavior) = REQUIRED, |
329 | | - (google.api.resource_reference) = { |
330 | | - type: "dialogflow.googleapis.com/Playbook" |
331 | | - } |
332 | | - ]; |
333 | | - |
334 | | - // Output only. The display name of the playbook. |
335 | | - string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; |
336 | | - |
337 | | - // Optional. Input of the child playbook invocation. |
338 | | - PlaybookInput playbook_input = 2 [(google.api.field_behavior) = OPTIONAL]; |
339 | | - |
340 | | - // Optional. Output of the child playbook invocation. |
341 | | - PlaybookOutput playbook_output = 3 [(google.api.field_behavior) = OPTIONAL]; |
342 | | - |
343 | | - // Required. Playbook invocation's output state. |
344 | | - OutputState playbook_state = 4 [(google.api.field_behavior) = REQUIRED]; |
345 | | -} |
346 | | - |
347 | | -// Stores metadata of the invocation of a CX flow. |
348 | | -message FlowInvocation { |
349 | | - // Required. The unique identifier of the flow. |
350 | | - // Format: |
351 | | - // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
352 | | - string flow = 1 [ |
353 | | - (google.api.field_behavior) = REQUIRED, |
354 | | - (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } |
355 | | - ]; |
356 | | - |
357 | | - // Output only. The display name of the flow. |
358 | | - string display_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; |
359 | | - |
360 | | - // Optional. A list of input parameters for the flow. |
361 | | - google.protobuf.Struct input_action_parameters = 5 |
362 | | - [(google.api.field_behavior) = OPTIONAL]; |
363 | | - |
364 | | - // Optional. A list of output parameters generated by the flow invocation. |
365 | | - google.protobuf.Struct output_action_parameters = 6 |
366 | | - [(google.api.field_behavior) = OPTIONAL]; |
367 | | - |
368 | | - // Required. Flow invocation's output state. |
369 | | - OutputState flow_state = 4 [(google.api.field_behavior) = REQUIRED]; |
370 | | -} |
371 | | - |
372 | | -// Output state. |
373 | | -enum OutputState { |
374 | | - // Unspecified output. |
375 | | - OUTPUT_STATE_UNSPECIFIED = 0; |
376 | | - |
377 | | - // Succeeded. |
378 | | - OUTPUT_STATE_OK = 1; |
379 | | - |
380 | | - // Cancelled. |
381 | | - OUTPUT_STATE_CANCELLED = 2; |
382 | | - |
383 | | - // Failed. |
384 | | - OUTPUT_STATE_FAILED = 3; |
385 | | - |
386 | | - // Escalated. |
387 | | - OUTPUT_STATE_ESCALATED = 4; |
388 | | - |
389 | | - // Pending. |
390 | | - OUTPUT_STATE_PENDING = 5; |
391 | | -} |