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

Commit 1d34763

Browse files
feat(v2beta1): added Automated agent reply type and allow cancellation flag for partial response feature (#311)
PiperOrigin-RevId: 378977785 Source-Link: googleapis/googleapis@018bc85 Source-Link: https://github.com/googleapis/googleapis-gen/commit/fa7371cc1e7d5749294bc21e101aca14afb39e85
1 parent d2b9923 commit 1d34763

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
branch = True
33

44
[report]
5-
fail_under = 100
65
show_missing = True
76
omit =
87
google/cloud/dialogflow/__init__.py

google/cloud/dialogflow_v2beta1/types/participant.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,22 @@ class AutomatedAgentReply(proto.Message):
314314
The collection of current Dialogflow CX agent session
315315
parameters at the time of this response. Deprecated: Use
316316
``parameters`` instead.
317+
automated_agent_reply_type (google.cloud.dialogflow_v2beta1.types.AutomatedAgentReply.AutomatedAgentReplyType):
318+
AutomatedAgentReply type.
319+
allow_cancellation (bool):
320+
Indicates whether the partial automated agent
321+
reply is interruptible when a later reply
322+
message arrives. e.g. if the agent specified
323+
some music as partial response, it can be
324+
cancelled.
317325
"""
318326

327+
class AutomatedAgentReplyType(proto.Enum):
328+
r"""Represents different automated agent reply types."""
329+
AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0
330+
PARTIAL = 1
331+
FINAL = 2
332+
319333
detect_intent_response = proto.Field(
320334
proto.MESSAGE, number=1, oneof="response", message=session.DetectIntentResponse,
321335
)
@@ -329,6 +343,10 @@ class AutomatedAgentReply(proto.Message):
329343
cx_session_parameters = proto.Field(
330344
proto.MESSAGE, number=6, message=struct_pb2.Struct,
331345
)
346+
automated_agent_reply_type = proto.Field(
347+
proto.ENUM, number=7, enum=AutomatedAgentReplyType,
348+
)
349+
allow_cancellation = proto.Field(proto.BOOL, number=8,)
332350

333351

334352
class SuggestionFeature(proto.Message):

0 commit comments

Comments
 (0)