Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat: added Automated agent reply type and allow cancellation flag fo…
Browse files Browse the repository at this point in the history
…r partial response feature (#825)

PiperOrigin-RevId: 379370373

Source-Link: googleapis/googleapis@58187af

Source-Link: https://github.com/googleapis/googleapis-gen/commit/6b2c084f0796c518cd101914dbf81ffb923642cf
  • Loading branch information
gcf-owl-bot[bot] authored Jun 15, 2021
1 parent 37693cd commit 5b128d9
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 1 deletion.
23 changes: 23 additions & 0 deletions protos/google/cloud/dialogflow/v2/participant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/audio_config.proto";
import "google/cloud/dialogflow/v2/session.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
Expand Down Expand Up @@ -473,8 +474,30 @@ message OutputAudio {

// Represents a response from an automated agent.
message AutomatedAgentReply {
// Represents different automated agent reply types.
enum AutomatedAgentReplyType {
// Not specified. This should never happen.
AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0;

// Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables
// `return_partial_response` can be returned as partial reply.
// WARNING: partial reply is not eligible for barge-in.
PARTIAL = 1;

// Final reply.
FINAL = 2;
}

// Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
DetectIntentResponse detect_intent_response = 1;

// AutomatedAgentReply type.
AutomatedAgentReplyType automated_agent_reply_type = 7;

// Indicates whether the partial automated agent reply is interruptible when a
// later reply message arrives. e.g. if the agent specified some music as
// partial response, it can be cancelled.
bool allow_cancellation = 8;
}

// Represents article answer.
Expand Down
22 changes: 22 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

81 changes: 80 additions & 1 deletion protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b128d9

Please sign in to comment.