Skip to content

Commit f67b681

Browse files
feat: added Automated agent reply type and allow cancellation flag for partial response feature (#825)
PiperOrigin-RevId: 379370373 Source-Link: googleapis/googleapis@58187af Source-Link: googleapis/googleapis-gen@6b2c084
1 parent 9fd1a11 commit f67b681

File tree

4 files changed

+142
-1
lines changed

4 files changed

+142
-1
lines changed

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/participant.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/cloud/dialogflow/v2/audio_config.proto";
2424
import "google/cloud/dialogflow/v2/session.proto";
25+
import "google/protobuf/any.proto";
2526
import "google/protobuf/duration.proto";
2627
import "google/protobuf/field_mask.proto";
2728
import "google/protobuf/struct.proto";
@@ -473,8 +474,30 @@ message OutputAudio {
473474

474475
// Represents a response from an automated agent.
475476
message AutomatedAgentReply {
477+
// Represents different automated agent reply types.
478+
enum AutomatedAgentReplyType {
479+
// Not specified. This should never happen.
480+
AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0;
481+
482+
// Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables
483+
// `return_partial_response` can be returned as partial reply.
484+
// WARNING: partial reply is not eligible for barge-in.
485+
PARTIAL = 1;
486+
487+
// Final reply.
488+
FINAL = 2;
489+
}
490+
476491
// Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
477492
DetectIntentResponse detect_intent_response = 1;
493+
494+
// AutomatedAgentReply type.
495+
AutomatedAgentReplyType automated_agent_reply_type = 7;
496+
497+
// Indicates whether the partial automated agent reply is interruptible when a
498+
// later reply message arrives. e.g. if the agent specified some music as
499+
// partial response, it can be cancelled.
500+
bool allow_cancellation = 8;
478501
}
479502

480503
// Represents article answer.

packages/google-cloud-dialogflow/protos/protos.d.ts

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-dialogflow/protos/protos.js

Lines changed: 80 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-dialogflow/protos/protos.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)