Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 5dfd375

Browse files
feat: added Automated agent reply type and allow cancellation flag for partial response feature (#314)
PiperOrigin-RevId: 379370373 Source-Link: googleapis/googleapis@58187af Source-Link: https://github.com/googleapis/googleapis-gen/commit/6b2c084f0796c518cd101914dbf81ffb923642cf
1 parent 99d8897 commit 5dfd375

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

google/cloud/dialogflow_v2/types/participant.py

+18
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,29 @@ class AutomatedAgentReply(proto.Message):
469469
Response of the Dialogflow
470470
[Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
471471
call.
472+
automated_agent_reply_type (google.cloud.dialogflow_v2.types.AutomatedAgentReply.AutomatedAgentReplyType):
473+
AutomatedAgentReply type.
474+
allow_cancellation (bool):
475+
Indicates whether the partial automated agent
476+
reply is interruptible when a later reply
477+
message arrives. e.g. if the agent specified
478+
some music as partial response, it can be
479+
cancelled.
472480
"""
473481

482+
class AutomatedAgentReplyType(proto.Enum):
483+
r"""Represents different automated agent reply types."""
484+
AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0
485+
PARTIAL = 1
486+
FINAL = 2
487+
474488
detect_intent_response = proto.Field(
475489
proto.MESSAGE, number=1, message=session.DetectIntentResponse,
476490
)
491+
automated_agent_reply_type = proto.Field(
492+
proto.ENUM, number=7, enum=AutomatedAgentReplyType,
493+
)
494+
allow_cancellation = proto.Field(proto.BOOL, number=8,)
477495

478496

479497
class ArticleAnswer(proto.Message):

0 commit comments

Comments
 (0)