From f24f3028fa83da14614d1340e5bce7719be287b6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Jun 2021 02:26:04 +0000 Subject: [PATCH 1/5] feat(v3beta1): support sentiment analysis in bot testing (#100) PiperOrigin-RevId: 377947699 Source-Link: https://github.com/googleapis/googleapis/commit/90717db757582fdda158463c613ee6f5334a98a4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a06347a33a73754768a6f0633fc8e247373e5be6 --- google/cloud/dialogflowcx_v3beta1/types/test_case.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/google/cloud/dialogflowcx_v3beta1/types/test_case.py b/google/cloud/dialogflowcx_v3beta1/types/test_case.py index 06b6bde2..d3c4f950 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/test_case.py +++ b/google/cloud/dialogflowcx_v3beta1/types/test_case.py @@ -199,6 +199,8 @@ class UserInput(proto.Message): response to the user utterance. Often if parameters are injected, webhooks should not be enabled. + enable_sentiment_analysis (bool): + Whether sentiment analysis is enabled. """ input = proto.Field(proto.MESSAGE, number=5, message=session.QueryInput,) @@ -206,6 +208,7 @@ class UserInput(proto.Message): proto.MESSAGE, number=2, message=struct_pb2.Struct, ) is_webhook_enabled = proto.Field(proto.BOOL, number=3,) + enable_sentiment_analysis = proto.Field(proto.BOOL, number=7,) class VirtualAgentOutput(proto.Message): r"""The output from the virtual agent. From 6cf1175e045bdae752b5b6aafe8bc2e2733ec80f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 04:26:05 +0200 Subject: [PATCH 2/5] chore(deps): update dependency google-cloud-dialogflow-cx to v0.6.0 (#101) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-dialogflow-cx](https://togithub.com/googleapis/python-dialogflow-cx) | `==0.5.0` -> `==0.6.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-dialogflow-cx/0.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-dialogflow-cx/0.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-dialogflow-cx/0.6.0/compatibility-slim/0.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-dialogflow-cx/0.6.0/confidence-slim/0.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-dialogflow-cx ### [`v0.6.0`](https://togithub.com/googleapis/python-dialogflow-cx/blob/master/CHANGELOG.md#​060-httpswwwgithubcomgoogleapispython-dialogflow-cxcomparev050v060-2021-06-07) [Compare Source](https://togithub.com/googleapis/python-dialogflow-cx/compare/v0.5.0...v0.6.0) ##### Features - support sentiment analysis in bot testing ([#​98](https://www.github.com/googleapis/python-dialogflow-cx/issues/98)) ([db258bc](https://www.github.com/googleapis/python-dialogflow-cx/commit/db258bcc9971542e347b50f396bd51ec88520fde))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-dialogflow-cx). --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 34c39348..6bcff5f1 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-dialogflow-cx==0.5.0 +google-cloud-dialogflow-cx==0.6.0 From 5e21ed454ad6a5d687e634ad4e697f1921104c47 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 21:18:06 +0000 Subject: [PATCH 3/5] fix(v3beta1): Set agent default language code as required (#103) PiperOrigin-RevId: 378978212 Source-Link: https://github.com/googleapis/googleapis/commit/ecc3ac67807074d85054694a0574d387c862502d Source-Link: https://github.com/googleapis/googleapis-gen/commit/398a922b805f32f61d3267232f5d2f66081fa980 feat(v3beta1): Support partial response feature docs(v3beta1): Update docs of Agents, Fulfillments, SecuritySettings and Sessions --- .../cloud/dialogflowcx_v3beta1/types/agent.py | 4 ++-- .../dialogflowcx_v3beta1/types/fulfillment.py | 14 +++++++++++ .../types/security_settings.py | 6 +++-- .../dialogflowcx_v3beta1/types/session.py | 23 ++++++++++++++++++- .../dialogflowcx_v3beta1/test_sessions.py | 14 +++++++++-- 5 files changed, 54 insertions(+), 7 deletions(-) diff --git a/google/cloud/dialogflowcx_v3beta1/types/agent.py b/google/cloud/dialogflowcx_v3beta1/types/agent.py index 6dbf1caf..dd156b88 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/agent.py +++ b/google/cloud/dialogflowcx_v3beta1/types/agent.py @@ -77,8 +77,8 @@ class Agent(proto.Message): Required. The human-readable name of the agent, unique within the location. default_language_code (str): - Immutable. The default language of the agent as a language - tag. See `Language + Required. Immutable. The default language of the agent as a + language tag. See `Language Support `__ for a list of the currently supported language codes. This field cannot be set by the diff --git a/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py b/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py index e3da30ba..f08b3d8c 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py +++ b/google/cloud/dialogflowcx_v3beta1/types/fulfillment.py @@ -52,6 +52,19 @@ class Fulfillment(proto.Message): webhook (str): The webhook to call. Format: ``projects//locations//agents//webhooks/``. + return_partial_responses (bool): + Whether Dialogflow should return currently + queued fulfillment response messages in + streaming APIs. If a webhook is specified, it + happens before Dialogflow invokes webhook. + Warning: + 1) This flag only affects streaming API. + Responses are still queued and returned once in + non-streaming API. + 2) The flag can be enabled in any fulfillment + but only the first 3 partial responses will be + returned. You may only want to apply it to + fulfillments that have slow webhooks. tag (str): The tag used by the webhook to identify which fulfillment is being called. This field is required if ``webhook`` is @@ -143,6 +156,7 @@ class CaseContent(proto.Message): proto.MESSAGE, number=1, message=response_message.ResponseMessage, ) webhook = proto.Field(proto.STRING, number=2,) + return_partial_responses = proto.Field(proto.BOOL, number=8,) tag = proto.Field(proto.STRING, number=3,) set_parameter_actions = proto.RepeatedField( proto.MESSAGE, number=4, message=SetParameterAction, diff --git a/google/cloud/dialogflowcx_v3beta1/types/security_settings.py b/google/cloud/dialogflowcx_v3beta1/types/security_settings.py index df231806..140249e6 100644 --- a/google/cloud/dialogflowcx_v3beta1/types/security_settings.py +++ b/google/cloud/dialogflowcx_v3beta1/types/security_settings.py @@ -165,8 +165,10 @@ class SecuritySettings(proto.Message): If empty, we use the default DLP inspect config. The template name will have one of the following formats: - ``projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID`` OR - ``organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`` + ``projects//inspectTemplates/