diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4164f333c797..0a642b0daf99 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -155,6 +155,9 @@ # PRLabel: %Cognitive - Translator /sdk/translation/ @kristapratico @mohamedshabanofficial +# PRLabel: %Cognitive - Language +/sdk/cognitivelanguage/ @kristapratico @mohamedshabanofficial + # PRLabel: %Tables /sdk/tables/ @annatisch @YalinLi0312 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/README.md b/sdk/cognitivelanguage/azure-ai-language-conversations/README.md index fe7445d33d2c..9b319f33f626 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/README.md +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/README.md @@ -322,6 +322,10 @@ result = client.analyze_conversation(..., logging_enable=True) ## Next steps +### More sample code + +See the [Sample README][conversationallanguage_samples] for several code snippets illustrating common patterns used in the CLU Python API. + ## Contributing See the [CONTRIBUTING.md][contributing] for details on building, testing, and contributing to this library. diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/setup.py b/sdk/cognitivelanguage/azure-ai-language-conversations/setup.py index ae59a6cf21d3..d031366f3bc8 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/setup.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/setup.py @@ -74,7 +74,7 @@ }, install_requires=[ "azure-core<2.0.0,>=1.24.0", - "isodate>=0.6.0", + "isodate<1.0.0,>=0.6.1", ], project_urls={ 'Bug Reports': 'https://github.com/Azure/azure-sdk-for-python/issues', 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 deleted file mode 100644 index 4874b334bc81..000000000000 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_conversation_app_async.test_conversation_app.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - 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}}' - headers: - Accept: - - application/json - Content-Length: - - '325' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-language-conversations/1.0GA 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-01 - response: - body: - string: '{"kind":"ConversationResult","result":{"query":"Send 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-06-01","value":"2022-06-01"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}' - headers: - apim-request-id: c4b5f753-449c-4f24-9dab-626111ec5938 - 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: Tue, 31 May 2022 14:25:20 GMT - pragma: no-cache - request-id: c4b5f753-449c-4f24-9dab-626111ec5938 - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '132' - status: - code: 200 - message: OK - url: https://languagesdktest.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 -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 deleted file mode 100644 index 1390b1cfad23..000000000000 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml +++ /dev/null @@ -1,39 +0,0 @@ -interactions: -- request: - 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}}' - headers: - Accept: - - application/json - Content-Length: - - '326' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-language-conversations/1.0GA 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-01 - 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":"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-06-01","value":"2022-06-01"}],"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: 60d87aab-7f5b-4656-8a87-49bba76fa15d - 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: Tue, 31 May 2022 14:25:20 GMT - pragma: no-cache - request-id: 60d87aab-7f5b-4656-8a87-49bba76fa15d - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '150' - status: - code: 200 - message: OK - url: https://languagesdktest.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 -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 deleted file mode 100644 index e222d37c933c..000000000000 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml +++ /dev/null @@ -1,41 +0,0 @@ -interactions: -- request: - 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}}' - headers: - Accept: - - application/json - Content-Length: - - '325' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-language-conversations/1.0GA 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-01 - 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.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.61326313,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.2647618,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.24316412,"targetProjectKind":"NonLinked"}}}}}' - headers: - apim-request-id: f9a193fd-0f33-496a-9106-574b8a61cd29 - 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: Tue, 31 May 2022 14:25:20 GMT - pragma: no-cache - request-id: f9a193fd-0f33-496a-9106-574b8a61cd29 - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' - status: - code: 200 - message: OK - url: https://languagesdktest.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 -version: 1 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 c5bbedb5e267..7105e96d76ed 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 @@ -12,20 +12,20 @@ interactions: Connection: - keep-alive Content-Length: - - '325' + - '324' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0GA Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) method: POST uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 response: body: string: '{"kind":"ConversationResult","result":{"query":"Send 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-06-01","value":"2022-06-01"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}' + about the tomorrow''s demo","prediction":{"topIntent":"Send","projectKind":"Conversation","intents":[{"category":"Send","confidenceScore":0.9053172},{"category":"Read","confidenceScore":0.44011447},{"category":"Setup","confidenceScore":0.41303915},{"category":"Set","confidenceScore":0.21186642},{"category":"None","confidenceScore":0.20198277},{"category":"Find","confidenceScore":0.19216746},{"category":"Call","confidenceScore":0.16446844},{"category":"Play","confidenceScore":0.15655291},{"category":"Open","confidenceScore":0.08699014}],"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-06-24","value":"2022-06-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}' headers: apim-request-id: - - 459be8fa-7f28-43ac-8862-feed979b6077 + - b2dc0b20-ddeb-4459-bfd2-20015663862c cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -33,11 +33,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.ConversationalLanguageUnderstanding.Prediction=1 date: - - Tue, 31 May 2022 14:25:16 GMT + - Thu, 23 Jun 2022 21:02:40 GMT pragma: - no-cache request-id: - - 459be8fa-7f28-43ac-8862-feed979b6077 + - b2dc0b20-ddeb-4459-bfd2-20015663862c strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '192' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app_async.test_conversation_app.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app_async.test_conversation_app.yaml new file mode 100644 index 000000000000..710a0ec85fee --- /dev/null +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_conversation_app_async.test_conversation_app.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + 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}}' + headers: + Accept: + - application/json + Content-Length: + - '324' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 + response: + body: + string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol + about the tomorrow''s demo","prediction":{"topIntent":"Send","projectKind":"Conversation","intents":[{"category":"Send","confidenceScore":0.9053172},{"category":"Read","confidenceScore":0.44011447},{"category":"Setup","confidenceScore":0.41303915},{"category":"Set","confidenceScore":0.21186642},{"category":"None","confidenceScore":0.20198277},{"category":"Find","confidenceScore":0.19216746},{"category":"Call","confidenceScore":0.16446844},{"category":"Play","confidenceScore":0.15655291},{"category":"Open","confidenceScore":0.08699014}],"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-06-24","value":"2022-06-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}' + headers: + apim-request-id: c048ea3a-d8e6-4594-8268-18a213a79471 + 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: Thu, 23 Jun 2022 21:02:41 GMT + pragma: no-cache + request-id: c048ea3a-d8e6-4594-8268-18a213a79471 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '217' + status: + code: 200 + message: OK + url: https://languagesdkresource.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 +version: 1 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 48f974b9b7df..6063c0388492 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 @@ -12,21 +12,21 @@ interactions: Connection: - keep-alive Content-Length: - - '326' + - '334' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0GA Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) method: POST uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 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":"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-06-01","value":"2022-06-01"}],"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"}}}}}' + about the tomorrow''s demo","prediction":{"topIntent":"EmailIntent","projectKind":"Orchestration","intents":{"EmailIntent":{"confidenceScore":0.7871725,"targetProjectKind":"Conversation","result":{"query":"Send + an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"Send","projectKind":"Conversation","intents":[{"category":"Send","confidenceScore":0.9053172},{"category":"Read","confidenceScore":0.44011447},{"category":"Setup","confidenceScore":0.41303915},{"category":"Set","confidenceScore":0.21186642},{"category":"None","confidenceScore":0.20198277},{"category":"Find","confidenceScore":0.19216746},{"category":"Call","confidenceScore":0.16446844},{"category":"Play","confidenceScore":0.15655291},{"category":"Open","confidenceScore":0.08699014}],"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-06-24","value":"2022-06-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}},"ChitChat-QnA":{"confidenceScore":0.65083516,"targetProjectKind":"QuestionAnswering"},"None":{"confidenceScore":0.15003009,"targetProjectKind":"NonLinked"}}}}}' headers: apim-request-id: - - 159870fd-db6c-40e5-945d-fe23d2d6b842 + - 5f0228b5-1ca9-4d59-a52e-ef0aa816997e cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -34,11 +34,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 date: - - Tue, 31 May 2022 14:25:17 GMT + - Thu, 23 Jun 2022 21:02:42 GMT pragma: - no-cache request-id: - - 159870fd-db6c-40e5-945d-fe23d2d6b842 + - 5f0228b5-1ca9-4d59-a52e-ef0aa816997e strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '146' + - '217' status: code: 200 message: OK diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml new file mode 100644 index 000000000000..1df21ca648c2 --- /dev/null +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_conv_response_async.test_orchestration_app_conv_response.yaml @@ -0,0 +1,39 @@ +interactions: +- request: + 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}}' + headers: + Accept: + - application/json + Content-Length: + - '334' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 + 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.7871725,"targetProjectKind":"Conversation","result":{"query":"Send + an email to Carol about the tomorrow''s demo","prediction":{"topIntent":"Send","projectKind":"Conversation","intents":[{"category":"Send","confidenceScore":0.9053172},{"category":"Read","confidenceScore":0.44011447},{"category":"Setup","confidenceScore":0.41303915},{"category":"Set","confidenceScore":0.21186642},{"category":"None","confidenceScore":0.20198277},{"category":"Find","confidenceScore":0.19216746},{"category":"Call","confidenceScore":0.16446844},{"category":"Play","confidenceScore":0.15655291},{"category":"Open","confidenceScore":0.08699014}],"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-06-24","value":"2022-06-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}},"ChitChat-QnA":{"confidenceScore":0.65083516,"targetProjectKind":"QuestionAnswering"},"None":{"confidenceScore":0.15003009,"targetProjectKind":"NonLinked"}}}}}' + headers: + apim-request-id: cee88da1-a191-496c-b57a-15d6d1ef768d + 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: Thu, 23 Jun 2022 21:02:43 GMT + pragma: no-cache + request-id: cee88da1-a191-496c-b57a-15d6d1ef768d + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '192' + status: + code: 200 + message: OK + url: https://languagesdkresource.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 +version: 1 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 deleted file mode 100644 index d51d1cd2c3c1..000000000000 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response.test_orchestration_app_luis_response.yaml +++ /dev/null @@ -1,55 +0,0 @@ -interactions: -- request: - 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}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '325' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-language-conversations/1.0GA 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-01 - 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.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.61326313,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.2647618,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.24316412,"targetProjectKind":"NonLinked"}}}}}' - headers: - apim-request-id: - - c2dfc655-a27e-40c7-9d00-5891c5cbf2d1 - 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: - - Tue, 31 May 2022 14:25:17 GMT - pragma: - - no-cache - request-id: - - c2dfc655-a27e-40c7-9d00-5891c5cbf2d1 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '91' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml new file mode 100644 index 000000000000..a6be0d512c44 --- /dev/null +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_luis_response_async.test_orchestration_app_luis_response.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + 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}}' + headers: + Accept: + - application/json + Content-Length: + - '333' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 + response: + body: + string: '{"kind":"ConversationResult","result":{"query":"Reserve a table for + 2 at the Italian restaurant","prediction":{"topIntent":"None","projectKind":"Orchestration","intents":{"ChitChat-QnA":{"confidenceScore":0.6339138,"targetProjectKind":"QuestionAnswering"},"EmailIntent":{"confidenceScore":0.26476288,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.2431642,"targetProjectKind":"NonLinked"}}}}}' + headers: + apim-request-id: 104d8438-e531-4911-b5ea-98390ffba9f7 + 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: Thu, 23 Jun 2022 20:53:02 GMT + pragma: no-cache + request-id: 104d8438-e531-4911-b5ea-98390ffba9f7 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '46' + status: + code: 200 + message: OK + url: https://languagesdkresource.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 +version: 1 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 a983ff162e27..f293e18e3d46 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 @@ -12,11 +12,11 @@ interactions: Connection: - keep-alive Content-Length: - - '290' + - '298' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0GA Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) method: POST uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 response: @@ -31,10 +31,10 @@ interactions: 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"}}}}}' + doing great, thanks for asking!","confidenceScore":1.0,"id":72,"source":"qna_chitchat_friendly.tsv","metadata":{"editorial":"chitchat"},"dialog":{"isContextOnly":false,"prompts":[]}}]}},"EmailIntent":{"confidenceScore":0.2013731,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.1674014,"targetProjectKind":"NonLinked"}}}}}' headers: apim-request-id: - - 15dc08e3-2188-4f0b-846a-a00294a9f4fa + - 433932e3-dca5-4fa1-b610-502f9d744fca cache-control: - no-store, proxy-revalidate, no-cache, max-age=0, private content-type: @@ -42,11 +42,11 @@ interactions: csp-billing-usage: - CognitiveServices.TextAnalytics.Language.OrchestrationWorkflow.Prediction=1 date: - - Tue, 31 May 2022 14:25:19 GMT + - Thu, 23 Jun 2022 21:02:44 GMT pragma: - no-cache request-id: - - 15dc08e3-2188-4f0b-846a-a00294a9f4fa + - 433932e3-dca5-4fa1-b610-502f9d744fca strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -54,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1296' + - '838' status: code: 200 message: OK 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/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml similarity index 78% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml index c01e85502739..1fd346d970ae 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/recordings/test_orchestration_app_qna_response_async.test_orchestration_app_qna_response.yaml @@ -8,11 +8,11 @@ interactions: Accept: - application/json Content-Length: - - '290' + - '298' Content-Type: - application/json User-Agent: - - azsdk-python-ai-language-conversations/1.0GA Python/3.10.1 (Windows-10-10.0.19044-SP0) + - azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0) method: POST uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01 response: @@ -27,21 +27,21 @@ interactions: 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"}}}}}' + doing great, thanks for asking!","confidenceScore":1.0,"id":72,"source":"qna_chitchat_friendly.tsv","metadata":{"editorial":"chitchat"},"dialog":{"isContextOnly":false,"prompts":[]}}]}},"EmailIntent":{"confidenceScore":0.2013731,"targetProjectKind":"Conversation"},"None":{"confidenceScore":0.1674014,"targetProjectKind":"NonLinked"}}}}}' headers: - apim-request-id: 2fc570ea-3ea0-4f49-921b-aa2839e62785 + apim-request-id: 5a6de398-5183-4de1-9791-35fa9cba9292 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: Tue, 31 May 2022 14:25:22 GMT + date: Thu, 23 Jun 2022 21:02:46 GMT pragma: no-cache - request-id: 2fc570ea-3ea0-4f49-921b-aa2839e62785 + request-id: 5a6de398-5183-4de1-9791-35fa9cba9292 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1211' + x-envoy-upstream-service-time: '672' status: code: 200 message: OK - url: https://languagesdktest.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 + url: https://languagesdkresource.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01 version: 1 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 296734f806bb..c925dddfed37 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 @@ -14,7 +14,7 @@ ) from azure.ai.language.conversations import ConversationAnalysisClient -class ConversationAppTests(ConversationTest): +class TestConversationAppTests(ConversationTest): @GlobalConversationAccountPreparer() def test_conversation_app(self, endpoint, key, conv_project_name, conv_deployment_name): @@ -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"] == 'Setup' + assert result["result"]["prediction"]["topIntent"] == 'Send' assert len(result["result"]["prediction"]["intents"]) > 0 - assert result["result"]["prediction"]["intents"][0]["category"] == 'Setup' + assert result["result"]["prediction"]["intents"][0]["category"] == 'Send' assert result["result"]["prediction"]["intents"][0]["confidenceScore"] > 0 # assert - entities diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app_async.py similarity index 98% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app_async.py index ac4ee401e22f..0970ecd8915a 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_conversation_app_async.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/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"] == 'Setup' + assert result["result"]["prediction"]["topIntent"] == 'Send' assert len(result["result"]["prediction"]["intents"]) > 0 - assert result["result"]["prediction"]["intents"][0]["category"] == 'Setup' + assert result["result"]["prediction"]["intents"][0]["category"] == 'Send' 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 ba4998423b03..9eef8beec8db 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"] == 'Setup' + assert conversation_result["topIntent"] == 'Send' assert len(conversation_result["intents"]) > 0 - assert conversation_result["intents"][0]["category"] == 'Setup' + assert conversation_result["intents"][0]["category"] == 'Send' assert conversation_result["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/test_orchestration_app_conv_response_async.py similarity index 97% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_conv_response_async.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_conv_response_async.py index 0436567c47ba..95f8bf1caa86 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/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"] == 'Setup' + assert conversation_result["topIntent"] == 'Send' assert len(conversation_result["intents"]) > 0 - assert conversation_result["intents"][0]["category"] == 'Setup' + assert conversation_result["intents"][0]["category"] == 'Send' assert conversation_result["intents"][0]["confidenceScore"] > 0 # assert - entities diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response.py index 745ae299ecbb..93cb60b1070f 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response.py @@ -18,6 +18,7 @@ class OrchestrationAppLuisResponseTests(ConversationTest): + @pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/24962") @GlobalConversationAccountPreparer() def test_orchestration_app_luis_response(self, endpoint, key, orch_project_name, orch_deployment_name): @@ -45,7 +46,7 @@ def test_orchestration_app_luis_response(self, endpoint, key, orch_project_name, } } ) - + # assert - main object top_project = "RestaurantIntent" assert not result is None diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_luis_response_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response_async.py similarity index 97% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_luis_response_async.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response_async.py index a5615fcbf6e4..2812efbb5e4c 100644 --- a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_luis_response_async.py +++ b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_luis_response_async.py @@ -15,6 +15,7 @@ class OrchestrationAppLuisResponseAsyncTests(AsyncConversationTest): + @pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/24962") @GlobalConversationAccountPreparer() async def test_orchestration_app_luis_response(self, endpoint, key, orch_project_name, orch_deployment_name): diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_qna_response_async.py b/sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_qna_response_async.py similarity index 100% rename from sdk/cognitivelanguage/azure-ai-language-conversations/tests/async/test_orchestration_app_qna_response_async.py rename to sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_app_qna_response_async.py diff --git a/shared_requirements.txt b/shared_requirements.txt index 0d4da86646b4..7de2bf65a04b 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -222,7 +222,7 @@ opentelemetry-sdk<2.0.0,>=1.5.0,!=1.10a0 #override azure-mixedreality-remoterendering azure-mixedreality-authentication>=1.0.0b1 #override azure-ai-language-conversations azure-core<2.0.0,>=1.24.0 #override azure-mgmt-eventgrid msrest>=0.6.21 -#override azure-ai-language-conversations msrest>=0.6.21 +#override azure-ai-language-conversations isodate<1.0.0,>=0.6.1 #override azure-mgmt-deviceupdate msrest>=0.6.21 #override azure-mgmt-dataprotection msrest>=0.6.21 #override azure-mgmt-chaos msrest>=0.6.21