Skip to content
This repository has been archived by the owner on Dec 17, 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
  • Loading branch information
gcf-owl-bot[bot] authored Jun 16, 2021
1 parent 99d8897 commit 5dfd375
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions google/cloud/dialogflow_v2/types/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,29 @@ class AutomatedAgentReply(proto.Message):
Response of the Dialogflow
[Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
call.
automated_agent_reply_type (google.cloud.dialogflow_v2.types.AutomatedAgentReply.AutomatedAgentReplyType):
AutomatedAgentReply type.
allow_cancellation (bool):
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.
"""

class AutomatedAgentReplyType(proto.Enum):
r"""Represents different automated agent reply types."""
AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0
PARTIAL = 1
FINAL = 2

detect_intent_response = proto.Field(
proto.MESSAGE, number=1, message=session.DetectIntentResponse,
)
automated_agent_reply_type = proto.Field(
proto.ENUM, number=7, enum=AutomatedAgentReplyType,
)
allow_cancellation = proto.Field(proto.BOOL, number=8,)


class ArticleAnswer(proto.Message):
Expand Down

0 comments on commit 5dfd375

Please sign in to comment.