diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/CHANGELOG.md b/sdk/cognitivelanguage/azure-ai-language-conversations/CHANGELOG.md index 23fbf95ebfa1..c868ec3fb2e6 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/CHANGELOG.md +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/CHANGELOG.md @@ -1,9 +1,9 @@ # Release History -## 1.1.0b1 (Unreleased) +## 1.1.0b1 (2022-05-26) ### Features Added -* Conversation issue summarization task (Long-running operation) +* Conversation summarization task (Long-running operation) * Conversation PII extraction task (Long-running operation) ### Breaking Changes diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/README.md b/sdk/cognitivelanguage/azure-ai-language-conversations/README.md index 030f39b22854..d4f15bfafda6 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/README.md +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/README.md @@ -4,7 +4,7 @@ Conversational Language Understanding - aka **CLU** for short - is a cloud-based conversational AI service which provides many language understanding capabilities like: - Conversation App: It's used in extracting intents and entities in conversations - Workflow app: Acts like an orchestrator to select the best candidate to analyze conversations to get best response from apps like Qna, Luis, and Conversation App -- Conversational Issue Summarization: Used to summarize conversations in the form of issues, and final resolutions +- Conversational Summarization: Used to summarize conversations in the form of issues, and final resolutions - Conversational PII: Used to extract and redact personally-identifiable info (PII) [Source code][conversationallanguage_client_src] | [Package (PyPI)][conversationallanguage_pypi_package] | [API reference documentation][api_reference_documentation] | [Product documentation][conversationallanguage_docs] | [Samples][conversationallanguage_samples] @@ -200,7 +200,7 @@ if top_intent_object["targetProjectKind"] == "Luis": ``` -### Conversational Issue Summarization +### Conversational Summarization You can use this sample if you need to summarize a conversation in the form of an issue, and final resolution. For example, a dialog from tech support: @@ -267,13 +267,13 @@ with client: task_result = result["tasks"]["items"][0] print("... view task status ...") print("status: {}".format(task_result["status"])) - issue_resolution_result = task_result["results"] - if issue_resolution_result["errors"]: + resolution_result = task_result["results"] + if resolution_result["errors"]: print("... errors occured ...") - for error in issue_resolution_result["errors"]: + for error in resolution_result["errors"]: print(error) else: - conversation_result = issue_resolution_result["conversations"][0] + conversation_result = resolution_result["conversations"][0] if conversation_result["warnings"]: print("... view warnings ...") for warning in conversation_result["warnings"]: diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/_operations/_patch.py b/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/_operations/_patch.py index 0ad201a8c586..2f6e6e1f91c7 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/_operations/_patch.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/_operations/_patch.py @@ -6,9 +6,74 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List +from typing import List, MutableMapping +from async_timeout import Any +JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level +from azure.core.tracing.decorator import distributed_trace + +from ._operations import ConversationAnalysisClientOperationsMixin as ConversationAnalysisClientOperationsMixinGenerated + +class ConversationAnalysisClientOperationsMixin(ConversationAnalysisClientOperationsMixinGenerated): + @distributed_trace + def analyze_conversation( + self, + task: JSON, + **kwargs: Any + ) -> JSON: + """Analyzes the input conversation utterance. + + :param task: A single conversational task to execute. + :type task: JSON + :return: JSON object + :rtype: JSON + :raises: ~azure.core.exceptions.HttpResponseError + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + task = { + "kind": "str", # Required. Enumeration of supported Conversation tasks. Known values are: "Conversation", + "analysisInput": { + "conversationItem": { + "id": "str", # Required. The ID of a conversation item., + "participantId": "str", # Required. The participant ID of a conversation item., + "role": "str", # Optional. The role of the participant. Known values are: "agent", "cutomer", and "generic". + "modality": "string", # Required, Enumeration of supported conversational modalities. Known values are: "text", and "transcript"., + "language": "str", # Optional. The override language of a conversation item in BCP 47 language representation., + "text": "str", # Required. The text input. + } + }, + "parameters": { + "projectName": "str", # Required. The name of the project to use., + "deploymentName": "str", # Required. The name of the deployment to use., + "verbose": "bool", # Optional. If true, the service will return more detailed information in the response., + "isLoggingEnabled": "bool", # Optional. If true, the service will keep the query for further review., + "directTarget": "str", # Optional. The name of a target project to forward the request to. + } + } + + # response body for status code(s): 200 + response.json() == { + "kind": "str", # Required. Enumeration of supported conversational task results. Known values are: "ConversationResult", + "result": { + "query": "str", # Required. The conversation utterance given by the caller., + "detectedLanguage": "str", # Optional. The system detected language for the query in BCP 47 language representation., + "prediction": { + "topIntent": "str", # Required. The intent with the highest score., + "projectKind": "str", # Required. The type of the project. Known values are: "Conversation", and "Orchestration", + } + } + } + """ + task["parameters"]["stringIndexType"] = "UnicodeCodePoint" + return super().analyze_conversation(task, **kwargs) + + +__all__: List[str] = [ + "ConversationAnalysisClientOperationsMixin" +] # Add all objects you want publicly available to users at this package level def patch_sdk(): """Do not remove from this file. diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_patch.py b/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_patch.py index 0ad201a8c586..5b35af922e46 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_patch.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_patch.py @@ -6,9 +6,74 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List +from typing import List, MutableMapping +from async_timeout import Any +JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level +from azure.core.tracing.decorator import distributed_trace + +from ._operations import ConversationAnalysisClientOperationsMixin as ConversationAnalysisClientOperationsMixinGenerated + +class ConversationAnalysisClientOperationsMixin(ConversationAnalysisClientOperationsMixinGenerated): + @distributed_trace + async def analyze_conversation( + self, + task: JSON, + **kwargs: Any + ) -> JSON: + """Analyzes the input conversation utterance. + + :param task: A single conversational task to execute. + :type task: JSON + :return: JSON object + :rtype: JSON + :raises: ~azure.core.exceptions.HttpResponseError + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + task = { + "kind": "str", # Required. Enumeration of supported Conversation tasks. Known values are: "Conversation", + "analysisInput": { + "conversationItem": { + "id": "str", # Required. The ID of a conversation item., + "participantId": "str", # Required. The participant ID of a conversation item., + "role": "str", # Optional. The role of the participant. Known values are: "agent", "cutomer", and "generic". + "modality": "string", # Required, Enumeration of supported conversational modalities. Known values are: "text", and "transcript"., + "language": "str", # Optional. The override language of a conversation item in BCP 47 language representation., + "text": "str", # Required. The text input. + } + }, + "parameters": { + "projectName": "str", # Required. The name of the project to use., + "deploymentName": "str", # Required. The name of the deployment to use., + "verbose": "bool", # Optional. If true, the service will return more detailed information in the response., + "isLoggingEnabled": "bool", # Optional. If true, the service will keep the query for further review., + "directTarget": "str", # Optional. The name of a target project to forward the request to. + } + } + + # response body for status code(s): 200 + response.json() == { + "kind": "str", # Required. Enumeration of supported conversational task results. Known values are: "ConversationResult", + "result": { + "query": "str", # Required. The conversation utterance given by the caller., + "detectedLanguage": "str", # Optional. The system detected language for the query in BCP 47 language representation., + "prediction": { + "topIntent": "str", # Required. The intent with the highest score., + "projectKind": "str", # Required. The type of the project. Known values are: "Conversation", and "Orchestration", + } + } + } + """ + task["parameters"]["stringIndexType"] = "UnicodeCodePoint" + return await super().analyze_conversation(task, **kwargs) + + +__all__: List[str] = [ + "ConversationAnalysisClientOperationsMixin" +] # Add all objects you want publicly available to users at this package level def patch_sdk(): """Do not remove from this file. diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/samples/README.md b/sdk/cognitivelanguage/azure-ai-language-conversations/samples/README.md index 86dda7b99c19..a58ce772274f 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/samples/README.md +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/samples/README.md @@ -5,7 +5,7 @@ languages: products: - azure - azure-cognitive-services - - azure-ai-language-understanding + - azure-language-service urlFragment: conversationslanguageunderstanding-samples --- @@ -25,7 +25,7 @@ These sample programs show common scenarios for the Conversational Language Unde | [sample_analyze_orchestration_app_conv_response.py][sample_analyze_orchestration_app_conv_response] and [sample_analyze_orchestration_app_conv_response_async.py][sample_analyze_orchestration_app_conv_response_async]| Analyze user utterance using an orchestration project, which selects the best candidate from one of your different apps to analyze user query (ex: Qna, Conversation, and Luis). In this case, it uses a conversation project. | | [sample_analyze_orchestration_app_luis_response.py][sample_analyze_orchestration_app_luis_response] and [sample_analyze_orchestration_app_luis_response_async.py][sample_analyze_orchestration_app_luis_response_async]| Analyze user utterance using an orchestration project, which selects the best candidate from one of your different apps to analyze user query (ex: Qna, Conversation, and Luis). In this case, it uses a Luis project. | | [sample_analyze_orchestration_app_qna_response.py][sample_analyze_orchestration_app_qna_response] and [sample_analyze_orchestration_app_qna_response_async.py][sample_analyze_orchestration_app_qna_response_async]| Analyze user utterance using an orchestration project, which selects the best candidate from one of your different apps to analyze user query (ex: Qna, Conversation, and Luis). In this case, it uses a Qna project. | -| [sample_conv_issue_summarization.py][sample_conv_issue_summarization] and [sample_conv_issue_summarization_async.py][sample_conv_issue_summarization_async]| Summarize conversation in the form of issues and resolutions (ex: tech support conversation) | +| [sample_conv_summarization.py][sample_conv_summarization] and [sample_conv_summarization_async.py][sample_conv_summarization_async]| Summarize conversation in the form of issues and resolutions (ex: tech support conversation) | | [sample_conv_pii_transcript_input.py][sample_conv_pii_transcript_input] and [sample_conv_pii_transcript_input_async.py][sample_conv_pii_transcript_input_async]| Extract and redact personally-identifiable info from/in conversations | ## Prerequisites @@ -79,8 +79,8 @@ what you can do with the Azure Conversational Language Understanding client libr [sample_analyze_orchestration_app_qna_response]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_analyze_orchestration_app_qna_response.py [sample_analyze_orchestration_app_qna_response_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_qna_response_async.py -[sample_conv_issue_summarization]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_issue_summarization.py -[sample_conv_issue_summarization_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_issue_summarization_async.py +[sample_conv_summarization]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_summarization.py +[sample_conv_summarization_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_summarization_async.py [sample_conv_pii_transcript_input]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_pii_transcript_input.py [sample_conv_pii_transcript_input_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_pii_transcript_input_async.py diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_issue_summarization_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_summarization_async.py similarity index 89% rename from sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_issue_summarization_async.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_summarization_async.py index 5bed5126d824..3e774ae64eb2 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_issue_summarization_async.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_conv_summarization_async.py @@ -5,7 +5,7 @@ # ------------------------------------ """ -FILE: sample_conv_issue_summarization_async.py +FILE: sample_conv_summarization_async.py DESCRIPTION: This sample demonstrates how to analyze a conversation for issue resolution. @@ -13,7 +13,7 @@ For more info about how to setup a CLU conversation project, see the README. USAGE: - python sample_conv_issue_summarization_async.py + python sample_conv_summarization_async.py Set the environment variables with your own values before running the sample: 1) AZURE_CONVERSATIONS_ENDPOINT - endpoint for your CLU resource. @@ -22,7 +22,7 @@ import asyncio -async def sample_conv_issue_summarization_async(): +async def sample_conv_summarization_async(): # [START analyze_conversation_app] # import libraries import os @@ -86,13 +86,13 @@ async def sample_conv_issue_summarization_async(): task_result = result["tasks"]["items"][0] print("... view task status ...") print("status: {}".format(task_result["status"])) - issue_resolution_result = task_result["results"] - if issue_resolution_result["errors"]: + resolution_result = task_result["results"] + if resolution_result["errors"]: print("... errors occured ...") - for error in issue_resolution_result["errors"]: + for error in resolution_result["errors"]: print(error) else: - conversation_result = issue_resolution_result["conversations"][0] + conversation_result = resolution_result["conversations"][0] if conversation_result["warnings"]: print("... view warnings ...") for warning in conversation_result["warnings"]: @@ -107,7 +107,7 @@ async def sample_conv_issue_summarization_async(): async def main(): - await sample_conv_issue_summarization_async() + await sample_conv_summarization_async() if __name__ == '__main__': loop = asyncio.get_event_loop() diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_issue_summarization.py b/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_summarization.py similarity index 90% rename from sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_issue_summarization.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_summarization.py index 5ece4ae4bd3f..00a1a82a9c91 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_issue_summarization.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_conv_summarization.py @@ -5,7 +5,7 @@ # ------------------------------------ """ -FILE: sample_conv_issue_summarization.py +FILE: sample_conv_summarization.py DESCRIPTION: This sample demonstrates how to analyze a conversation for issue resolution. @@ -13,14 +13,14 @@ For more info about how to setup a CLU conversation project, see the README. USAGE: - python sample_conv_issue_summarization.py + python sample_conv_summarization.py Set the environment variables with your own values before running the sample: 1) AZURE_CONVERSATIONS_ENDPOINT - endpoint for your CLU resource. 2) AZURE_CONVERSATIONS_KEY - API key for your CLU resource. """ -def sample_conv_issue_summarization(): +def sample_conv_summarization(): # [START analyze_conversation_app] # import libraries import os @@ -84,13 +84,13 @@ def sample_conv_issue_summarization(): task_result = result["tasks"]["items"][0] print("... view task status ...") print("status: {}".format(task_result["status"])) - issue_resolution_result = task_result["results"] - if issue_resolution_result["errors"]: + resolution_result = task_result["results"] + if resolution_result["errors"]: print("... errors occured ...") - for error in issue_resolution_result["errors"]: + for error in resolution_result["errors"]: print(error) else: - conversation_result = issue_resolution_result["conversations"][0] + conversation_result = resolution_result["conversations"][0] if conversation_result["warnings"]: print("... view warnings ...") for warning in conversation_result["warnings"]: @@ -105,4 +105,4 @@ def sample_conv_issue_summarization(): if __name__ == '__main__': - sample_conv_issue_summarization() + sample_conv_summarization() diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/swagger/README.md b/sdk/cognitivelanguage/azure-ai-language-conversations/swagger/README.md index fe4811dfec5f..3a8522f812bf 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/swagger/README.md +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/swagger/README.md @@ -20,7 +20,7 @@ autorest ### Settings ```yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d1716d13b0814a9d0785eda9a74529a315212f53/specification/cognitiveservices/data-plane/Language/preview/2022-05-15-preview/analyzeconversations.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/e7f37e4e43b1d12fd1988fda3ed39624c4b23303/specification/cognitiveservices/data-plane/Language/preview/2022-05-15-preview/analyzeconversations.json output-folder: ../azure/ai/language/conversations namespace: azure.ai.language.conversations package-name: azure-ai-language-conversations diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_pii_transcript_input_async.test_conversational_pii.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_pii_transcript_input_async.test_conversational_pii.yaml index 5dda05536eef..34719acaeaec 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_pii_transcript_input_async.test_conversational_pii.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_pii_transcript_input_async.test_conversational_pii.yaml @@ -20,37 +20,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview response: body: string: '' headers: - apim-request-id: ca1622da-8497-4937-a30d-98f525ee2939 + apim-request-id: 2043c8d4-5402-45d5-ab9c-39463afad491 content-length: '0' - date: Mon, 23 May 2022 20:36:22 GMT - operation-location: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/983d5878-0674-461d-a2d5-d66449a1d398?api-version=2022-05-15-preview - server: istio-envoy + date: Thu, 26 May 2022 16:35:24 GMT + operation-location: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/f58961d5-ea77-42aa-b32e-c8a375c9d462?api-version=2022-05-15-preview strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '126' - x-http2-stream-id: '3' + x-envoy-upstream-service-time: '1491' status: code: 202 message: Accepted - url: https://clubuildppe.ppe.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview + url: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview - request: body: null headers: User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: GET - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/983d5878-0674-461d-a2d5-d66449a1d398?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/f58961d5-ea77-42aa-b32e-c8a375c9d462?api-version=2022-05-15-preview response: body: - string: '{"jobId":"983d5878-0674-461d-a2d5-d66449a1d398","lastUpdatedDateTime":"2022-05-23T20:36:23Z","createdDateTime":"2022-05-23T20:36:23Z","expirationDateTime":"2022-05-24T20:36:23Z","status":"succeeded","errors":[],"displayName":"Analyze - PII in conversation","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"items":[{"kind":"conversationalPIIResults","lastUpdateDateTime":"2022-05-23T20:36:23.7016216Z","status":"succeeded","results":{"conversations":[{"id":"1","conversationItems":[{"id":"1","redactedContent":{"itn":"It + string: '{"jobId":"f58961d5-ea77-42aa-b32e-c8a375c9d462","lastUpdatedDateTime":"2022-05-26T16:35:26Z","createdDateTime":"2022-05-26T16:35:24Z","expirationDateTime":"2022-05-27T16:35:24Z","status":"succeeded","errors":[],"displayName":"Analyze + PII in conversation","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"items":[{"kind":"conversationalPIIResults","lastUpdateDateTime":"2022-05-26T16:35:26.0411198Z","status":"succeeded","results":{"conversations":[{"id":"1","conversationItems":[{"id":"1","redactedContent":{"itn":"It is **** do*","lexical":"It is **** do*","maskedItn":"It is **** do*","text":"It is **** ***."},"entities":[{"text":"john","category":"Name","offset":6,"length":4,"confidenceScore":0.57},{"text":"e","category":"Name","offset":13,"length":1,"confidenceScore":0.53}]},{"id":"2","redactedContent":{"itn":"yes ********* is my phone","lexical":"yes ********************************************* @@ -61,17 +59,15 @@ interactions: is my email","text":"*************** is my email"},"entities":[{"text":"j dot doe at yahoo dot com","category":"Email","offset":0,"length":26,"confidenceScore":0.78}]}],"warnings":[]}],"errors":[],"modelVersion":"2022-05-15-preview"}}]}}' headers: - apim-request-id: 78958ee7-31c5-4337-8983-738f308d1738 + apim-request-id: 48938f64-222b-498c-a3c4-2dac68f37b09 content-length: '1528' content-type: application/json; charset=utf-8 - date: Mon, 23 May 2022 20:36:54 GMT - server: istio-envoy + date: Thu, 26 May 2022 16:35:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '90' - x-http2-stream-id: '3' + x-envoy-upstream-service-time: '109' status: code: 200 message: OK - url: https://clubuildppe.ppe.cognitiveservices.azure.com/language/analyze-conversations/jobs/983d5878-0674-461d-a2d5-d66449a1d398?api-version=2022-05-15-preview + url: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/f58961d5-ea77-42aa-b32e-c8a375c9d462?api-version=2022-05-15-preview version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_issue_summarization_async.test_conversational_issue_summarization.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_summarization_async.test_conversational_summarization.yaml similarity index 58% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_issue_summarization_async.test_conversational_issue_summarization.yaml rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_summarization_async.test_conversational_summarization.yaml index fbcb367253db..c78224c4123e 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_issue_summarization_async.test_conversational_issue_summarization.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conv_summarization_async.test_conversational_summarization.yaml @@ -17,52 +17,48 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview response: body: string: '' headers: - apim-request-id: c0f8fc8b-2a9f-42a1-b9b9-622d57bf52ac + apim-request-id: 38d30fe6-81b5-4e43-8462-5fafc2f6a876 content-length: '0' - date: Mon, 23 May 2022 20:35:50 GMT - operation-location: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/f4e56abc-cc74-4f34-b0fe-80828217bf06?api-version=2022-05-15-preview - server: istio-envoy + date: Thu, 26 May 2022 16:35:55 GMT + operation-location: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/7b8d892d-ea45-445a-b7ea-35972343be25?api-version=2022-05-15-preview strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '101' - x-http2-stream-id: '3' + x-envoy-upstream-service-time: '323' status: code: 202 message: Accepted - url: https://clubuildppe.ppe.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview + url: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview - request: body: null headers: User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: GET - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/f4e56abc-cc74-4f34-b0fe-80828217bf06?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/7b8d892d-ea45-445a-b7ea-35972343be25?api-version=2022-05-15-preview response: body: - string: '{"jobId":"f4e56abc-cc74-4f34-b0fe-80828217bf06","lastUpdatedDateTime":"2022-05-23T20:35:52Z","createdDateTime":"2022-05-23T20:35:50Z","expirationDateTime":"2022-05-24T20:35:50Z","status":"succeeded","errors":[],"displayName":"Analyze + string: '{"jobId":"7b8d892d-ea45-445a-b7ea-35972343be25","lastUpdatedDateTime":"2022-05-26T16:36:00Z","createdDateTime":"2022-05-26T16:35:55Z","expirationDateTime":"2022-05-27T16:35:55Z","status":"succeeded","errors":[],"displayName":"Analyze conversations from xxx","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"items":[{"kind":"conversationalSummarizationResults","taskName":"analyze - 1","lastUpdateDateTime":"2022-05-23T20:35:52.9121255Z","status":"succeeded","results":{"conversations":[{"id":"conversation1","summaries":[{"aspect":"issue","text":"Customer + 1","lastUpdateDateTime":"2022-05-26T16:36:00.1781438Z","status":"succeeded","results":{"conversations":[{"id":"conversation1","summaries":[{"aspect":"issue","text":"Customer wants to upgrade Office"},{"aspect":"resolution","text":"Asked for the error message | Asked for help to upgrade Office"}],"warnings":[]}],"errors":[],"modelVersion":"2022-05-15-preview"}}]}}' headers: - apim-request-id: d18bde1a-4791-40b9-9466-4ce0241ecdc9 + apim-request-id: 051acb14-f10e-4b6f-b619-7ee005ff8da6 content-length: '756' content-type: application/json; charset=utf-8 - date: Mon, 23 May 2022 20:36:21 GMT - server: istio-envoy + date: Thu, 26 May 2022 16:36:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '171' - x-http2-stream-id: '3' + x-envoy-upstream-service-time: '39' status: code: 200 message: OK - url: https://clubuildppe.ppe.cognitiveservices.azure.com/language/analyze-conversations/jobs/f4e56abc-cc74-4f34-b0fe-80828217bf06?api-version=2022-05-15-preview + url: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/7b8d892d-ea45-445a-b7ea-35972343be25?api-version=2022-05-15-preview version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conversation_app_async.test_conversation_app.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conversation_app_async.test_conversation_app.yaml index 7bf5efcf837e..e097b0fce0d2 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conversation_app_async.test_conversation_app.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conversation_app_async.test_conversation_app.yaml @@ -3,36 +3,37 @@ interactions: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "Send an email to Carol about the tomorrow''s demo"}, "isLoggingEnabled": false}, "parameters": - {"projectName": "conv_test", "deploymentName": "dep_test", "verbose": true}}' + {"projectName": "CluScriptDeployed1", "deploymentName": "dep_test", "verbose": + true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json Content-Length: - - '318' + - '364' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol - about the tomorrow''s demo","prediction":{"topIntent":"Read","projectKind":"Conversation","intents":[{"category":"Read","confidenceScore":0.53281987},{"category":"Send","confidenceScore":0.2706726},{"category":"Setup","confidenceScore":0.12964208},{"category":"Find","confidenceScore":0.056024347},{"category":"Set","confidenceScore":0.006720359},{"category":"Call","confidenceScore":0.0032539133},{"category":"None","confidenceScore":0.0005657527},{"category":"Open","confidenceScore":0.00024706984},{"category":"Play","confidenceScore":5.4002798E-05}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-24","value":"2022-05-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]},{"category":"Contact","text":"demo","offset":44,"length":4,"confidenceScore":1}]}}}' + about the tomorrow''s demo","prediction":{"topIntent":"Setup","projectKind":"Conversation","intents":[{"category":"Setup","confidenceScore":0.6254007},{"category":"Play","confidenceScore":0.20336723},{"category":"Send","confidenceScore":0.13618475},{"category":"Read","confidenceScore":0.01904324},{"category":"Call","confidenceScore":0.00859508},{"category":"Set","confidenceScore":0.0033787973},{"category":"Find","confidenceScore":0.0028723886},{"category":"Open","confidenceScore":0.0010411387},{"category":"None","confidenceScore":0.00011662581}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-27","value":"2022-05-27"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}' headers: - apim-request-id: 87c81687-d6d1-4239-8913-72d34ea763c2 + apim-request-id: 2616eab4-be67-4018-a318-9c80b01ac2f6 cache-control: no-store, proxy-revalidate, no-cache, max-age=0, private content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.Language.ConversationalLanguageUnderstanding.Prediction=1 - date: Mon, 23 May 2022 20:27:43 GMT + date: Thu, 26 May 2022 16:36:26 GMT pragma: no-cache - request-id: 87c81687-d6d1-4239-8913-72d34ea763c2 + request-id: 2616eab4-be67-4018-a318-9c80b01ac2f6 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '77' + x-envoy-upstream-service-time: '116' status: code: 200 message: OK - url: https://language-dev-frontend-westus2-qna.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview + url: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml index 9988b6f2beea..518f2ac11098 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml @@ -3,37 +3,38 @@ interactions: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "Send an email to Carol about the tomorrow''s demo"}, "isLoggingEnabled": false}, "parameters": - {"projectName": "orch_test", "deploymentName": "dep_test", "verbose": true}}' + {"projectName": "OrchScriptDeployed1", "deploymentName": "dep_test", "verbose": + true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json Content-Length: - - '327' + - '365' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"EmailIntent","projectKind":"Orchestration","intents":{"EmailIntent":{"confidenceScore":0.7871714,"targetProjectKind":"Conversation","result":{"query":"Send - an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"Read","projectKind":"Conversation","intents":[{"category":"Read","confidenceScore":0.53281987},{"category":"Send","confidenceScore":0.2706726},{"category":"Setup","confidenceScore":0.12964208},{"category":"Find","confidenceScore":0.056024347},{"category":"Set","confidenceScore":0.006720359},{"category":"Call","confidenceScore":0.0032539133},{"category":"None","confidenceScore":0.0005657527},{"category":"Open","confidenceScore":0.00024706984},{"category":"Play","confidenceScore":5.4002798E-05}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-24","value":"2022-05-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]},{"category":"Contact","text":"demo","offset":44,"length":4,"confidenceScore":1}]}}},"RestaurantIntent":{"confidenceScore":0.6524802,"targetProjectKind":"Luis"},"ChitChat-QnA":{"confidenceScore":0.65022516,"targetProjectKind":"QuestionAnswering"},"None":{"confidenceScore":0.15003002,"targetProjectKind":"NonLinked"}}}}}' + an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"Setup","projectKind":"Conversation","intents":[{"category":"Setup","confidenceScore":0.6254007},{"category":"Play","confidenceScore":0.20336723},{"category":"Send","confidenceScore":0.13618475},{"category":"Read","confidenceScore":0.01904324},{"category":"Call","confidenceScore":0.00859508},{"category":"Set","confidenceScore":0.0033787973},{"category":"Find","confidenceScore":0.0028723886},{"category":"Open","confidenceScore":0.0010411387},{"category":"None","confidenceScore":0.00011662581}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-27","value":"2022-05-27"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}},"RestaurantIntent":{"confidenceScore":0.6350032,"targetProjectKind":"Luis"},"ChitChat-QnA":{"confidenceScore":0.6044451,"targetProjectKind":"QuestionAnswering"},"None":{"confidenceScore":0.15003002,"targetProjectKind":"NonLinked"}}}}}' headers: - apim-request-id: a0c09fd7-b9f1-4214-aaa9-c78c5e58d9e2 + apim-request-id: 5bca436c-9e59-4d9b-ad7e-fd84953afeba cache-control: no-store, proxy-revalidate, no-cache, max-age=0, private content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 - date: Mon, 23 May 2022 20:27:45 GMT + date: Thu, 26 May 2022 16:36:27 GMT pragma: no-cache - request-id: a0c09fd7-b9f1-4214-aaa9-c78c5e58d9e2 + request-id: 5bca436c-9e59-4d9b-ad7e-fd84953afeba strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '115' + x-envoy-upstream-service-time: '160' status: code: 200 message: OK - url: https://language-dev-frontend-westus2-qna.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview + url: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml index 5ccb1a2bda73..e0dc9bf38ea2 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml @@ -3,39 +3,40 @@ interactions: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "Reserve a table for 2 at the Italian restaurant"}, "isLoggingEnabled": false}, "parameters": - {"projectName": "orch_test", "deploymentName": "dep_test", "verbose": true}}' + {"projectName": "OrchScriptDeployed1", "deploymentName": "dep_test", "verbose": + true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json Content-Length: - - '326' + - '364' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: string: '{"kind":"ConversationResult","result":{"query":"Reserve a table for - 2 at the Italian restaurant","prediction":{"topIntent":"RestaurantIntent","projectKind":"Orchestration","intents":{"RestaurantIntent":{"confidenceScore":0.94069785,"targetProjectKind":"Luis","result":{"query":"Reserve - a table for 2 at the Italian restaurant","prediction":{"topIntent":"Reserve","intents":{"Reserve":{"score":0.9980438},"Reject":{"score":0.0063399523},"FindReservationEntry":{"score":0.005012738},"Confirm":{"score":0.0044919797},"DeleteReservation":{"score":0.002177323},"FindReservationWhen":{"score":0.0016674146},"FindReservationWhere":{"score":0.00022145486},"None":{"score":0.00016065584},"ChangeReservation":{"score":9.196726E-05}},"entities":{"NumberPeople":["2"],"Cuisine":["Italian"],"$instance":{"NumberPeople":[{"type":"NumberPeople","text":"2","startIndex":20,"length":1,"score":0.99470425,"modelTypeId":1,"modelType":"Entity + 2 at the Italian restaurant","prediction":{"topIntent":"RestaurantIntent","projectKind":"Orchestration","intents":{"RestaurantIntent":{"confidenceScore":0.940697,"targetProjectKind":"Luis","result":{"query":"Reserve + a table for 2 at the Italian restaurant","prediction":{"topIntent":"Reserve","intents":{"Reserve":{"score":0.9980588},"Reject":{"score":0.0063590785},"FindReservationEntry":{"score":0.005097165},"Confirm":{"score":0.0044939914},"DeleteReservation":{"score":0.0022345681},"FindReservationWhen":{"score":0.0016679561},"FindReservationWhere":{"score":0.00022148465},"None":{"score":0.00016065614},"ChangeReservation":{"score":9.267964E-05}},"entities":{"NumberPeople":["2"],"Cuisine":["Italian"],"$instance":{"NumberPeople":[{"type":"NumberPeople","text":"2","startIndex":20,"length":1,"score":0.99470425,"modelTypeId":1,"modelType":"Entity Extractor","recognitionSources":["model"]}],"Cuisine":[{"type":"Cuisine","text":"Italian","startIndex":29,"length":7,"score":0.9961355,"modelTypeId":1,"modelType":"Entity - Extractor","recognitionSources":["model"]}]}}}}},"ChitChat-QnA":{"confidenceScore":0.6333038,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.26476184,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.24316412,"targetProjectKind":"NonLinked"}}}}}' + Extractor","recognitionSources":["model"]}]}}}}},"ChitChat-QnA":{"confidenceScore":0.61326313,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.2647618,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.24316412,"targetProjectKind":"NonLinked"}}}}}' headers: - apim-request-id: 9c567b9b-508e-49e6-9a5c-16034fa080a2 + apim-request-id: 1a014528-f008-45e2-82c0-a5e3fdf0ef50 cache-control: no-store, proxy-revalidate, no-cache, max-age=0, private content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 - date: Mon, 23 May 2022 20:27:46 GMT + date: Thu, 26 May 2022 16:36:27 GMT pragma: no-cache - request-id: 9c567b9b-508e-49e6-9a5c-16034fa080a2 + request-id: 1a014528-f008-45e2-82c0-a5e3fdf0ef50 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '143' status: code: 200 message: OK - url: https://language-dev-frontend-westus2-qna.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview + url: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml index d9661bf1a075..71d9a4dda00b 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml @@ -2,37 +2,46 @@ interactions: - request: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "How are you?"}, - "isLoggingEnabled": false}, "parameters": {"projectName": "orch_test", "deploymentName": - "dep_test", "verbose": true}}' + "isLoggingEnabled": false}, "parameters": {"projectName": "OrchScriptDeployed1", + "deploymentName": "dep_test", "verbose": true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json Content-Length: - - '291' + - '329' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: - string: '{"kind":"ConversationResult","result":{"query":"How are you?","prediction":{"topIntent":"ChitChat-QnA","projectKind":"Orchestration","intents":{"ChitChat-QnA":{"confidenceScore":0.98765355,"targetProjectKind":"QuestionAnswering","result":{"answers":[{"questions":[],"answer":"No - answer found","confidenceScore":0.0,"id":-1,"metadata":{}}]}},"RestaurantIntent":{"confidenceScore":0.52488893,"targetProjectKind":"Luis"},"EmailIntent":{"confidenceScore":0.20137206,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.16740133,"targetProjectKind":"NonLinked"}}}}}' + string: '{"kind":"ConversationResult","result":{"query":"How are you?","prediction":{"topIntent":"ChitChat-QnA","projectKind":"Orchestration","intents":{"ChitChat-QnA":{"confidenceScore":1,"targetProjectKind":"QuestionAnswering","result":{"answers":[{"questions":["How''d + you sleep last night?","Are you doing good?","Are you feeling well?","How + are you doing?","How is the day treating you?","Are you feeling OK?","How + are you?","How''s it hangin?","How''s tricks?","Are you doing OK?","Hey, how + are you?","How are you feeling?","How are ya?","How are things?","How are + you going?","How art thou?","Greetings, Bot. How are you doing?","Are you + feeling good?","Are you doing well?","How are things going?","How''s it going?","Say, + how are you doing?","How''s the day treating you?","How''s life?","How''s + life treating you?","How are you today?","Yo, how are you?","How you doing?","How + you doing bot?","How ya doing?","How is the day treating ya?","How''s it hanging?"],"answer":"I''m + doing great, thanks for asking!","confidenceScore":1.0,"id":72,"source":"qna_chitchat_friendly.tsv","metadata":{"editorial":"chitchat"},"dialog":{"isContextOnly":false,"prompts":[]}}]}},"RestaurantIntent":{"confidenceScore":0.52488816,"targetProjectKind":"Luis"},"EmailIntent":{"confidenceScore":0.20137204,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.16740131,"targetProjectKind":"NonLinked"}}}}}' headers: - apim-request-id: e9777a32-3762-4b97-9319-592fb04d95f1 + apim-request-id: 9440c368-02fc-4f19-b1b5-c1b37459bf01 cache-control: no-store, proxy-revalidate, no-cache, max-age=0, private content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 - date: Mon, 23 May 2022 20:27:47 GMT + date: Thu, 26 May 2022 16:36:29 GMT pragma: no-cache - request-id: e9777a32-3762-4b97-9319-592fb04d95f1 + request-id: 9440c368-02fc-4f19-b1b5-c1b37459bf01 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '319' + x-envoy-upstream-service-time: '1224' status: code: 200 message: OK - url: https://language-dev-frontend-westus2-qna.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview + url: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conv_issue_summarization_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conv_summarization_async.py similarity index 95% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conv_issue_summarization_async.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conv_summarization_async.py index 205de8862c75..f854fbfa2582 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conv_issue_summarization_async.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conv_summarization_async.py @@ -14,10 +14,10 @@ from azure.ai.language.conversations.aio import ConversationAnalysisClient -class ConversationalIssueSummarizationAsyncTests(AsyncConversationTest): +class ConversationalSummarizationAsyncTests(AsyncConversationTest): @GlobalConversationAccountPreparer() - async def test_conversational_issue_summarization(self, endpoint, key): + async def test_conversational_summarization(self, endpoint, key): # analyze query client = ConversationAnalysisClient(endpoint, AzureKeyCredential(key)) async with client: diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py index e08232d8e518..ac4ee401e22f 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py @@ -53,9 +53,9 @@ async def test_conversation_app(self, endpoint, key, conv_project_name, conv_dep assert result["result"]["prediction"]["projectKind"] == 'Conversation' # assert - top intent - assert result["result"]["prediction"]["topIntent"] == 'Read' + assert result["result"]["prediction"]["topIntent"] == 'Setup' assert len(result["result"]["prediction"]["intents"]) > 0 - assert result["result"]["prediction"]["intents"][0]["category"] == 'Read' + assert result["result"]["prediction"]["intents"][0]["category"] == 'Setup' assert result["result"]["prediction"]["intents"][0]["confidenceScore"] > 0 # assert - entities diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_conv_response_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_conv_response_async.py index 0c16f63594f9..0436567c47ba 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_conv_response_async.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_conv_response_async.py @@ -58,9 +58,9 @@ async def test_orchestration_app_conv_response(self, endpoint, key, orch_project # assert intent and entities conversation_result = top_intent_object["result"]["prediction"] - assert conversation_result["topIntent"] == 'Read' + assert conversation_result["topIntent"] == 'Setup' assert len(conversation_result["intents"]) > 0 - assert conversation_result["intents"][0]["category"] == 'Read' + assert conversation_result["intents"][0]["category"] == 'Setup' assert conversation_result["intents"][0]["confidenceScore"] > 0 # assert - entities diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_pii_transcript_input.test_conversational_pii.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_pii_transcript_input.test_conversational_pii.yaml index d58fba09e242..42f1746e83ac 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_pii_transcript_input.test_conversational_pii.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_pii_transcript_input.test_conversational_pii.yaml @@ -24,31 +24,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview response: body: string: '' headers: apim-request-id: - - 31186b01-f51c-4ff7-988e-5e69f91e321f + - f0326e90-20a4-4357-a6bf-8fa46c85ee8c content-length: - '0' date: - - Mon, 23 May 2022 20:35:19 GMT + - Thu, 26 May 2022 16:34:15 GMT operation-location: - - https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/e50424e1-e064-4f32-a21f-237a6b321565?api-version=2022-05-15-preview - server: - - istio-envoy + - https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/6cbafec8-80fb-4a3c-bf71-bd5e4205169f?api-version=2022-05-15-preview strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '231' - x-http2-stream-id: - - '3' + - '1430' status: code: 202 message: Accepted @@ -62,13 +58,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: GET - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/e50424e1-e064-4f32-a21f-237a6b321565?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/6cbafec8-80fb-4a3c-bf71-bd5e4205169f?api-version=2022-05-15-preview response: body: - string: '{"jobId":"e50424e1-e064-4f32-a21f-237a6b321565","lastUpdatedDateTime":"2022-05-23T20:35:19Z","createdDateTime":"2022-05-23T20:35:19Z","expirationDateTime":"2022-05-24T20:35:19Z","status":"succeeded","errors":[],"displayName":"Analyze - PII in conversation","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"items":[{"kind":"conversationalPIIResults","lastUpdateDateTime":"2022-05-23T20:35:19.9509273Z","status":"succeeded","results":{"conversations":[{"id":"1","conversationItems":[{"id":"1","redactedContent":{"itn":"It + string: '{"jobId":"6cbafec8-80fb-4a3c-bf71-bd5e4205169f","lastUpdatedDateTime":"2022-05-26T16:34:15Z","createdDateTime":"2022-05-26T16:34:14Z","expirationDateTime":"2022-05-27T16:34:14Z","status":"succeeded","errors":[],"displayName":"Analyze + PII in conversation","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"items":[{"kind":"conversationalPIIResults","lastUpdateDateTime":"2022-05-26T16:34:15.636556Z","status":"succeeded","results":{"conversations":[{"id":"1","conversationItems":[{"id":"1","redactedContent":{"itn":"It is **** do*","lexical":"It is **** do*","maskedItn":"It is **** do*","text":"It is **** ***."},"entities":[{"text":"john","category":"Name","offset":6,"length":4,"confidenceScore":0.57},{"text":"e","category":"Name","offset":13,"length":1,"confidenceScore":0.53}]},{"id":"2","redactedContent":{"itn":"yes ********* is my phone","lexical":"yes ********************************************* @@ -80,23 +76,19 @@ interactions: dot doe at yahoo dot com","category":"Email","offset":0,"length":26,"confidenceScore":0.78}]}],"warnings":[]}],"errors":[],"modelVersion":"2022-05-15-preview"}}]}}' headers: apim-request-id: - - c6f8c6df-adaa-44b9-ba5a-3458cc9d7ddf + - a9cdb99e-c12a-4742-938d-07b1fb6ecf54 content-length: - - '1528' + - '1527' content-type: - application/json; charset=utf-8 date: - - Mon, 23 May 2022 20:35:49 GMT - server: - - istio-envoy + - Thu, 26 May 2022 16:34:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '154' - x-http2-stream-id: - - '3' + - '190' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_issue_summarization.test_conversational_issue_summarization.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_summarization.test_conversational_summarization.yaml similarity index 65% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_issue_summarization.test_conversational_issue_summarization.yaml rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_summarization.test_conversational_summarization.yaml index 41244e8e9734..4b3a4f00c45e 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_issue_summarization.test_conversational_issue_summarization.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conv_summarization.test_conversational_summarization.yaml @@ -21,31 +21,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs?api-version=2022-05-15-preview response: body: string: '' headers: apim-request-id: - - 4e0cbfac-fbbb-4492-adf8-dd7f6c8111ba + - 8a219bab-2e4d-423f-ae5b-eb851f954f28 content-length: - '0' date: - - Mon, 23 May 2022 20:34:40 GMT + - Thu, 26 May 2022 16:34:46 GMT operation-location: - - https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/174e9c27-aab2-4d8c-b584-c561af6efb93?api-version=2022-05-15-preview - server: - - istio-envoy + - https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/9ee38eb3-b839-420b-905a-030fb0671e3a?api-version=2022-05-15-preview strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '235' - x-http2-stream-id: - - '3' + - '513' status: code: 202 message: Accepted @@ -59,35 +55,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: GET - uri: https://test-resource.api.cognitive.microsoft.com/language/analyze-conversations/jobs/174e9c27-aab2-4d8c-b584-c561af6efb93?api-version=2022-05-15-preview + uri: https://clubuildtest.cognitiveservices.azure.com/language/analyze-conversations/jobs/9ee38eb3-b839-420b-905a-030fb0671e3a?api-version=2022-05-15-preview response: body: - string: '{"jobId":"174e9c27-aab2-4d8c-b584-c561af6efb93","lastUpdatedDateTime":"2022-05-23T20:34:43Z","createdDateTime":"2022-05-23T20:34:41Z","expirationDateTime":"2022-05-24T20:34:41Z","status":"succeeded","errors":[],"displayName":"Analyze + string: '{"jobId":"9ee38eb3-b839-420b-905a-030fb0671e3a","lastUpdatedDateTime":"2022-05-26T16:34:51Z","createdDateTime":"2022-05-26T16:34:46Z","expirationDateTime":"2022-05-27T16:34:46Z","status":"succeeded","errors":[],"displayName":"Analyze conversations from xxx","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"items":[{"kind":"conversationalSummarizationResults","taskName":"analyze - 1","lastUpdateDateTime":"2022-05-23T20:34:43.9150918Z","status":"succeeded","results":{"conversations":[{"id":"conversation1","summaries":[{"aspect":"issue","text":"Customer + 1","lastUpdateDateTime":"2022-05-26T16:34:51.352861Z","status":"succeeded","results":{"conversations":[{"id":"conversation1","summaries":[{"aspect":"issue","text":"Customer wants to upgrade Office"},{"aspect":"resolution","text":"Asked for the error message | Asked for help to upgrade Office"}],"warnings":[]}],"errors":[],"modelVersion":"2022-05-15-preview"}}]}}' headers: apim-request-id: - - 1c4c3bf6-25e6-4fe5-84e1-0a5158da6384 + - f94f7ee3-e7a7-485e-ab44-af5f73e9ea16 content-length: - - '756' + - '755' content-type: - application/json; charset=utf-8 date: - - Mon, 23 May 2022 20:35:12 GMT - server: - - istio-envoy + - Thu, 26 May 2022 16:35:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '250' - x-http2-stream-id: - - '3' + - '105' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app.test_conversation_app.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app.test_conversation_app.yaml index 03dbb7baef3e..e97113175b8a 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app.test_conversation_app.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app.test_conversation_app.yaml @@ -3,7 +3,8 @@ interactions: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "Send an email to Carol about the tomorrow''s demo"}, "isLoggingEnabled": false}, "parameters": - {"projectName": "conv_test", "deploymentName": "dep_test", "verbose": true}}' + {"projectName": "CluScriptDeployed1", "deploymentName": "dep_test", "verbose": + true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json @@ -12,20 +13,20 @@ interactions: Connection: - keep-alive Content-Length: - - '318' + - '364' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol - about the tomorrow''s demo","prediction":{"topIntent":"Read","projectKind":"Conversation","intents":[{"category":"Read","confidenceScore":0.53281987},{"category":"Send","confidenceScore":0.2706726},{"category":"Setup","confidenceScore":0.12964208},{"category":"Find","confidenceScore":0.056024347},{"category":"Set","confidenceScore":0.006720359},{"category":"Call","confidenceScore":0.0032539133},{"category":"None","confidenceScore":0.0005657527},{"category":"Open","confidenceScore":0.00024706984},{"category":"Play","confidenceScore":5.4002798E-05}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-24","value":"2022-05-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]},{"category":"Contact","text":"demo","offset":44,"length":4,"confidenceScore":1}]}}}' + about the tomorrow''s demo","prediction":{"topIntent":"Setup","projectKind":"Conversation","intents":[{"category":"Setup","confidenceScore":0.6254007},{"category":"Play","confidenceScore":0.20336723},{"category":"Send","confidenceScore":0.13618475},{"category":"Read","confidenceScore":0.01904324},{"category":"Call","confidenceScore":0.00859508},{"category":"Set","confidenceScore":0.0033787973},{"category":"Find","confidenceScore":0.0028723886},{"category":"Open","confidenceScore":0.0010411387},{"category":"None","confidenceScore":0.00011662581}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-27","value":"2022-05-27"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}' headers: apim-request-id: - - 23b7f2b4-2b54-4013-a58a-7a9bd8a00fa4 + - d9c13a6b-50c3-4a8c-8beb-953c963643be cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -33,11 +34,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.ConversationalLanguageUnderstanding.Prediction=1 date: - - Mon, 23 May 2022 20:27:38 GMT + - Thu, 26 May 2022 16:35:17 GMT pragma: - no-cache request-id: - - 23b7f2b4-2b54-4013-a58a-7a9bd8a00fa4 + - d9c13a6b-50c3-4a8c-8beb-953c963643be strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '90' + - '693' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response.test_orchestration_app_conv_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response.test_orchestration_app_conv_response.yaml index 00c8004caad2..a7e77213f9b2 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response.test_orchestration_app_conv_response.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response.test_orchestration_app_conv_response.yaml @@ -3,7 +3,8 @@ interactions: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "Send an email to Carol about the tomorrow''s demo"}, "isLoggingEnabled": false}, "parameters": - {"projectName": "orch_test", "deploymentName": "dep_test", "verbose": true}}' + {"projectName": "OrchScriptDeployed1", "deploymentName": "dep_test", "verbose": + true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json @@ -12,21 +13,21 @@ interactions: Connection: - keep-alive Content-Length: - - '327' + - '365' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"EmailIntent","projectKind":"Orchestration","intents":{"EmailIntent":{"confidenceScore":0.7871714,"targetProjectKind":"Conversation","result":{"query":"Send - an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"Read","projectKind":"Conversation","intents":[{"category":"Read","confidenceScore":0.53281987},{"category":"Send","confidenceScore":0.2706726},{"category":"Setup","confidenceScore":0.12964208},{"category":"Find","confidenceScore":0.056024347},{"category":"Set","confidenceScore":0.006720359},{"category":"Call","confidenceScore":0.0032539133},{"category":"None","confidenceScore":0.0005657527},{"category":"Open","confidenceScore":0.00024706984},{"category":"Play","confidenceScore":5.4002798E-05}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-24","value":"2022-05-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]},{"category":"Contact","text":"demo","offset":44,"length":4,"confidenceScore":1}]}}},"RestaurantIntent":{"confidenceScore":0.6524802,"targetProjectKind":"Luis"},"ChitChat-QnA":{"confidenceScore":0.65022516,"targetProjectKind":"QuestionAnswering"},"None":{"confidenceScore":0.15003002,"targetProjectKind":"NonLinked"}}}}}' + an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"Setup","projectKind":"Conversation","intents":[{"category":"Setup","confidenceScore":0.6254007},{"category":"Play","confidenceScore":0.20336723},{"category":"Send","confidenceScore":0.13618475},{"category":"Read","confidenceScore":0.01904324},{"category":"Call","confidenceScore":0.00859508},{"category":"Set","confidenceScore":0.0033787973},{"category":"Find","confidenceScore":0.0028723886},{"category":"Open","confidenceScore":0.0010411387},{"category":"None","confidenceScore":0.00011662581}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-05-27","value":"2022-05-27"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}},"RestaurantIntent":{"confidenceScore":0.6350032,"targetProjectKind":"Luis"},"ChitChat-QnA":{"confidenceScore":0.6044451,"targetProjectKind":"QuestionAnswering"},"None":{"confidenceScore":0.15003002,"targetProjectKind":"NonLinked"}}}}}' headers: apim-request-id: - - ed46f002-5977-45bc-bb11-77bef3df28b9 + - f2bbdf3c-4586-43ca-8968-5ab0820cdb65 cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -34,11 +35,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 date: - - Mon, 23 May 2022 20:27:39 GMT + - Thu, 26 May 2022 16:35:20 GMT pragma: - no-cache request-id: - - ed46f002-5977-45bc-bb11-77bef3df28b9 + - f2bbdf3c-4586-43ca-8968-5ab0820cdb65 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '123' + - '1163' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response.test_orchestration_app_luis_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response.test_orchestration_app_luis_response.yaml index ecc4c2641697..45da2f6f6ac7 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response.test_orchestration_app_luis_response.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response.test_orchestration_app_luis_response.yaml @@ -3,7 +3,8 @@ interactions: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "Reserve a table for 2 at the Italian restaurant"}, "isLoggingEnabled": false}, "parameters": - {"projectName": "orch_test", "deploymentName": "dep_test", "verbose": true}}' + {"projectName": "OrchScriptDeployed1", "deploymentName": "dep_test", "verbose": + true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json @@ -12,23 +13,23 @@ interactions: Connection: - keep-alive Content-Length: - - '326' + - '364' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: string: '{"kind":"ConversationResult","result":{"query":"Reserve a table for - 2 at the Italian restaurant","prediction":{"topIntent":"RestaurantIntent","projectKind":"Orchestration","intents":{"RestaurantIntent":{"confidenceScore":0.94069785,"targetProjectKind":"Luis","result":{"query":"Reserve - a table for 2 at the Italian restaurant","prediction":{"topIntent":"Reserve","intents":{"Reserve":{"score":0.9980438},"Reject":{"score":0.0063399523},"FindReservationEntry":{"score":0.005012738},"Confirm":{"score":0.0044919797},"DeleteReservation":{"score":0.002177323},"FindReservationWhen":{"score":0.0016674146},"FindReservationWhere":{"score":0.00022145486},"None":{"score":0.00016065584},"ChangeReservation":{"score":9.196726E-05}},"entities":{"NumberPeople":["2"],"Cuisine":["Italian"],"$instance":{"NumberPeople":[{"type":"NumberPeople","text":"2","startIndex":20,"length":1,"score":0.99470425,"modelTypeId":1,"modelType":"Entity + 2 at the Italian restaurant","prediction":{"topIntent":"RestaurantIntent","projectKind":"Orchestration","intents":{"RestaurantIntent":{"confidenceScore":0.940697,"targetProjectKind":"Luis","result":{"query":"Reserve + a table for 2 at the Italian restaurant","prediction":{"topIntent":"Reserve","intents":{"Reserve":{"score":0.9980588},"Reject":{"score":0.0063590785},"FindReservationEntry":{"score":0.005097165},"Confirm":{"score":0.0044939914},"DeleteReservation":{"score":0.0022345681},"FindReservationWhen":{"score":0.0016679561},"FindReservationWhere":{"score":0.00022148465},"None":{"score":0.00016065614},"ChangeReservation":{"score":9.267964E-05}},"entities":{"NumberPeople":["2"],"Cuisine":["Italian"],"$instance":{"NumberPeople":[{"type":"NumberPeople","text":"2","startIndex":20,"length":1,"score":0.99470425,"modelTypeId":1,"modelType":"Entity Extractor","recognitionSources":["model"]}],"Cuisine":[{"type":"Cuisine","text":"Italian","startIndex":29,"length":7,"score":0.9961355,"modelTypeId":1,"modelType":"Entity - Extractor","recognitionSources":["model"]}]}}}}},"ChitChat-QnA":{"confidenceScore":0.6333038,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.26476184,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.24316412,"targetProjectKind":"NonLinked"}}}}}' + Extractor","recognitionSources":["model"]}]}}}}},"ChitChat-QnA":{"confidenceScore":0.61326313,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.2647618,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.24316412,"targetProjectKind":"NonLinked"}}}}}' headers: apim-request-id: - - 3374c2c8-cdcf-44f3-a824-a52a6e1458d3 + - 3ca95ad7-541c-4ec6-8e1e-995d692b449d cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -36,11 +37,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 date: - - Mon, 23 May 2022 20:27:41 GMT + - Thu, 26 May 2022 16:35:19 GMT pragma: - no-cache request-id: - - 3374c2c8-cdcf-44f3-a824-a52a6e1458d3 + - 3ca95ad7-541c-4ec6-8e1e-995d692b449d strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -48,7 +49,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '70' + - '206' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_qna_response.test_orchestration_app_qna_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_qna_response.test_orchestration_app_qna_response.yaml index fdc1dd06d7a3..6edd69dcebd7 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_qna_response.test_orchestration_app_qna_response.yaml +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_qna_response.test_orchestration_app_qna_response.yaml @@ -2,8 +2,8 @@ interactions: - request: body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId": "1", "id": "1", "modality": "text", "language": "en", "text": "How are you?"}, - "isLoggingEnabled": false}, "parameters": {"projectName": "orch_test", "deploymentName": - "dep_test", "verbose": true}}' + "isLoggingEnabled": false}, "parameters": {"projectName": "OrchScriptDeployed1", + "deploymentName": "dep_test", "verbose": true, "stringIndexType": "UnicodeCodePoint"}}' headers: Accept: - application/json @@ -12,20 +12,29 @@ interactions: Connection: - keep-alive Content-Length: - - '291' + - '329' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0.0b4 Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.1.0b1 Python/3.10.1 (Windows-10-10.0.19044-SP0) method: POST - uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-15-preview + uri: https://languagesdktest.cognitiveservices.azure.com/language/:analyze-conversations?api-version=2022-05-15-preview response: body: - string: '{"kind":"ConversationResult","result":{"query":"How are you?","prediction":{"topIntent":"ChitChat-QnA","projectKind":"Orchestration","intents":{"ChitChat-QnA":{"confidenceScore":0.98765355,"targetProjectKind":"QuestionAnswering","result":{"answers":[{"questions":[],"answer":"No - answer found","confidenceScore":0.0,"id":-1,"metadata":{}}]}},"RestaurantIntent":{"confidenceScore":0.52488893,"targetProjectKind":"Luis"},"EmailIntent":{"confidenceScore":0.20137206,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.16740133,"targetProjectKind":"NonLinked"}}}}}' + string: '{"kind":"ConversationResult","result":{"query":"How are you?","prediction":{"topIntent":"ChitChat-QnA","projectKind":"Orchestration","intents":{"ChitChat-QnA":{"confidenceScore":1,"targetProjectKind":"QuestionAnswering","result":{"answers":[{"questions":["How''d + you sleep last night?","Are you doing good?","Are you feeling well?","How + are you doing?","How is the day treating you?","Are you feeling OK?","How + are you?","How''s it hangin?","How''s tricks?","Are you doing OK?","Hey, how + are you?","How are you feeling?","How are ya?","How are things?","How are + you going?","How art thou?","Greetings, Bot. How are you doing?","Are you + feeling good?","Are you doing well?","How are things going?","How''s it going?","Say, + how are you doing?","How''s the day treating you?","How''s life?","How''s + life treating you?","How are you today?","Yo, how are you?","How you doing?","How + you doing bot?","How ya doing?","How is the day treating ya?","How''s it hanging?"],"answer":"I''m + doing great, thanks for asking!","confidenceScore":1.0,"id":72,"source":"qna_chitchat_friendly.tsv","metadata":{"editorial":"chitchat"},"dialog":{"isContextOnly":false,"prompts":[]}}]}},"RestaurantIntent":{"confidenceScore":0.52488816,"targetProjectKind":"Luis"},"EmailIntent":{"confidenceScore":0.20137204,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.16740131,"targetProjectKind":"NonLinked"}}}}}' headers: apim-request-id: - - 6fa92a2f-7ee2-438e-baf8-7ad562e24d75 + - 2ba07287-7762-4c73-ab0b-02b0dbf49eca cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -33,11 +42,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 date: - - Mon, 23 May 2022 20:27:42 GMT + - Thu, 26 May 2022 16:35:22 GMT pragma: - no-cache request-id: - - 6fa92a2f-7ee2-438e-baf8-7ad562e24d75 + - 2ba07287-7762-4c73-ab0b-02b0dbf49eca strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '306' + - '2056' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conv_issue_summarization.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conv_summarization.py similarity index 96% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conv_issue_summarization.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conv_summarization.py index d6aa0dd5733d..90e5cc7994d2 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conv_issue_summarization.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conv_summarization.py @@ -14,10 +14,10 @@ ) from azure.ai.language.conversations import ConversationAnalysisClient -class ConversationalIssueSummarizationTests(ConversationTest): +class ConversationalSummarizationTests(ConversationTest): @GlobalConversationAccountPreparer() - def test_conversational_issue_summarization(self, endpoint, key): + def test_conversational_summarization(self, endpoint, key): # analyze query client = ConversationAnalysisClient(endpoint, AzureKeyCredential(key)) with client: diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py index 22c0f564c0f6..296734f806bb 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py @@ -53,9 +53,9 @@ def test_conversation_app(self, endpoint, key, conv_project_name, conv_deploymen assert result["result"]["prediction"]["projectKind"] == 'Conversation' # assert - top intent - assert result["result"]["prediction"]["topIntent"] == 'Read' + assert result["result"]["prediction"]["topIntent"] == 'Setup' assert len(result["result"]["prediction"]["intents"]) > 0 - assert result["result"]["prediction"]["intents"][0]["category"] == 'Read' + assert result["result"]["prediction"]["intents"][0]["category"] == 'Setup' assert result["result"]["prediction"]["intents"][0]["confidenceScore"] > 0 # assert - entities diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_conv_response.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_conv_response.py index a298043f839d..ba4998423b03 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_conv_response.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_conv_response.py @@ -62,9 +62,9 @@ def test_orchestration_app_conv_response(self, endpoint, key, orch_project_name, # assert intent and entities conversation_result = top_intent_object["result"]["prediction"] - assert conversation_result["topIntent"] == 'Read' + assert conversation_result["topIntent"] == 'Setup' assert len(conversation_result["intents"]) > 0 - assert conversation_result["intents"][0]["category"] == 'Read' + assert conversation_result["intents"][0]["category"] == 'Setup' assert conversation_result["intents"][0]["confidenceScore"] > 0 # assert - entities