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

feat(v2beta1): added Automated agent reply type and allow cancellation flag for partial response feature #311

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
🦉 Updates from OwlBot
  • Loading branch information
gcf-owl-bot[bot] committed Jun 14, 2021
commit 656cd03baa9c61919ffbbbc52fe016c8cce2b33d
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/dialogflow/__init__.py
Expand Down
18 changes: 18 additions & 0 deletions google/cloud/dialogflow_v2beta1/types/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,22 @@ class AutomatedAgentReply(proto.Message):
The collection of current Dialogflow CX agent session
parameters at the time of this response. Deprecated: Use
``parameters`` instead.
automated_agent_reply_type (google.cloud.dialogflow_v2beta1.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, oneof="response", message=session.DetectIntentResponse,
)
Expand All @@ -329,6 +343,10 @@ class AutomatedAgentReply(proto.Message):
cx_session_parameters = proto.Field(
proto.MESSAGE, number=6, message=struct_pb2.Struct,
)
automated_agent_reply_type = proto.Field(
proto.ENUM, number=7, enum=AutomatedAgentReplyType,
)
allow_cancellation = proto.Field(proto.BOOL, number=8,)


class SuggestionFeature(proto.Message):
Expand Down
17 changes: 0 additions & 17 deletions owl-bot-staging/v2/.coveragerc

This file was deleted.

2 changes: 0 additions & 2 deletions owl-bot-staging/v2/MANIFEST.in

This file was deleted.

49 changes: 0 additions & 49 deletions owl-bot-staging/v2/README.rst

This file was deleted.

Loading