diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b89dcf36..90866cba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/dialogflow/#history +## [2.3.0](https://www.github.com/googleapis/python-dialogflow/compare/v2.2.0...v2.3.0) (2021-05-19) + + +### Features + +* added location-aware HTTP path binding for ListIntents feat: exposed match confidence and parameter in AnalyzeContentResponse feat: added DTMF and PARTIAL DTMF type in recognition result ([#298](https://www.github.com/googleapis/python-dialogflow/issues/298)) ([e52e9c0](https://www.github.com/googleapis/python-dialogflow/commit/e52e9c001c9830e24286e0251f3a639aaeaa32fd)) + ## [2.2.0](https://www.github.com/googleapis/python-dialogflow/compare/v2.1.2...v2.2.0) (2021-05-16) diff --git a/google/cloud/dialogflow_v2beta1/services/intents/async_client.py b/google/cloud/dialogflow_v2beta1/services/intents/async_client.py index c071ce136..8ea2a6bdc 100644 --- a/google/cloud/dialogflow_v2beta1/services/intents/async_client.py +++ b/google/cloud/dialogflow_v2beta1/services/intents/async_client.py @@ -183,7 +183,16 @@ async def list_intents( [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. parent (:class:`str`): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be + returned for non-draft environment. This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/dialogflow_v2beta1/services/intents/client.py b/google/cloud/dialogflow_v2beta1/services/intents/client.py index eaddb5108..41cb6ba4a 100644 --- a/google/cloud/dialogflow_v2beta1/services/intents/client.py +++ b/google/cloud/dialogflow_v2beta1/services/intents/client.py @@ -385,7 +385,16 @@ def list_intents( [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. parent (str): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be + returned for non-draft environment. This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/dialogflow_v2beta1/types/intent.py b/google/cloud/dialogflow_v2beta1/types/intent.py index 3a1e868ec..8d3245bd1 100644 --- a/google/cloud/dialogflow_v2beta1/types/intent.py +++ b/google/cloud/dialogflow_v2beta1/types/intent.py @@ -1445,7 +1445,16 @@ class ListIntentsRequest(proto.Message): Attributes: parent (str): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be returned + for non-draft environment. language_code (str): Optional. The language used to access language-specific data. If not specified, the agent's default language is diff --git a/google/cloud/dialogflow_v2beta1/types/participant.py b/google/cloud/dialogflow_v2beta1/types/participant.py index b38c7e8a9..caba6e7a3 100644 --- a/google/cloud/dialogflow_v2beta1/types/participant.py +++ b/google/cloud/dialogflow_v2beta1/types/participant.py @@ -297,9 +297,23 @@ class AutomatedAgentReply(proto.Message): event (str): Event name if an event is triggered for the query. + match_confidence (float): + The confidence of the match. Values range + from 0.0 (completely uncertain) to 1.0 + (completely certain). This value is for + informational purpose only and is only used to + help match the best intent within the + classification threshold. This value may change + for the same end-user expression at any time due + to a model retraining or change in + implementation. + parameters (google.protobuf.struct_pb2.Struct): + The collection of current parameters at the + time of this response. cx_session_parameters (google.protobuf.struct_pb2.Struct): - The collection of current Dialogflow CX agent - session parameters at the time of this response. + The collection of current Dialogflow CX agent session + parameters at the time of this response. Deprecated: Use + ``parameters`` instead. """ detect_intent_response = proto.Field( @@ -310,6 +324,8 @@ class AutomatedAgentReply(proto.Message): ) intent = proto.Field(proto.STRING, number=4, oneof="match",) event = proto.Field(proto.STRING, number=5, oneof="match",) + match_confidence = proto.Field(proto.FLOAT, number=9,) + parameters = proto.Field(proto.MESSAGE, number=10, message=struct_pb2.Struct,) cx_session_parameters = proto.Field( proto.MESSAGE, number=6, message=struct_pb2.Struct, ) diff --git a/google/cloud/dialogflow_v2beta1/types/session.py b/google/cloud/dialogflow_v2beta1/types/session.py index 6423b5774..90fd28ec9 100644 --- a/google/cloud/dialogflow_v2beta1/types/session.py +++ b/google/cloud/dialogflow_v2beta1/types/session.py @@ -777,7 +777,9 @@ class MessageType(proto.Enum): r"""Type of the response message.""" MESSAGE_TYPE_UNSPECIFIED = 0 TRANSCRIPT = 1 + DTMF_DIGITS = 3 END_OF_SINGLE_UTTERANCE = 2 + PARTIAL_DTMF_DIGITS = 4 message_type = proto.Field(proto.ENUM, number=1, enum=MessageType,) transcript = proto.Field(proto.STRING, number=2,) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index dbac450ea..0ae688b8f 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-dialogflow==2.1.2 +google-cloud-dialogflow==2.2.0 diff --git a/setup.py b/setup.py index a4bee257c..107cc68ed 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ name = "dialogflow" description = "Client library for the Dialogflow API" -version = "2.2.0" +version = "2.3.0" release_status = "Development Status :: 5 - Production/Stable" dependencies = [ "google-api-core[grpc] >= 1.22.2, < 2.0.0dev",