diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/HierarchicalModel.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/HierarchicalModel.cs index 2c292e09505c..ef9e14a6a365 100644 --- a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/HierarchicalModel.cs +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/HierarchicalModel.cs @@ -28,12 +28,13 @@ public HierarchicalModel() /// /// Initializes a new instance of the HierarchicalModel class. /// - public HierarchicalModel(string name = default(string), IList children = default(IList), PrebuiltDomainObject inherits = default(PrebuiltDomainObject), IList roles = default(IList)) + public HierarchicalModel(string name = default(string), IList children = default(IList), IList features = default(IList), IList roles = default(IList), PrebuiltDomainObject inherits = default(PrebuiltDomainObject)) { Name = name; Children = children; - Inherits = inherits; + Features = features; Roles = roles; + Inherits = inherits; CustomInit(); } @@ -50,17 +51,22 @@ public HierarchicalModel() /// /// [JsonProperty(PropertyName = "children")] - public IList Children { get; set; } + public IList Children { get; set; } /// /// - [JsonProperty(PropertyName = "inherits")] - public PrebuiltDomainObject Inherits { get; set; } + [JsonProperty(PropertyName = "features")] + public IList Features { get; set; } /// /// [JsonProperty(PropertyName = "roles")] public IList Roles { get; set; } + /// + /// + [JsonProperty(PropertyName = "inherits")] + public PrebuiltDomainObject Inherits { get; set; } + } } diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JSONModelFeature.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JSONModelFeature.cs index 60028d4fed24..9faab803b9df 100644 --- a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JSONModelFeature.cs +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JSONModelFeature.cs @@ -43,12 +43,15 @@ public JSONModelFeature() /// add to LUIS existing vocabulary features. It is used as a lexicon /// lookup feature where its value is 1 if the lexicon contains a given /// word or 0 if it doesn’t. Default value is true. - public JSONModelFeature(bool? activated = default(bool?), string name = default(string), string words = default(string), bool? mode = default(bool?)) + /// Indicates if the Phraselist is + /// enabled for all models in the application. + public JSONModelFeature(bool? activated = default(bool?), string name = default(string), string words = default(string), bool? mode = default(bool?), bool? enabledForAllModels = default(bool?)) { Activated = activated; Name = name; Words = words; Mode = mode; + EnabledForAllModels = enabledForAllModels; CustomInit(); } @@ -90,5 +93,12 @@ public JSONModelFeature() [JsonProperty(PropertyName = "mode")] public bool? Mode { get; set; } + /// + /// Gets or sets indicates if the Phraselist is enabled for all models + /// in the application. + /// + [JsonProperty(PropertyName = "enabledForAllModels")] + public bool? EnabledForAllModels { get; set; } + } } diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JsonChild.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JsonChild.cs new file mode 100644 index 000000000000..c09909464944 --- /dev/null +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JsonChild.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class JsonChild + { + /// + /// Initializes a new instance of the JsonChild class. + /// + public JsonChild() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JsonChild class. + /// + public JsonChild(string name = default(string), string instanceOf = default(string), IList children = default(IList), IList features = default(IList)) + { + Name = name; + InstanceOf = instanceOf; + Children = children; + Features = features; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "instanceOf")] + public string InstanceOf { get; set; } + + /// + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// + [JsonProperty(PropertyName = "features")] + public IList Features { get; set; } + + } +} diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JsonModelFeatureInformation.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JsonModelFeatureInformation.cs new file mode 100644 index 000000000000..9f73ca8d34eb --- /dev/null +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/JsonModelFeatureInformation.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// An object containing the model feature information either the model + /// name or feature name. + /// + public partial class JsonModelFeatureInformation + { + /// + /// Initializes a new instance of the JsonModelFeatureInformation + /// class. + /// + public JsonModelFeatureInformation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JsonModelFeatureInformation + /// class. + /// + /// The name of the model used. + /// The name of the feature used. + public JsonModelFeatureInformation(string modelName = default(string), string featureName = default(string)) + { + ModelName = modelName; + FeatureName = featureName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the model used. + /// + [JsonProperty(PropertyName = "modelName")] + public string ModelName { get; set; } + + /// + /// Gets or sets the name of the feature used. + /// + [JsonProperty(PropertyName = "featureName")] + public string FeatureName { get; set; } + + } +} diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/LuisApp.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/LuisApp.cs index 787061c4ea4f..d3735bbbf328 100644 --- a/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/LuisApp.cs +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/src/Generated/Models/LuisApp.cs @@ -43,16 +43,17 @@ public LuisApp() /// List of entities. /// List of list entities. /// List of composite entities. + /// List of hierarchical entities. /// List of Pattern.Any /// entities. /// List of regular expression /// entities. /// List of prebuilt entities. /// List of pattern features. - /// List of model features. + /// List of model features. /// List of patterns. /// List of example utterances. - public LuisApp(IDictionary additionalProperties = default(IDictionary), string name = default(string), string versionId = default(string), string desc = default(string), string culture = default(string), IList intents = default(IList), IList entities = default(IList), IList closedLists = default(IList), IList composites = default(IList), IList patternAnyEntities = default(IList), IList regexEntities = default(IList), IList prebuiltEntities = default(IList), IList regexFeatures = default(IList), IList modelFeatures = default(IList), IList patterns = default(IList), IList utterances = default(IList)) + public LuisApp(IDictionary additionalProperties = default(IDictionary), string name = default(string), string versionId = default(string), string desc = default(string), string culture = default(string), IList intents = default(IList), IList entities = default(IList), IList closedLists = default(IList), IList composites = default(IList), IList hierarchicals = default(IList), IList patternAnyEntities = default(IList), IList regexEntities = default(IList), IList prebuiltEntities = default(IList), IList regexFeatures = default(IList), IList phraselists = default(IList), IList patterns = default(IList), IList utterances = default(IList)) { AdditionalProperties = additionalProperties; Name = name; @@ -63,11 +64,12 @@ public LuisApp() Entities = entities; ClosedLists = closedLists; Composites = composites; + Hierarchicals = hierarchicals; PatternAnyEntities = patternAnyEntities; RegexEntities = regexEntities; PrebuiltEntities = prebuiltEntities; RegexFeatures = regexFeatures; - ModelFeatures = modelFeatures; + Phraselists = phraselists; Patterns = patterns; Utterances = utterances; CustomInit(); @@ -133,6 +135,12 @@ public LuisApp() [JsonProperty(PropertyName = "composites")] public IList Composites { get; set; } + /// + /// Gets or sets list of hierarchical entities. + /// + [JsonProperty(PropertyName = "hierarchicals")] + public IList Hierarchicals { get; set; } + /// /// Gets or sets list of Pattern.Any entities. /// @@ -160,8 +168,8 @@ public LuisApp() /// /// Gets or sets list of model features. /// - [JsonProperty(PropertyName = "model_features")] - public IList ModelFeatures { get; set; } + [JsonProperty(PropertyName = "phraselists")] + public IList Phraselists { get; set; } /// /// Gets or sets list of patterns. diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs index c83c71cd6fb5..f43a2c85d1eb 100644 --- a/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs @@ -74,5 +74,21 @@ public void ImportApp() Assert.NotNull(testApp); }); } + + [Fact] + public void ImportAppWithEnabledForAllModels() + { + var appJson = File.ReadAllText(Path.Combine(Directory.GetCurrentDirectory(), "SessionRecords/ImportAppWithEnabledForAllModels.json")); + var app = JsonConvert.DeserializeObject(appJson); + + UseClientFor(async client => + { + var testAppId = await client.Apps.ImportAsync(app, "Test Import LUIS App With Enabled For All Models"); + var testApp = await client.Apps.GetAsync(testAppId); + await client.Apps.DeleteAsync(testAppId); + + Assert.NotNull(testApp); + }); + } } } diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/tests/SessionRecords/ImportAppWithEnabledForAllModels.json b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/SessionRecords/ImportAppWithEnabledForAllModels.json new file mode 100644 index 000000000000..dbb83f23d095 --- /dev/null +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/SessionRecords/ImportAppWithEnabledForAllModels.json @@ -0,0 +1,515 @@ +{ + "luis_schema_version": "6.0.0", + "intents": [ + { + "name": "Calendar.AcceptEventEntry", + "inherits": { + "domain_name": "Calendar", + "model_name": "AcceptEventEntry" + }, + "features": [ + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "Communication.AddContact", + "inherits": { + "domain_name": "Communication", + "model_name": "AddContact" + }, + "features": [ + { + "modelName": "simpleentity1" + }, + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "Communication.AddMore", + "inherits": { + "domain_name": "Communication", + "model_name": "AddMore" + }, + "features": [ + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "Communication.Confirm", + "inherits": { + "domain_name": "Communication", + "model_name": "Confirm" + }, + "features": [ + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "intent1", + "features": [ + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "None", + "features": [ + { + "featureName": "phraselist1" + } + ] + } + ], + "entities": [ + { + "name": "a1", + "children": [ + { + "name": "b1", + "instanceOf": "datetimeV2", + "children": [] + }, + { + "name": "c1", + "children": [ + { + "name": "d1", + "children": [ + { + "name": "e1", + "instanceOf": "datetimeV2", + "children": [] + } + ] + } + ] + } + ], + "roles": [ + "role_a1" + ], + "features": [ + { + "modelName": "Communication.Confirm" + }, + { + "modelName": "Calendar.Subject" + }, + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "Calendar.Subject", + "children": [], + "inherits": { + "domain_name": "Calendar", + "model_name": "Subject" + }, + "roles": [], + "features": [ + { + "modelName": "Communication.Confirm" + }, + { + "modelName": "Communication.AddMore" + }, + { + "modelName": "simpleentity1" + }, + { + "featureName": "phraselist1" + } + ] + }, + { + "name": "simpleentity1", + "children": [], + "roles": [], + "features": [ + { + "featureName": "phraselist1" + } + ] + } + ], + "hierarchicals": [ + { + "name": "hierarchicalentity1", + "children": [ + { + "name": "childentity2" + }, + { + "name": "childentitiy1" + } + ], + "roles": [], + "features": [ + { + "featureName": "phraselist1" + } + ] + } + ], + "composites": [ + { + "name": "compositeentity1", + "children": [ + { + "name": "simpleentity1" + }, + { + "name": "datetimeV2" + }, + { + "name": "hierarchicalentity1::childentity2" + } + ], + "roles": [], + "features": [ + { + "modelName": "Communication.Confirm" + }, + { + "modelName": "Calendar.Subject" + }, + { + "modelName": "simpleentity1" + }, + { + "featureName": "phraselist1" + } + ] + } + ], + "closedLists": [ + { + "name": "closedlist", + "subLists": [ + { + "canonicalForm": "a", + "list": [ + "b", + "c", + "d" + ] + } + ], + "roles": [] + } + ], + "prebuiltEntities": [ + { + "name": "age", + "roles": [] + }, + { + "name": "datetimeV2", + "roles": [] + } + ], + "utterances": [ + { + "text": "a", + "intent": "None", + "entities": [] + }, + { + "text": "add a new event on 27 - apr", + "intent": "Calendar.AcceptEventEntry", + "entities": [] + }, + { + "text": "add a new task finish assignment", + "intent": "Calendar.AcceptEventEntry", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 15, + "endPos": 31 + } + ] + }, + { + "text": "add an event to read about adam lambert news", + "intent": "Calendar.AcceptEventEntry", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 16, + "endPos": 43 + } + ] + }, + { + "text": "add an event to visit 209 nashville gym", + "intent": "Calendar.AcceptEventEntry", + "entities": [] + }, + { + "text": "add imax theater to my upcoming events", + "intent": "Calendar.AcceptEventEntry", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 4, + "endPos": 15 + } + ] + }, + { + "text": "am i free to be with friends saturday ?", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 13, + "endPos": 27 + } + ] + }, + { + "text": "appointment with johnson needs to be next week", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 0, + "endPos": 23 + } + ] + }, + { + "text": "calendar i ' ll be at the garage from 8 till 3 this saturday", + "intent": "Calendar.AcceptEventEntry", + "entities": [] + }, + { + "text": "call dad mike", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 0, + "endPos": 12 + } + ] + }, + { + "text": "change the meeting with chris to 9 : 00 am", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 7, + "endPos": 28 + } + ] + }, + { + "text": "delete helen fred ' s birthday", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 7, + "endPos": 29 + } + ] + }, + { + "text": "dunmore pa sonic sounds friday morning please", + "intent": "Calendar.AcceptEventEntry", + "entities": [] + }, + { + "text": "email cloney john", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 0, + "endPos": 16 + } + ] + }, + { + "text": "extend lunch meeting 30 minutes extra", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 7, + "endPos": 19 + } + ] + }, + { + "text": "hi guys", + "intent": "None", + "entities": [ + { + "entity": "simpleentity1", + "startPos": 3, + "endPos": 6 + } + ] + }, + { + "text": "i want to reschedule the meeting at the air force club", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 25, + "endPos": 53 + } + ] + }, + { + "text": "marketing meetings on tuesdays will now be every wednesday please change on my calendar", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 0, + "endPos": 17 + } + ] + }, + { + "text": "meeting my manager", + "intent": "Calendar.AcceptEventEntry", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 0, + "endPos": 17 + } + ] + }, + { + "text": "move the bbq party to friday", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 9, + "endPos": 17 + } + ] + }, + { + "text": "please just delete my meeting", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 19, + "endPos": 28 + } + ] + }, + { + "text": "save the date may 17 pictures party", + "intent": "Calendar.AcceptEventEntry", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 21, + "endPos": 34 + } + ] + }, + { + "text": "schedule appointment for tomorrow please", + "intent": "Calendar.AcceptEventEntry", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 9, + "endPos": 19 + } + ] + }, + { + "text": "search for meetings with chris", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 11, + "endPos": 29 + } + ] + }, + { + "text": "the meeting will last for one hour", + "intent": "Calendar.AcceptEventEntry", + "entities": [] + }, + { + "text": "the workshop will last for 10 hours", + "intent": "None", + "entities": [ + { + "entity": "Calendar.Subject", + "startPos": 0, + "endPos": 11 + } + ] + }, + { + "text": "this is hierarchical and this is a child", + "intent": "Communication.AddContact", + "entities": [ + { + "entity": "hierarchicalentity1", + "startPos": 8, + "endPos": 19 + }, + { + "entity": "hierarchicalentity1::childentitiy1", + "startPos": 35, + "endPos": 39 + } + ] + } + ], + "versionId": "0.1", + "name": "App 600", + "desc": "", + "culture": "en-us", + "tokenizerVersion": "1.0.0", + "patternAnyEntities": [], + "regex_entities": [], + "phraselists": [ + { + "name": "phraselist1", + "mode": true, + "words": "why,where,when,what,how,who", + "activated": true, + "enabledForAllModels": true + } + ], + "regex_features": [ + { + "name": "pattern1", + "pattern": "a+", + "activated": true + } + ], + "patterns": [], + "settings": [] +} \ No newline at end of file diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/tests/SessionRecords/ImportExportTests/ImportAppWithEnabledForAllModels.json b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/SessionRecords/ImportExportTests/ImportAppWithEnabledForAllModels.json new file mode 100644 index 000000000000..50204e46d01b --- /dev/null +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/SessionRecords/ImportExportTests/ImportAppWithEnabledForAllModels.json @@ -0,0 +1,180 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/authoring/v3.0-preview/apps/import?appName=Test%20Import%20LUIS%20App%20With%20Enabled%20For%20All%20Models", + "EncodedRequestUri": "L2x1aXMvYXV0aG9yaW5nL3YzLjAtcHJldmlldy9hcHBzL2ltcG9ydD9hcHBOYW1lPVRlc3QlMjBJbXBvcnQlMjBMVUlTJTIwQXBwJTIwV2l0aCUyMEVuYWJsZWQlMjBGb3IlMjBBbGwlMjBNb2RlbHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"App 600\",\r\n \"versionId\": \"0.1\",\r\n \"desc\": \"\",\r\n \"culture\": \"en-us\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Calendar.AcceptEventEntry\",\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"AcceptEventEntry\"\r\n }\r\n },\r\n {\r\n \"name\": \"Communication.AddContact\",\r\n \"features\": [\r\n {\r\n \"modelName\": \"simpleentity1\"\r\n },\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"inherits\": {\r\n \"domain_name\": \"Communication\",\r\n \"model_name\": \"AddContact\"\r\n }\r\n },\r\n {\r\n \"name\": \"Communication.AddMore\",\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"inherits\": {\r\n \"domain_name\": \"Communication\",\r\n \"model_name\": \"AddMore\"\r\n }\r\n },\r\n {\r\n \"name\": \"Communication.Confirm\",\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"inherits\": {\r\n \"domain_name\": \"Communication\",\r\n \"model_name\": \"Confirm\"\r\n }\r\n },\r\n {\r\n \"name\": \"intent1\",\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"a1\",\r\n \"children\": [\r\n {\r\n \"name\": \"b1\",\r\n \"instanceOf\": \"datetimeV2\",\r\n \"children\": []\r\n },\r\n {\r\n \"name\": \"c1\",\r\n \"children\": [\r\n {\r\n \"name\": \"d1\",\r\n \"children\": [\r\n {\r\n \"name\": \"e1\",\r\n \"instanceOf\": \"datetimeV2\",\r\n \"children\": []\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"features\": [\r\n {\r\n \"modelName\": \"Communication.Confirm\"\r\n },\r\n {\r\n \"modelName\": \"Calendar.Subject\"\r\n },\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"roles\": [\r\n \"role_a1\"\r\n ]\r\n },\r\n {\r\n \"name\": \"Calendar.Subject\",\r\n \"children\": [],\r\n \"features\": [\r\n {\r\n \"modelName\": \"Communication.Confirm\"\r\n },\r\n {\r\n \"modelName\": \"Communication.AddMore\"\r\n },\r\n {\r\n \"modelName\": \"simpleentity1\"\r\n },\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"roles\": [],\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Subject\"\r\n }\r\n },\r\n {\r\n \"name\": \"simpleentity1\",\r\n \"children\": [],\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"roles\": []\r\n }\r\n ],\r\n \"closedLists\": [\r\n {\r\n \"name\": \"closedlist\",\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"a\",\r\n \"list\": [\r\n \"b\",\r\n \"c\",\r\n \"d\"\r\n ]\r\n }\r\n ],\r\n \"roles\": []\r\n }\r\n ],\r\n \"composites\": [\r\n {\r\n \"name\": \"compositeentity1\",\r\n \"children\": [\r\n {\r\n \"name\": \"simpleentity1\"\r\n },\r\n {\r\n \"name\": \"datetimeV2\"\r\n },\r\n {\r\n \"name\": \"hierarchicalentity1::childentity2\"\r\n }\r\n ],\r\n \"features\": [\r\n {\r\n \"modelName\": \"Communication.Confirm\"\r\n },\r\n {\r\n \"modelName\": \"Calendar.Subject\"\r\n },\r\n {\r\n \"modelName\": \"simpleentity1\"\r\n },\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"roles\": []\r\n }\r\n ],\r\n \"hierarchicals\": [\r\n {\r\n \"name\": \"hierarchicalentity1\",\r\n \"children\": [\r\n {\r\n \"name\": \"childentity2\"\r\n },\r\n {\r\n \"name\": \"childentitiy1\"\r\n }\r\n ],\r\n \"features\": [\r\n {\r\n \"featureName\": \"phraselist1\"\r\n }\r\n ],\r\n \"roles\": []\r\n }\r\n ],\r\n \"patternAnyEntities\": [],\r\n \"regex_entities\": [],\r\n \"prebuiltEntities\": [\r\n {\r\n \"name\": \"age\",\r\n \"roles\": []\r\n },\r\n {\r\n \"name\": \"datetimeV2\",\r\n \"roles\": []\r\n }\r\n ],\r\n \"regex_features\": [\r\n {\r\n \"pattern\": \"a+\",\r\n \"activated\": true,\r\n \"name\": \"pattern1\"\r\n }\r\n ],\r\n \"phraselists\": [\r\n {\r\n \"activated\": true,\r\n \"name\": \"phraselist1\",\r\n \"words\": \"why,where,when,what,how,who\",\r\n \"mode\": true,\r\n \"enabledForAllModels\": true\r\n }\r\n ],\r\n \"patterns\": [],\r\n \"utterances\": [\r\n {\r\n \"text\": \"a\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"add a new event on 27 - apr\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"add a new task finish assignment\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 15,\r\n \"endPos\": 31,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add an event to read about adam lambert news\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 16,\r\n \"endPos\": 43,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add an event to visit 209 nashville gym\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"add imax theater to my upcoming events\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 4,\r\n \"endPos\": 15,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"am i free to be with friends saturday ?\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 13,\r\n \"endPos\": 27,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"appointment with johnson needs to be next week\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 0,\r\n \"endPos\": 23,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"calendar i ' ll be at the garage from 8 till 3 this saturday\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"call dad mike\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 0,\r\n \"endPos\": 12,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change the meeting with chris to 9 : 00 am\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 7,\r\n \"endPos\": 28,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"delete helen fred ' s birthday\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 7,\r\n \"endPos\": 29,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dunmore pa sonic sounds friday morning please\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"email cloney john\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 0,\r\n \"endPos\": 16,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"extend lunch meeting 30 minutes extra\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 7,\r\n \"endPos\": 19,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hi guys\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 3,\r\n \"endPos\": 6,\r\n \"entity\": \"simpleentity1\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"i want to reschedule the meeting at the air force club\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 25,\r\n \"endPos\": 53,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"marketing meetings on tuesdays will now be every wednesday please change on my calendar\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 0,\r\n \"endPos\": 17,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"meeting my manager\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 0,\r\n \"endPos\": 17,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"move the bbq party to friday\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 9,\r\n \"endPos\": 17,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"please just delete my meeting\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 19,\r\n \"endPos\": 28,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"save the date may 17 pictures party\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 21,\r\n \"endPos\": 34,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"schedule appointment for tomorrow please\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 9,\r\n \"endPos\": 19,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for meetings with chris\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 11,\r\n \"endPos\": 29,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"the meeting will last for one hour\",\r\n \"intent\": \"Calendar.AcceptEventEntry\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"the workshop will last for 10 hours\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 0,\r\n \"endPos\": 11,\r\n \"entity\": \"Calendar.Subject\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"this is hierarchical and this is a child\",\r\n \"intent\": \"Communication.AddContact\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 8,\r\n \"endPos\": 19,\r\n \"entity\": \"hierarchicalentity1\"\r\n },\r\n {\r\n \"startPos\": 35,\r\n \"endPos\": 39,\r\n \"entity\": \"hierarchicalentity1::childentitiy1\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"luis_schema_version\": \"6.0.0\",\r\n \"tokenizerVersion\": \"1.0.0\",\r\n \"settings\": []\r\n}", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "120f721e60454544a884022b1bc988a5" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.LUISAuthoringClient/3.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "10867" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://westus.api.cognitive.microsoft.com/luis/api/v3.0-preview/apps/478574c9-10b9-4789-9b03-c66d80b4c79c" + ], + "Apim-Request-Id": [ + "d9caf38a-3bc9-41d6-a875-2eb7d1b79d26" + ], + "Request-Id": [ + "d9caf38a-3bc9-41d6-a875-2eb7d1b79d26" + ], + "Operation-Location": [ + "https://westus.api.cognitive.microsoft.com/luis/api/v3.0-preview/apps/478574c9-10b9-4789-9b03-c66d80b4c79c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Wed, 30 Oct 2019 13:04:16 GMT" + ], + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "\"478574c9-10b9-4789-9b03-c66d80b4c79c\"", + "StatusCode": 201 + }, + { + "RequestUri": "/luis/authoring/v3.0-preview/apps/478574c9-10b9-4789-9b03-c66d80b4c79c", + "EncodedRequestUri": "L2x1aXMvYXV0aG9yaW5nL3YzLjAtcHJldmlldy9hcHBzLzQ3ODU3NGM5LTEwYjktNDc4OS05YjAzLWM2NmQ4MGI0Yzc5Yw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "120f721e60454544a884022b1bc988a5" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.LUISAuthoringClient/3.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "025e93df-c2f3-4339-9b84-eb5541e7e984" + ], + "Request-Id": [ + "025e93df-c2f3-4339-9b84-eb5541e7e984" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Wed, 30 Oct 2019 13:04:17 GMT" + ], + "Content-Length": [ + "352" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"478574c9-10b9-4789-9b03-c66d80b4c79c\",\r\n \"name\": \"Test Import LUIS App With Enabled For All Models\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2019-10-30T13:04:11Z\",\r\n \"endpoints\": {},\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\",\r\n \"ownerEmail\": \"a-nebadr@microsoft.com\",\r\n \"tokenizerVersion\": \"1.0.0\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/luis/authoring/v3.0-preview/apps/478574c9-10b9-4789-9b03-c66d80b4c79c?force=false", + "EncodedRequestUri": "L2x1aXMvYXV0aG9yaW5nL3YzLjAtcHJldmlldy9hcHBzLzQ3ODU3NGM5LTEwYjktNDc4OS05YjAzLWM2NmQ4MGI0Yzc5Yz9mb3JjZT1mYWxzZQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "120f721e60454544a884022b1bc988a5" + ], + "User-Agent": [ + "FxVersion/4.6.27817.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.LUISAuthoringClient/3.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f6cdf2c9-1d16-42bb-b304-4f2a38558a30" + ], + "Request-Id": [ + "f6cdf2c9-1d16-42bb-b304-4f2a38558a30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Wed, 30 Oct 2019 13:04:18 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file