diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj deleted file mode 100644 index 6588954e1006..000000000000 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - - netcoreapp1.1 - - false - - - - - - - - - - - - - - - - - - PreserveNewest - - - - diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/BaseTest.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/BaseTest.cs new file mode 100644 index 000000000000..1bd14ed87560 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/BaseTest.cs @@ -0,0 +1,43 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Net.Http; + using System.Runtime.CompilerServices; + using System.Threading.Tasks; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Microsoft.Azure.Test.HttpRecorder; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + + public abstract class BaseTest + { + private const HttpRecorderMode mode = HttpRecorderMode.Playback; + + protected const AzureRegions region = AzureRegions.Westus; + protected readonly Guid appId = new Guid("86226c53-b7a6-416f-876b-226b2b5ab07b"); + protected readonly Guid appId_error = new Guid("86226c53-b7a6-416f-876b-226b2b5ab07d"); + protected const string subscriptionKey = "00000000000000000000000000000000"; + + private string ClassName => GetType().FullName; + + private ILuisProgrammaticAPI GetClient(DelegatingHandler handler) + { + return new LuisProgrammaticAPI(new ApiKeyServiceClientCredentials(subscriptionKey), handlers: handler) + { + AzureRegion = region + }; + } + + protected async void UseClientFor(Func doTest, string className = null, [CallerMemberName] string methodName = "") + { + using (MockContext context = MockContext.Start(className ?? ClassName, methodName)) + { + HttpMockServer.Initialize(className ?? ClassName, methodName, mode); + ILuisProgrammaticAPI client = GetClient(HttpMockServer.CreateInstance()); + + await doTest(client); + context.Stop(); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/AppsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/AppsTests.cs new file mode 100644 index 000000000000..db031c900936 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/AppsTests.cs @@ -0,0 +1,380 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Globalization; + using System.IO; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + using System.Linq; + + public class AppsTests : BaseTest + { + [Fact] + public void ListApplications() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "Existing LUIS App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + // Test + var result = await client.Apps.ListAsync(); + + Assert.NotEqual(0, result.Count); + Assert.Contains(result, o => o.Name == "Existing LUIS App"); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void AddApplication() + { + UseClientFor(async client => + { + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject + { + Name = "New LUIS App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var savedApp = await client.Apps.GetAsync(testAppId); + + Assert.NotNull(savedApp); + Assert.Equal("New LUIS App", savedApp.Name); + Assert.Equal("New LUIS App", savedApp.Description); + Assert.Equal("en-us", savedApp.Culture); + Assert.Equal("Comics", savedApp.Domain); + Assert.Equal("IoT", savedApp.UsageScenario); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void GetApplication() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "Existing LUIS App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var result = await client.Apps.GetAsync(testAppId); + Assert.Equal(testAppId, result.Id); + Assert.Equal("Existing LUIS App", result.Name); + Assert.Equal("en-us", result.Culture); + Assert.Equal("Comics", result.Domain); + Assert.Equal("IoT", result.UsageScenario); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void UpdateApplication() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "LUIS App to be renamed", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + await client.Apps.UpdateAsync(testAppId, new ApplicationUpdateObject + { + Name = "LUIS App name updated", + Description = "LUIS App description updated" + }); + + var app = await client.Apps.GetAsync(testAppId); + + Assert.Equal("LUIS App name updated", app.Name); + Assert.Equal("LUIS App description updated", app.Description); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void DeleteApplication() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "LUIS App to be deleted", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + await client.Apps.DeleteAsync(testAppId); + + // Assert + var result = await client.Apps.ListAsync(); + Assert.DoesNotContain(result, o => o.Id == testAppId); + }); + } + + [Fact] + public void ListEndpoints() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "LUIS App for endpoint test", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var result = await client.Apps.ListEndpointsAsync(testAppId); + + Assert.Equal("https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/" + testAppId, result[AzureRegions.Westus.ToString().ToLowerInvariant()]); + Assert.Equal("https://eastus2.api.cognitive.microsoft.com/luis/v2.0/apps/" + testAppId, result[AzureRegions.Eastus2.ToString().ToLowerInvariant()]); + Assert.Equal("https://westcentralus.api.cognitive.microsoft.com/luis/v2.0/apps/" + testAppId, result[AzureRegions.Westcentralus.ToString().ToLowerInvariant()]); + Assert.Equal("https://southeastasia.api.cognitive.microsoft.com/luis/v2.0/apps/" + testAppId, result[AzureRegions.Southeastasia.ToString().ToLowerInvariant()]); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void PublishApplication() + { + UseClientFor(async client => + { + var result = await client.Apps.PublishAsync(appId, new ApplicationPublishObject + { + IsStaging = false, + Region = AzureRegions.Westus.ToString().ToLowerInvariant(), + VersionId = "0.1" + }); + + Assert.Equal("https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/" + appId, result.EndpointUrl); + Assert.Equal("westus", result.EndpointRegion); + Assert.False(result.IsStaging); + }); + } + + [Fact] + public void DownloadQueryLogs() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "LUIS App for Query Logs test", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var downloadStream = await client.Apps.DownloadQueryLogsAsync(testAppId); + var reader = new StreamReader(downloadStream); + + var csv = reader.ReadToEnd(); + Assert.False(string.IsNullOrEmpty(csv)); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void GetSettings() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "LUIS App for Settings test", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var settings = await client.Apps.GetSettingsAsync(testAppId); + + Assert.Equal(testAppId, settings.Id); + Assert.False(settings.IsPublic); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void UpdateSettings() + { + UseClientFor(async client => + { + // Initialize + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject() + { + Name = "LUIS App for Settings test", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + await client.Apps.UpdateSettingsAsync(testAppId, new ApplicationSettingUpdateObject + { + PublicProperty = true + }); + + // Assert + var settings = await client.Apps.GetSettingsAsync(testAppId); + Assert.True(settings.IsPublic); + + // Cleanup + await client.Apps.DeleteAsync(testAppId); + }); + } + + [Fact] + public void ListDomains() + { + UseClientFor(async client => + { + var result = await client.Apps.ListDomainsAsync(); + foreach (var domain in result) + { + Assert.False(string.IsNullOrWhiteSpace(domain)); + } + }); + } + + [Fact] + public void ListSupportedCultures() + { + UseClientFor(async client => + { + var result = await client.Apps.ListSupportedCulturesAsync(); + foreach (var culture in result) + { + var cult = new CultureInfo(culture.Code); + Assert.Equal(cult.Name.ToLowerInvariant(), culture.Code); + } + }); + } + + [Fact] + public void ListUsageScenarios() + { + UseClientFor(async client => + { + var result = await client.Apps.ListUsageScenariosAsync(); + foreach (var scenario in result) + { + Assert.False(string.IsNullOrWhiteSpace(scenario)); + } + }); + } + + [Fact] + public void ListAvailableCustomPrebuiltDomains() + { + UseClientFor(async client => + { + var result = await client.Apps.ListAvailableCustomPrebuiltDomainsAsync(); + foreach (var prebuiltDomain in result) + { + Assert.NotNull(prebuiltDomain); + Assert.False(string.IsNullOrWhiteSpace(prebuiltDomain.Description)); + Assert.NotNull(prebuiltDomain.Intents); + Assert.NotNull(prebuiltDomain.Entities); + } + }); + } + + [Fact] + public void ListAvailableCustomPrebuiltDomainsForCulture() + { + UseClientFor(async client => + { + var resultsUS = await client.Apps.ListAvailableCustomPrebuiltDomainsForCultureAsync("en-US"); + var resultsCN = await client.Apps.ListAvailableCustomPrebuiltDomainsForCultureAsync("zh-CN"); + + foreach (var resultUS in resultsUS) + { + Assert.DoesNotContain(resultsCN, r => r.Description == resultUS.Description); + } + foreach (var resultCN in resultsCN) + { + Assert.DoesNotContain(resultsUS, r => r.Description == resultCN.Description); + } + }); + } + + [Fact] + public void AddCustomPrebuiltApplication() + { + UseClientFor(async client => + { + var domain = new PrebuiltDomainCreateObject + { + Culture = "en-US", + DomainName = "Calendar" + }; + + var result = await client.Apps.AddCustomPrebuiltDomainAsync(domain); + + // Cleanup + await client.Apps.DeleteAsync(result); + + // Assert + Assert.True(result != Guid.Empty); + }); + } + + [Fact] + public void ListCortanaEndpoints() + { + UseClientFor(async client => + { + var result = await client.Apps.ListCortanaEndpointsAsync(); + + Assert.True(result.EndpointUrls.Values.All(url => Uri.TryCreate(url, UriKind.Absolute, out Uri uri))); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ExamplesTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ExamplesTests.cs new file mode 100644 index 000000000000..226227a056fb --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ExamplesTests.cs @@ -0,0 +1,237 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Collections.Generic; + using System.Linq; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class ExamplesTests : BaseTest + { + private const string versionId = "0.1"; + + [Fact] + public void ListExamples() + { + UseClientFor(async client => + { + var examples = await client.Examples.ListAsync(appId, versionId); + + Assert.NotEmpty(examples); + }); + } + + [Fact] + public void ListExamples_ForEmptyApplication_ReturnsEmpty() + { + UseClientFor(async client => + { + var appId = await client.Apps.AddAsync(new ApplicationCreateObject + { + Name = "Examples Test App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var examples = await client.Examples.ListAsync(appId, versionId); + + await client.Apps.DeleteAsync(appId); + + Assert.Empty(examples); + }); + } + + [Fact] + public void AddExample() + { + UseClientFor(async client => + { + var appId = await client.Apps.AddAsync(new ApplicationCreateObject + { + Name = "Examples Test App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + await client.Model.AddIntentAsync(appId, "0.1", new ModelCreateObject + { + Name = "WeatherInPlace" + }); + + await client.Model.AddEntityAsync(appId, "0.1", new ModelCreateObject + { + Name = "Place" + }); + + var example = new ExampleLabelObject + { + Text = "whats the weather in buenos aires?", + IntentName = "WeatherInPlace", + EntityLabels = new List() + { + new EntityLabelObject() + { + EntityName = "Place", + StartCharIndex = 21, + EndCharIndex = 34 + } + } + }; + + var result = await client.Examples.AddAsync(appId, versionId, example); + + await client.Apps.DeleteAsync(appId); + + Assert.Equal(example.Text, result.UtteranceText); + }); + } + + [Fact] + public void AddExamplesInBatch() + { + UseClientFor(async client => + { + var appId = await client.Apps.AddAsync(new ApplicationCreateObject + { + Name = "Examples Test App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + await client.Model.AddIntentAsync(appId, "0.1", new ModelCreateObject + { + Name = "WeatherInPlace" + }); + + await client.Model.AddEntityAsync(appId, "0.1", new ModelCreateObject + { + Name = "Place" + }); + + var examples = new List() { + new ExampleLabelObject + { + Text = "whats the weather in seattle?", + IntentName = "WeatherInPlace", + EntityLabels = new List() + { + new EntityLabelObject() + { + EntityName = "Place", + StartCharIndex = 21, + EndCharIndex = 29 + } + } + }, + new ExampleLabelObject + { + Text = "whats the weather in buenos aires?", + IntentName = "WeatherInPlace", + EntityLabels = new List() + { + new EntityLabelObject() + { + EntityName = "Place", + StartCharIndex = 21, + EndCharIndex = 34 + } + } + }, + }; + + var result = await client.Examples.BatchAsync(appId, versionId, examples); + + await client.Apps.DeleteAsync(appId); + + Assert.Equal(examples.Count, result.Count); + Assert.DoesNotContain(result, o => o.HasError.GetValueOrDefault()); + Assert.Contains(result, o => examples.Any(e => e.Text.Equals(o.Value.UtteranceText, StringComparison.OrdinalIgnoreCase))); + }); + } + + [Fact] + public void AddExamplesInBatch_SomeInvalidExamples_ReturnsSomeErrors() + { + UseClientFor(async client => + { + var appId = await client.Apps.AddAsync(new ApplicationCreateObject + { + Name = "Examples Test App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + await client.Model.AddIntentAsync(appId, "0.1", new ModelCreateObject + { + Name = "WeatherInPlace" + }); + + await client.Model.AddEntityAsync(appId, "0.1", new ModelCreateObject + { + Name = "Place" + }); + + var examples = new List() { + new ExampleLabelObject + { + Text = "whats the weather in seattle?", + IntentName = "InvalidIntent", + EntityLabels = new List() + { + new EntityLabelObject() + { + EntityName = "Place", + StartCharIndex = 21, + EndCharIndex = 29 + } + } + }, + new ExampleLabelObject + { + Text = "whats the weather in buenos aires?", + IntentName = "IntentDoesNotExist", + EntityLabels = new List() + { + new EntityLabelObject() + { + EntityName = "Place", + StartCharIndex = 21, + EndCharIndex = 34 + } + } + }, + }; + + var result = await client.Examples.BatchAsync(appId, versionId, examples); + + await client.Apps.DeleteAsync(appId); + + Assert.Equal(examples.Count, result.Count); + Assert.Contains(result, o => o.HasError.GetValueOrDefault()); + Assert.Contains(result, o => o.HasError.GetValueOrDefault() && o.Error != null && o.Error.Code == "FAILED" && o.Error.Message.Contains("The intent classifier IntentDoesNotExist")); + }); + } + + [Fact] + public void DeleteExample() + { + UseClientFor(async client => + { + var exampleId = -5313926; + await client.Examples.DeleteAsync(appId, versionId, exampleId); + var examples = await client.Examples.ListAsync(appId, versionId); + + Assert.DoesNotContain(examples, o => o.Id == exampleId); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/FeaturesPhraseListsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/FeaturesPhraseListsTests.cs new file mode 100644 index 000000000000..d33dcbbb3bcd --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/FeaturesPhraseListsTests.cs @@ -0,0 +1,121 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class FeaturesPhraseListsTests : BaseTest + { + private const string versionId = "0.1"; + + [Fact] + public void AddPhraseList() + { + UseClientFor(async client => + { + var id = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject + { + Name = "DayOfWeek", + Phrases = "monday,tuesday,wednesday,thursday,friday,saturday,sunday", + IsExchangeable = true + }); + + var phrases = await client.Features.GetPhraseListAsync(appId, versionId, id.Value); + await client.Features.DeletePhraseListAsync(appId, versionId, id.Value); + + Assert.NotNull(phrases); + Assert.Equal("DayOfWeek", phrases.Name); + Assert.Equal("monday,tuesday,wednesday,thursday,friday,saturday,sunday", phrases.Phrases); + }); + } + + [Fact] + public void ListPhraseLists() + { + UseClientFor(async client => + { + var id = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject + { + Name = "DayOfWeek", + Phrases = "monday,tuesday,wednesday,thursday,friday,saturday,sunday", + IsExchangeable = true + }); + + var phrases = await client.Features.ListPhraseListsAsync(appId, versionId); + await client.Features.DeletePhraseListAsync(appId, versionId, id.Value); + + Assert.True(phrases.Count > 0); + }); + } + + [Fact] + public void GetPhraseList() + { + UseClientFor(async client => + { + var id = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject + { + Name = "DayOfWeek", + Phrases = "monday,tuesday,wednesday,thursday,friday,saturday,sunday", + IsExchangeable = true + }); + + var phrase = await client.Features.GetPhraseListAsync(appId, versionId, id.Value); + await client.Features.DeletePhraseListAsync(appId, versionId, id.Value); + + Assert.Equal("DayOfWeek", phrase.Name); + Assert.True(phrase.IsActive); + Assert.True(phrase.IsExchangeable); + }); + } + + [Fact] + public void UpdatePhraseList() + { + UseClientFor(async client => + { + var id = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject + { + Name = "DayOfWeek", + Phrases = "monday,tuesday,wednesday,thursday,friday,saturday,sunday", + IsExchangeable = true + }); + + await client.Features.UpdatePhraseListAsync(appId, versionId, id.Value, new PhraselistUpdateObject + { + IsActive = false, + Name = "Month", + Phrases = "january,february,march,april,may,june,july,august,september,october,november,december" + }); + + var updated = await client.Features.GetPhraseListAsync(appId, versionId, id.Value); + await client.Features.DeletePhraseListAsync(appId, versionId, id.Value); + + Assert.Equal("Month", updated.Name); + Assert.Equal("january,february,march,april,may,june,july,august,september,october,november,december", updated.Phrases); + Assert.False(updated.IsActive); + }); + } + + [Fact] + public void DeletePhraseList() + { + UseClientFor(async client => + { + var id = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject + { + Name = "DayOfWeek", + Phrases = "monday,tuesday,wednesday,thursday,friday,saturday,sunday", + IsExchangeable = true + }); + + var phrase = await client.Features.GetPhraseListAsync(appId, versionId, id.Value); + await client.Features.DeletePhraseListAsync(appId, versionId, id.Value); + + var phrases = await client.Features.ListPhraseListsAsync(appId, versionId); + + Assert.DoesNotContain(phrases, o => o.Id == id); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/FeaturesTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/FeaturesTests.cs new file mode 100644 index 000000000000..39b1c86bb97e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/FeaturesTests.cs @@ -0,0 +1,21 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Xunit; + + public class FeaturesTests : BaseTest + { + [Fact] + public void ListFeatures() + { + UseClientFor(async client => + { + var version = "0.1"; + var features = await client.Features.ListAsync(appId, version); + + Assert.True(features.PatternFeatures.Count > 0); + Assert.True(features.PhraselistFeatures.Count > 0); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ImportExportTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ImportExportTests.cs new file mode 100644 index 000000000000..08cf70571dc0 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ImportExportTests.cs @@ -0,0 +1,66 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System.IO; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Newtonsoft.Json; + using Xunit; + + public class ImportExportTests : BaseTest + { + private const string versionId = "0.1"; + + [Fact] + public void ExportVersion() + { + UseClientFor(async client => + { + var app = await client.Versions.ExportAsync(appId, versionId); + + Assert.NotNull(app); + Assert.Equal("LUIS BOT", app.Name); + }); + } + + [Fact] + public void ImportVersion() + { + var appJson = File.ReadAllText(Path.Combine(Directory.GetCurrentDirectory(), "SessionRecords/ImportApp.json")); + var app = JsonConvert.DeserializeObject(appJson); + + UseClientFor(async client => + { + var testAppId = await client.Apps.AddAsync(new ApplicationCreateObject + { + Name = "Import Version Test LUIS App", + Description = "New LUIS App", + Culture = "en-us", + Domain = "Comics", + UsageScenario = "IoT" + }); + + var newVersion = await client.Versions.ImportAsync(testAppId, app, "0.2"); + + await client.Apps.DeleteAsync(testAppId); + + Assert.Equal("0.2", newVersion); + }); + } + + [Fact] + public void ImportApp() + { + var appJson = File.ReadAllText(Path.Combine(Directory.GetCurrentDirectory(), "SessionRecords/ImportApp.json")); + var app = JsonConvert.DeserializeObject(appJson); + + UseClientFor(async client => + { + var testAppId = await client.Apps.ImportAsync(app, "Test Import LUIS App"); + var testApp = await client.Apps.GetAsync(testAppId); + await client.Apps.DeleteAsync(testAppId); + + Assert.NotNull(testApp); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelClosedListsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelClosedListsTests.cs new file mode 100644 index 000000000000..5f07533320c2 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelClosedListsTests.cs @@ -0,0 +1,234 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class ModelClosedListsTests : BaseTest + { + private const string versionId = "0.1"; + + [Fact] + public void ListClosedLists() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + var result = await client.Model.ListClosedListsAsync(appId, versionId); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.NotEmpty(result); + }); + } + + [Fact] + public void AddClosedList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.True(listId != Guid.Empty); + }); + } + + [Fact] + public void GetClosedList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + var list = await client.Model.GetClosedListAsync(appId, versionId, listId); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + // Assert + Assert.Equal("States", list.Name); + Assert.Equal(3, list.SubLists.Count); + }); + } + + [Fact] + public void UpdateClosedList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + var update = new ClosedListModelUpdateObject() + { + Name = "New States", + SubLists = new List() + { + new WordListObject() + { + CanonicalForm = "Texas", + List = new List() { "tx", "texas" } + } + } + }; + + await client.Model.UpdateClosedListAsync(appId, versionId, listId, update); + var updated = await client.Model.GetClosedListAsync(appId, versionId, listId); + + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.Equal("New States", updated.Name); + Assert.Equal(1, updated.SubLists.Count); + Assert.Equal("Texas", updated.SubLists[0].CanonicalForm); + }); + } + + [Fact] + public void DeleteClosedList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + var lists = await client.Model.ListClosedListsAsync(appId, versionId); + + Assert.DoesNotContain(lists, o => o.Id == listId); + }); + } + + [Fact] + public void PatchClosedList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + + await client.Model.PatchClosedListAsync(appId, versionId, listId, new ClosedListModelPatchObject + { + SubLists = new List() + { + new WordListObject() + { + CanonicalForm = "Texas", + List = new List() { "tx", "texas" } + }, + new WordListObject() + { + CanonicalForm = "Florida", + List = new List() { "fl", "florida" } + } + } + }); + + var list = await client.Model.GetClosedListAsync(appId, versionId, listId); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.Equal(5, list.SubLists.Count); + Assert.Contains(list.SubLists, o => o.CanonicalForm == "Texas" && o.List.Contains("tx") && o.List.Contains("texas")); + Assert.Contains(list.SubLists, o => o.CanonicalForm == "Florida" && o.List.Contains("fl") && o.List.Contains("florida")); + }); + } + + [Fact] + public void AddSubList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + + var sublistId = await client.Model.AddSubListAsync(appId, versionId, listId, new WordListObject() + { + CanonicalForm = "Texas", + List = new List() { "tx", "texas" } + }); + + var list = await client.Model.GetClosedListAsync(appId, versionId, listId); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.Equal(4, list.SubLists.Count); + Assert.Contains(list.SubLists, o => o.CanonicalForm == "Texas" && o.List.Contains("tx") && o.List.Contains("texas")); + }); + } + + [Fact] + public void DeleteSubList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + var sublistId = (await client.Model.GetClosedListAsync(appId, versionId, listId)).SubLists.Single(o => o.CanonicalForm == "New York").Id; + + await client.Model.DeleteSubListAsync(appId, versionId, listId, sublistId); + + var list = await client.Model.GetClosedListAsync(appId, versionId, listId); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.Equal(2, list.SubLists.Count); + Assert.DoesNotContain(list.SubLists, o => o.CanonicalForm == "New York"); + }); + } + + [Fact] + public void UpdateSubList() + { + UseClientFor(async client => + { + var listId = await client.Model.AddClosedListAsync(appId, versionId, GetClosedListSample()); + var sublistId = (await client.Model.GetClosedListAsync(appId, versionId, listId)).SubLists.Single(o => o.CanonicalForm == "New York").Id; + + await client.Model.UpdateSubListAsync(appId, versionId, listId, sublistId, new WordListBaseUpdateObject() + { + CanonicalForm = "New Yorkers", + List = new List() { "NYC", "NY", "New York" }, + }); + + var list = await client.Model.GetClosedListAsync(appId, versionId, listId); + await client.Model.DeleteClosedListAsync(appId, versionId, listId); + + Assert.Equal(3, list.SubLists.Count); + Assert.DoesNotContain(list.SubLists, o => o.CanonicalForm == "New York"); + Assert.Contains(list.SubLists, o => o.CanonicalForm == "New Yorkers" && o.List.Contains("NYC") && o.List.Contains("NY") && o.List.Contains("New York")); + }); + } + + private static ClosedListModelCreateObject GetClosedListSample() + { + //// { + //// "name": "States", + //// "sublists": + //// [ + //// { + //// "canonicalForm": "New York", + //// "list": [ "ny", "new york" ] + //// }, + //// { + //// "canonicalForm": "Washington", + //// "list": [ "wa", "washington" ] + //// }, + //// { + //// "canonicalForm": "California", + //// "list": [ "ca", "california", "calif.", "cal." ] + //// } + //// ] + //// } + + return new ClosedListModelCreateObject + { + Name = "States", + SubLists = new List() + { + new WordListObject( + "New York", + new List() { "NY", "New York" }), + + new WordListObject( + "Washington", + new List() { "WA", "Washington" }), + + new WordListObject( + "California", + new List() { "CA", "California", "Calif.", "Cal." }) + } + }; + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelEntitiesTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelEntitiesTests.cs new file mode 100644 index 000000000000..eab8b9bae49e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelEntitiesTests.cs @@ -0,0 +1,146 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System.Linq; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class ModelSimpleEntitiesTests : BaseTest + { + private const string versionId = "0.1"; + + [Fact] + public void ListEntities() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddEntityAsync(appId, versionId, new ModelCreateObject + { + Name = "Existing Entity Test" + }); + + var results = await client.Model.ListEntitiesAsync(appId, versionId); + + Assert.NotEqual(0, results.Count); + Assert.Contains(results, o => o.Name == "Existing Entity Test"); + + await client.Model.DeleteEntityAsync(appId, versionId, entityId); + }); + } + + [Fact] + public void GetEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddEntityAsync(appId, versionId, new ModelCreateObject + { + Name = "New Entity Test" + }); + + var result = await client.Model.GetEntityAsync(appId, versionId, entityId); + + Assert.NotNull(result); + Assert.Equal("New Entity Test", result.Name); + Assert.Equal("Entity Extractor", result.ReadableType); + + await client.Model.DeleteEntityAsync(appId, versionId, entityId); + }); + } + + [Fact] + public void AddEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddEntityAsync(appId, versionId, new ModelCreateObject + { + Name = "New Entity Test" + }); + + var result = await client.Model.GetEntityAsync(appId, versionId, entityId); + + Assert.NotNull(result); + Assert.Equal("New Entity Test", result.Name); + Assert.Equal("Entity Extractor", result.ReadableType); + + await client.Model.DeleteEntityAsync(appId, versionId, entityId); + }); + } + + [Fact] + public void UpdateEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddEntityAsync(appId, versionId, new ModelCreateObject + { + Name = "Rename Entity Test" + }); + + await client.Model.UpdateEntityAsync(appId, versionId, entityId, new ModelUpdateObject + { + Name = "Entity Test Renamed" + }); + + var result = await client.Model.GetEntityAsync(appId, versionId, entityId); + + Assert.NotNull(result); + Assert.Equal("Entity Test Renamed", result.Name); + + await client.Model.DeleteEntityAsync(appId, versionId, entityId); + }); + } + + [Fact] + public void DeleteEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddEntityAsync(appId, versionId, new ModelCreateObject + { + Name = "Delete Entity Test" + }); + + await client.Model.DeleteEntityAsync(appId, versionId, entityId); + + var results = await client.Model.ListEntitiesAsync(appId, versionId); + + Assert.DoesNotContain(results, o => o.Id == entityId); + }); + } + + [Fact] + public void GetEntitySuggestions_ReturnsEmpty() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddEntityAsync(appId, versionId, new ModelCreateObject + { + Name = "Suggestions Entity Test" + }); + + var results = await client.Model.GetEntitySuggestionsAsync(appId, versionId, entityId); + var count = results.SelectMany(o => o.EntityPredictions).Count(o => o.EntityName == "Suggestions Entity Test"); + + await client.Model.DeleteEntityAsync(appId, versionId, entityId); + + Assert.Equal(0, count); + }); + } + + [Fact] + public void GetEntitySuggestions_ReturnsResults() + { + UseClientFor(async client => + { + var entityId = (await client.Model.ListEntitiesAsync(appId, versionId)).Single(o => o.Name == "RoomType").Id; + + var results = await client.Model.GetEntitySuggestionsAsync(appId, versionId, entityId); + var count = results.SelectMany(o => o.EntityPredictions).Count(o => o.EntityName == "RoomType"); + + Assert.NotEqual(0, count); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelIntentsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelIntentsTests.cs new file mode 100644 index 000000000000..4bfdf07c9008 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelIntentsTests.cs @@ -0,0 +1,124 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Linq; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class ModelIntentsTests : BaseTest + { + private const string versionId = "0.1"; + + [Fact] + public void ListIntents() + { + UseClientFor(async client => + { + var intents = await client.Model.ListIntentsAsync(appId, versionId); + + Assert.True(intents.All(i => i.ReadableType.Equals("Intent Classifier"))); + }); + } + + [Fact] + public void AddIntent() + { + UseClientFor(async client => + { + var newIntent = new ModelCreateObject + { + Name = "TestIntent" + }; + + var newIntentId = await client.Model.AddIntentAsync(appId, versionId, newIntent); + var intents = await client.Model.ListIntentsAsync(appId, versionId); + await client.Model.DeleteIntentAsync(appId, versionId, newIntentId); + + Assert.True(newIntentId != Guid.Empty); + Assert.Contains(intents, i => i.Id.Equals(newIntentId) && i.Name.Equals(newIntent.Name)); + }); + } + + [Fact] + public void GetIntent() + { + UseClientFor(async client => + { + var intentId = await client.Model.AddIntentAsync(appId, versionId, new ModelCreateObject + { + Name = "TestIntent" + }); + + var intent = await client.Model.GetIntentAsync(appId, versionId, intentId); + await client.Model.DeleteIntentAsync(appId, versionId, intentId); + + Assert.Equal(intentId, intent.Id); + Assert.Equal("TestIntent", intent.Name); + }); + } + + [Fact] + public void UpdateIntent() + { + UseClientFor(async client => + { + var intentId = await client.Model.AddIntentAsync(appId, versionId, new ModelCreateObject + { + Name = "TestIntent" + }); + + var newName = new ModelUpdateObject + { + Name = "UpdateTest" + }; + + var intent = await client.Model.GetIntentAsync(appId, versionId, intentId); + await client.Model.UpdateIntentAsync(appId, versionId, intentId, newName); + var newIntent = await client.Model.GetIntentAsync(appId, versionId, intentId); + await client.Model.DeleteIntentAsync(appId, versionId, intentId); + + Assert.Equal(intent.Id, newIntent.Id); + Assert.NotEqual(intent.Name, newIntent.Name); + Assert.Equal(newName.Name, newIntent.Name); + }); + } + + [Fact] + public void DeleteIntent() + { + UseClientFor(async client => + { + var intentId = await client.Model.AddIntentAsync(appId, versionId, new ModelCreateObject + { + Name = "TestIntent" + }); + + var intents = await client.Model.ListIntentsAsync(appId, versionId); + await client.Model.DeleteIntentAsync(appId, versionId, intentId); + var intentsWithoutDeleted = await client.Model.ListIntentsAsync(appId, versionId); + + Assert.Contains(intents, i => i.Id.Equals(intentId)); + Assert.DoesNotContain(intentsWithoutDeleted, i => i.Id.Equals(intentId)); + }); + } + + [Fact] + public void GetIntentSuggestions() + { + UseClientFor(async client => + { + var intentId = await client.Model.AddIntentAsync(appId, versionId, new ModelCreateObject + { + Name = "TestIntent" + }); + + var intent = await client.Model.GetIntentAsync(appId, versionId, intentId); + var suggestions = await client.Model.GetIntentSuggestionsAsync(appId, versionId, intentId); + await client.Model.DeleteIntentAsync(appId, versionId, intentId); + + Assert.Contains(suggestions, s => s.IntentPredictions.Any(i => i.Name.Equals(intent.Name))); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelPrebuiltDomainTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelPrebuiltDomainTests.cs new file mode 100644 index 000000000000..143e9e484617 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelPrebuiltDomainTests.cs @@ -0,0 +1,160 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using System; + using System.Linq; + using Xunit; + + public class ModelPrebuiltDomainTests: BaseTest + { + [Fact] + public void AddCustomPrebuiltDomain() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltDomainToAdd = new PrebuiltDomainCreateBaseObject + { + DomainName = "Gaming" + }; + + var results = await client.Model.AddCustomPrebuiltDomainAsync(appId, version, prebuiltDomainToAdd); + var prebuiltModels = await client.Model.ListCustomPrebuiltModelsAsync(appId, version); + + foreach (var result in results) + { + Assert.True(result != Guid.Empty); + Assert.Contains(prebuiltModels, m => m.Id.Equals(result)); + } + }); + } + + [Fact] + public void DeleteCustomPrebuiltDomain() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltDomain = new PrebuiltDomainCreateBaseObject + { + DomainName = "Gaming" + }; + + var results = await client.Model.AddCustomPrebuiltDomainAsync(appId, version, prebuiltDomain); + var prebuiltModels = await client.Model.ListCustomPrebuiltModelsAsync(appId, version); + + Assert.Contains(prebuiltModels, o => o.CustomPrebuiltDomainName == "Gaming"); + + await client.Model.DeleteCustomPrebuiltDomainAsync(appId, version, prebuiltDomain.DomainName); + + prebuiltModels = await client.Model.ListCustomPrebuiltModelsAsync(appId, version); + + Assert.DoesNotContain(prebuiltModels, o => o.CustomPrebuiltDomainName == "Gaming"); + }); + } + + [Fact] + public void ListCustomPrebuiltEntities() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltDomain = new PrebuiltDomainCreateBaseObject + { + DomainName = "Gaming" + }; + + var results = await client.Model.AddCustomPrebuiltDomainAsync(appId, version, prebuiltDomain); + var prebuiltEntities = await client.Model.ListCustomPrebuiltEntitiesAsync(appId, version); + + Assert.Contains(prebuiltEntities, entity => entity.CustomPrebuiltDomainName == prebuiltDomain.DomainName); + }); + } + + [Fact] + public void AddCustomPrebuiltEntity() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltModel = new PrebuiltDomainModelCreateObject + { + DomainName = "Camera", + ModelName = "AppName" + }; + + var guidModel = await client.Model.AddCustomPrebuiltEntityAsync(appId, version, prebuiltModel); + var prebuiltEntities = await client.Model.ListCustomPrebuiltEntitiesAsync(appId, version); + + Assert.Contains(prebuiltEntities, entity => entity.Id == guidModel); + }); + } + + [Fact] + public void ListCustomPrebuiltIntents() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltDomain = new PrebuiltDomainCreateBaseObject + { + DomainName = "Gaming" + }; + + var results = await client.Model.AddCustomPrebuiltDomainAsync(appId, version, prebuiltDomain); + var prebuiltIntents = await client.Model.ListCustomPrebuiltIntentsAsync(appId, version); + + Assert.Contains(prebuiltIntents, entity => entity.CustomPrebuiltDomainName == prebuiltDomain.DomainName); + }); + } + + [Fact] + public void AddCustomPrebuiltIntent() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltModel = new PrebuiltDomainModelCreateObject + { + DomainName = "Calendar", + ModelName = "Add" + }; + + var guidModel = await client.Model.AddCustomPrebuiltIntentAsync(appId, version, prebuiltModel); + var prebuiltIntents = await client.Model.ListCustomPrebuiltIntentsAsync(appId, version); + + await client.Model.DeleteIntentAsync(appId, version, guidModel); + + Assert.Contains(prebuiltIntents, entity => entity.Id == guidModel); + }); + } + + [Fact] + public void ListCustomPrebuiltModels() + { + UseClientFor(async client => + { + var versionsApp = await client.Versions.ListAsync(appId); + var version = versionsApp.FirstOrDefault().Version; + var prebuiltDomain = new PrebuiltDomainCreateBaseObject + { + DomainName = "Calendar" + }; + + var results = await client.Model.AddCustomPrebuiltDomainAsync(appId, version, prebuiltDomain); + var prebuiltModels = await client.Model.ListCustomPrebuiltModelsAsync(appId, version); + + var validTypes = new string[] { "Intent Classifier", "Entity Extractor" }; + + Assert.True(prebuiltModels.All(m => validTypes.Contains(m.ReadableType))); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelTests.cs new file mode 100644 index 000000000000..76fd064f358f --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelTests.cs @@ -0,0 +1,271 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Collections.Generic; + using System.Linq; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class ModelTests : BaseTest + { + [Fact] + public void ListCompositeEntities() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddCompositeEntityAsync(appId, "0.1", new CompositeEntityModel(new List() { "datetime" }, name: "CompositeTest")); + var result = await client.Model.ListCompositeEntitiesAsync(appId, "0.1"); + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", entityId); + + Assert.NotEmpty(result); + }); + } + + [Fact] + public void AddCompositeEntity() + { + UseClientFor(async client => + { + var entity = new CompositeEntityModel(new List() { "datetime" }, name: "CompositeTest"); + var result = await client.Model.AddCompositeEntityAsync(appId, "0.1", entity); + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", result); + + Assert.True(result != Guid.Empty); + }); + } + + [Fact] + public void GetCompositeEntity() + { + UseClientFor(async client => + { + var entity = new CompositeEntityModel(new List() { "datetime" }, name: "CompositeTest"); + var entityId = await client.Model.AddCompositeEntityAsync(appId, "0.1", entity); + var result = await client.Model.GetCompositeEntityAsync(appId, "0.1", entityId); + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", entityId); + + Assert.True(result.Id != Guid.Empty); + }); + } + + [Fact] + public void UpdateCompositeEntity() + { + UseClientFor(async client => + { + var entity = new CompositeEntityModel(new List() { "datetime" }, name: "CompositeTest"); + var entityId = await client.Model.AddCompositeEntityAsync(appId, "0.1", entity); + await client.Model.UpdateCompositeEntityAsync(appId, "0.1", entityId, new CompositeEntityModel(new List() { "datetime" }, name: "HierarchicalTestUpdate")); + + var entities = await client.Model.ListCompositeEntitiesAsync(appId, "0.1"); + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", entityId); + + Assert.Equal("HierarchicalTestUpdate", entities.Single(e => e.Id == entityId).Name); + }); + } + + [Fact] + public void DeleteCompositeEntity() + { + UseClientFor(async client => + { + var entity = new CompositeEntityModel(new List() { "datetime" }, name: "CompositeTest"); + var entityId = await client.Model.AddCompositeEntityAsync(appId, "0.1", entity); + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", entityId); + + var entities = await client.Model.ListCompositeEntitiesAsync(appId, "0.1"); + Assert.DoesNotContain(entities, e => e.Id == entityId); + }); + } + + [Fact] + public void AddCompositeEntityChild() + { + UseClientFor(async client => + { + var childEntityId = await client.Model.AddEntityAsync(appId, "0.1", new ModelCreateObject("ChildTest")); + var entity = new CompositeEntityModel(new List() { "datetime" }, name: "CompositeTest"); + var entityId = await client.Model.AddCompositeEntityAsync(appId, "0.1", entity); + + var child = new CompositeChildModelCreateObject("ChildTest"); + var result = await client.Model.AddCompositeEntityChildAsync(appId, "0.1", entityId, child); + + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", entityId); + await client.Model.DeleteEntityAsync(appId, "0.1", childEntityId); + + Assert.True(result != Guid.Empty); + }); + } + + [Fact] + public void DeleteCompositeEntityChild() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddCompositeEntityAsync(appId, "0.1", new CompositeEntityModel(new List() { "datetime", "email" }, name: "CompositeTest")); + var entity = await client.Model.GetCompositeEntityAsync(appId, "0.1", entityId); + var childEntityId = entity.Children.Last().Id; + + await client.Model.DeleteCompositeEntityChildAsync(appId, "0.1", entity.Id, childEntityId); + + var entities = await client.Model.ListCompositeEntitiesAsync(appId, "0.1"); + await client.Model.DeleteCompositeEntityAsync(appId, "0.1", entityId); + + Assert.DoesNotContain(entities, e => e.Id == entity.Id && e.Children.Any(c => c.Id == childEntityId)); + }); + } + + [Fact] + public void ListHierarchicalEntities() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + var result = await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1"); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.NotEmpty(result); + }); + } + + [Fact] + public void AddHierarchicalEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.True(entityId != Guid.Empty); + }); + } + + [Fact] + public void GetHierarchicalEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + var result = await client.Model.GetHierarchicalEntityAsync(appId, "0.1", entityId); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.True(result.Id != Guid.Empty); + }); + } + + [Fact] + public void UpdateHierarchicalEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + await client.Model.UpdateHierarchicalEntityAsync(appId, "0.1", entityId, new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTestUpdate")); + var entities = await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1"); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.Equal("HierarchicalTestUpdate", entities.Single(e => e.Id == entityId).Name); + }); + } + + [Fact] + public void DeleteHierarchicalEntity() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + var entities = await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1"); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + entities = await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1"); + Assert.DoesNotContain(entities, e => e.Id == entityId); + }); + } + + [Fact] + public void GetHierarchicalEntityChild() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + var entity = await client.Model.GetHierarchicalEntityAsync(appId, "0.1", entityId); + var result = await client.Model.GetHierarchicalEntityChildAsync(appId, "0.1", entityId, entity.Children.First().Id); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.True(result.Id != Guid.Empty); + }); + } + + [Fact] + public void DeleteHierarchicalEntityChild() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest", "AnotherChildTest" }, name: "HierarchicalTest")); + var entity = (await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1")).SingleOrDefault(o => o.Id == entityId); + var childEntityId = entity.Children.First().Id; + + await client.Model.DeleteHierarchicalEntityChildAsync(appId, "0.1", entityId, childEntityId); + var entities = await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1"); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.DoesNotContain(entities, e => e.Id == entityId && e.Children.Any(c => c.Id == childEntityId)); + }); + } + + [Fact] + public void UpdateHierarchicalEntityChild() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + var entity = await client.Model.GetHierarchicalEntityAsync(appId, "0.1", entityId); + var childEntity = entity.Children.Last(); + var updateEntity = new HierarchicalChildModelUpdateObject("RenamedChildEntity"); + + await client.Model.UpdateHierarchicalEntityChildAsync(appId, "0.1", entity.Id, childEntity.Id, updateEntity); + + var entities = await client.Model.ListHierarchicalEntitiesAsync(appId, "0.1"); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + entity = entities.Last(e => e.Id == entity.Id); + childEntity = entity.Children.Last(c => c.Id == childEntity.Id); + Assert.Equal("RenamedChildEntity", childEntity.Name); + }); + } + + [Fact] + public void AddHierarchicalEntityChild() + { + UseClientFor(async client => + { + var entityId = await client.Model.AddHierarchicalEntityAsync(appId, "0.1", new HierarchicalEntityModel(new List() { "ChildTest" }, name: "HierarchicalTest")); + var childEntity = new HierarchicalChildModelCreateObject + { + Name = "NewChildEntity" + }; + + var result = await client.Model.AddHierarchicalEntityChildAsync(appId, "0.1", entityId, childEntity); + await client.Model.DeleteHierarchicalEntityAsync(appId, "0.1", entityId); + + Assert.True(result != Guid.Empty); + }); + } + + [Fact] + public void ListModels() + { + UseClientFor(async client => + { + var versionId = "0.1"; + var entitys = await client.Model.ListModelsAsync(appId, versionId); + + foreach (var entity in entitys) + { + var entityInfo = await client.Model.GetEntityAsync(appId, versionId, entity.Id); + Assert.Equal(entity.Name, entityInfo.Name); + } + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelprebuiltsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelprebuiltsTests.cs new file mode 100644 index 000000000000..717a5d4ad45c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/ModelprebuiltsTests.cs @@ -0,0 +1,98 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using System; + using System.Linq; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Xunit; + + public class ModelPrebuiltsTests : BaseTest + { + [Fact] + public void ListPrebuiltEntities() + { + UseClientFor(async client => + { + var version = "0.1"; + var prebuiltEntities = await client.Model.ListPrebuiltEntitiesAsync(appId, version); + + Assert.True(prebuiltEntities.Count > 0); + }); + } + + [Fact] + public void ListPrebuilts() + { + UseClientFor(async client => + { + var version = "0.1"; + var addedId = (await client.Model.AddPrebuiltAsync(appId, version, new string[] + { + "number" + })).First().Id; + + var prebuiltEntities = await client.Model.ListPrebuiltsAsync(appId, version); + await client.Model.DeletePrebuiltAsync(appId, version, addedId); + + Assert.True(prebuiltEntities.Count > 0); + Assert.All(prebuiltEntities, e => e.ReadableType.Equals("Prebuilt Entity Extractor")); + }); + } + + [Fact] + public void AddPrebuilt() + { + UseClientFor(async client => + { + var version = "0.1"; + var prebuiltEntitiesToAdd = new string[] + { + "number", + "ordinal" + }; + var prebuiltEntitiesAdded = await client.Model.AddPrebuiltAsync(appId, version, prebuiltEntitiesToAdd); + foreach (var added in prebuiltEntitiesAdded) + { + await client.Model.DeletePrebuiltAsync(appId, version, added.Id); + } + + Assert.All(prebuiltEntitiesAdded, e => prebuiltEntitiesToAdd.Contains(e.Name)); + }); + } + + [Fact] + public void GetPrebuilt() + { + UseClientFor(async client => + { + var version = "0.1"; + var addedId = (await client.Model.AddPrebuiltAsync(appId, version, new string[] + { + "number" + })).First().Id; + + var prebuiltEntity = await client.Model.GetPrebuiltAsync(appId, version, addedId); + await client.Model.DeletePrebuiltAsync(appId, version, addedId); + + Assert.Equal(addedId, prebuiltEntity.Id); + }); + } + + [Fact] + public void DeletePrebuilt() + { + UseClientFor(async client => + { + var version = "0.1"; + var addedId = (await client.Model.AddPrebuiltAsync(appId, version, new string[] + { + "number" + })).First().Id; + + await client.Model.DeletePrebuiltAsync(appId, version, addedId); + var prebuiltEntitiesWithoutDeleted = await client.Model.ListPrebuiltsAsync(appId, version); + + Assert.DoesNotContain(prebuiltEntitiesWithoutDeleted, e => e.Id.Equals(addedId)); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/PermissionsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/PermissionsTests.cs new file mode 100644 index 000000000000..a57191be0ec2 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/PermissionsTests.cs @@ -0,0 +1,76 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using Xunit; + + public class PermissionsTests : BaseTest + { + [Fact] + public void ListPermissions() + { + UseClientFor(async client => + { + var result = await client.Permissions.ListAsync(appId); + + Assert.Equal("owner.user@microsoft.com", result.Owner); + Assert.Equal(new string[] { "guest@outlook.com", "invited.user@live.com" }, result.Emails); + }); + } + + [Fact] + public void AddPermission() + { + UseClientFor(async client => + { + var userToAdd = new UserCollaborator + { + Email = "guest@outlook.com" + }; + + await client.Permissions.AddAsync(appId, userToAdd); + var result = await client.Permissions.ListAsync(appId); + + Assert.True(result.Emails.Contains(userToAdd.Email)); + }); + } + + [Fact] + public void DeletePermission() + { + UseClientFor(async client => + { + var userToRemove = new UserCollaborator + { + Email = "guest@outlook.com" + }; + + await client.Permissions.DeleteAsync(appId, userToRemove); + var result = await client.Permissions.ListAsync(appId); + + Assert.False(result.Emails.Contains(userToRemove.Email)); + }); + } + + [Fact] + public void UpdatePermission() + { + UseClientFor(async client => + { + var collaborators = new CollaboratorsArray + { + Emails = new string[] + { + "guest@outlook.com", + "invited.user@live.com" + } + }; + + await client.Permissions.UpdateAsync(appId, collaborators); + var result = await client.Permissions.ListAsync(appId); + + Assert.Equal(collaborators.Emails, result.Emails); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/TrainTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/TrainTests.cs new file mode 100644 index 000000000000..c20e13bb19ef --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/TrainTests.cs @@ -0,0 +1,69 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using System.Diagnostics; + using System.Linq; + using System.Threading.Tasks; + using Xunit; + + public class TrainTests : BaseTest + { + [Fact] + public void GetStatus() + { + UseClientFor(async client => + { + var versionId = "0.1"; + var result = await client.Train.GetStatusAsync(appId, versionId); + + foreach (var trainResult in result) + { + switch (trainResult.Details.Status) + { + case "Success": + Assert.NotNull(trainResult.Details.TrainingDateTime); + Assert.Null(trainResult.Details.FailureReason); + break; + case "Fail": + Assert.NotNull(trainResult.Details.FailureReason); + Assert.Null(trainResult.Details.TrainingDateTime); + break; + case "UpToDate": + Assert.NotNull(trainResult.Details.TrainingDateTime); + Assert.Null(trainResult.Details.FailureReason); + break; + case "InProgress": + Assert.Null(trainResult.Details.TrainingDateTime); + Assert.Null(trainResult.Details.FailureReason); + break; + } + } + + }); + } + + + [Fact] + public void TrainVersion() + { + UseClientFor(async client => + { + var versionId = "0.1"; + + var result = await client.Train.TrainVersionAsync(appId, versionId); + var finishStates = new string[] { "Success", "UpToDate" }; + + while (!finishStates.Contains(result.Status)) + { + await Task.Delay(1000); + result = await client.Train.TrainVersionAsync(appId, versionId); + } + + result = await client.Train.TrainVersionAsync(appId, versionId); + + Assert.Equal("UpToDate", result.Status); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/VersionsTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/VersionsTests.cs new file mode 100644 index 000000000000..aa791303b112 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Luis/VersionsTests.cs @@ -0,0 +1,247 @@ +namespace LUIS.Programmatic.Tests.Luis +{ + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic; + using Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models; + using System.Collections.Generic; + using System.Linq; + using Xunit; + + public class VersionsTests: BaseTest + { + [Fact] + public void ListVersions() + { + UseClientFor(async client => + { + var results = await client.Versions.ListAsync(appId); + + Assert.True(results.Count > 0); + foreach (var version in results) + { + Assert.NotNull(version.Version); + } + }); + } + + [Fact] + public void GetVersion() + { + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + foreach (var version in versions) + { + var result = await client.Versions.GetAsync(appId, version.Version); + Assert.Equal(version.Version, result.Version); + Assert.Equal(version.TrainingStatus, result.TrainingStatus); + } + }); + } + + [Fact] + public void UpdateVersion() + { + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var first = versions.FirstOrDefault(); + var versionToUpdate = new TaskUpdateObject + { + Version = "test" + }; + + await client.Versions.UpdateAsync(appId, first.Version, versionToUpdate); + var versionsWithUpdate = await client.Versions.ListAsync(appId); + + Assert.Contains(versionsWithUpdate, v => v.Version.Equals(versionToUpdate.Version)); + Assert.DoesNotContain(versionsWithUpdate, v => v.Version.Equals(first.Version)); + + await client.Versions.UpdateAsync(appId, versionToUpdate.Version, new TaskUpdateObject + { + Version = first.Version + }); + }); + } + + [Fact] + public void DeleteVersion() + { + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var first = versions.FirstOrDefault(); + var testVersion = new TaskUpdateObject + { + Version = "test" + }; + + var newVersion = await client.Versions.CloneAsync(appId, first.Version, testVersion); + + var versionsWithTest = await client.Versions.ListAsync(appId); + + Assert.Contains(versionsWithTest, v => v.Version.Equals(newVersion)); + + await client.Versions.DeleteAsync(appId, newVersion); + + var versionsWithoutTest = await client.Versions.ListAsync(appId); + + Assert.DoesNotContain(versionsWithoutTest, v => v.Version.Equals(newVersion)); + }); + } + + [Fact] + public void CloneVersion() + { + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var first = versions.FirstOrDefault(); + var testVersion = new TaskUpdateObject + { + Version = "test" + }; + + Assert.DoesNotContain(versions, v => v.Version.Equals(testVersion.Version)); + + var newVersion = await client.Versions.CloneAsync(appId, first.Version, testVersion); + + var versionsWithTest = await client.Versions.ListAsync(appId); + + Assert.Contains(versionsWithTest, v => v.Version.Equals(newVersion)); + + await client.Versions.DeleteAsync(appId, newVersion); + }); + } + + [Fact] + public void DeleteUnlabelledUtterance() + { + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var versionId = versions.FirstOrDefault().Version; + var intents = await client.Model.ListIntentsAsync(appId, versionId); + var intentId = intents.FirstOrDefault().Id; + + var suggestions = await client.Model.GetIntentSuggestionsAsync(appId, versionId, intentId); + + var utteranceToDelete = suggestions.FirstOrDefault().Text; + + await client.Versions.DeleteUnlabelledUtteranceAsync(appId, versionId, utteranceToDelete); + + var suggestionsWithoutDeleted = await client.Model.GetIntentSuggestionsAsync(appId, versionId, intentId); + + Assert.DoesNotContain(suggestionsWithoutDeleted, v => v.Text.Equals(utteranceToDelete)); + }); + } + + [Fact] + public void ListVersions_ErrorSubscriptionKey() + { + var headers = new Dictionary> + { + { "Ocp-Apim-Subscription-Key", new List { "3eff76bb229942899255402725b72933" } } + }; + var errorCode = "401"; + UseClientFor(async client => + { + var exception = await Assert.ThrowsAsync(async () => await client.Versions.ListWithHttpMessagesAsync(appId, customHeaders: headers)); + var error = exception.Body; + + Assert.Equal(errorCode, error.Code); + Assert.Contains("subscription key", error.Message); + }); + } + + [Fact] + public void ListVersions_ErrorAppId() + { + var errorCode = "BadArgument"; + UseClientFor(async client => + { + var exception = await Assert.ThrowsAsync(async () => await client.Versions.ListAsync(appId_error)); + var error = exception.Body; + + Assert.Equal(errorCode, error.Code); + Assert.Contains("application", error.Message); + }); + } + + [Fact] + public void GetVersion_ErrorVersion() + { + var errorCode = "BadArgument"; + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var errorVersion = versions.FirstOrDefault().Version + "_"; + var exeption = await Assert.ThrowsAsync(async () => await client.Versions.GetAsync(appId, errorVersion)); + var error = exeption.Body; + + Assert.Equal(errorCode, error.Code); + Assert.Contains("task", error.Message); + }); + } + + [Fact] + public void UpdateVersion_ErrorModel() + { + var errorCode = "BadArgument"; + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var first = versions.FirstOrDefault(); + var versionToUpdate = new TaskUpdateObject + { + Version = "" + }; + + var exeption = await Assert.ThrowsAsync(async () => await client.Versions.UpdateAsync(appId, first.Version, versionToUpdate)); + var error = exeption.Body; + + Assert.Equal(errorCode, error.Code); + Assert.Contains("Version Id", error.Message); + }); + } + + [Fact] + public void DeleteVersion_ErrorModel() + { + var errorCode = "BadArgument"; + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var first = versions.FirstOrDefault(); + + var exeption = await Assert.ThrowsAsync(async () => await client.Versions.DeleteAsync(appId, first.Version + "0")); + var error = exeption.Body; + + Assert.Equal(errorCode, error.Code); + Assert.Contains("task", error.Message); + }); + } + + [Fact] + public void CloneVersion_ErrorModel() + { + var errorCode = "BadArgument"; + UseClientFor(async client => + { + var versions = await client.Versions.ListAsync(appId); + var first = versions.FirstOrDefault(); + var testVersion = new TaskUpdateObject + { + Version = "" + }; + + Assert.DoesNotContain(versions, v => v.Version.Equals(testVersion.Version)); + + var exeption = await Assert.ThrowsAsync(async () => await client.Versions.CloneAsync(appId, first.Version, testVersion)); + var error = exeption.Body; + + Assert.Equal(errorCode, error.Code); + Assert.Contains("Version Id", error.Message); + }); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Microsoft.Azure.CognitiveServices.LUIS.Programmatic.Tests.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Microsoft.Azure.CognitiveServices.LUIS.Programmatic.Tests.csproj new file mode 100644 index 000000000000..06131fdaa425 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/Microsoft.Azure.CognitiveServices.LUIS.Programmatic.Tests.csproj @@ -0,0 +1,28 @@ + + + + Microsoft.Azure.CognitiveServices.LUIS-Programmatic.Tests Class Library + Microsoft.Azure.CognitiveServices.LUIS-Programmatic.Tests + 2.0.0 + + + + netcoreapp1.1 + + + + + + + + + + PreserveNewest + + + + + + + + diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/ImportApp.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/ImportApp.json new file mode 100644 index 000000000000..980adc894eb2 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/ImportApp.json @@ -0,0 +1,252 @@ +{ + "luis_schema_version": "2.1.0", + "versionId": "0.1", + "name": "LuisBot", + "desc": "", + "culture": "en-us", + "intents": [ + { + "name": "dateintent" + }, + { + "name": "Help" + }, + { + "name": "None" + }, + { + "name": "SearchHotels" + }, + { + "name": "ShowHotelsReviews" + } + ], + "entities": [ + { + "name": "AirportCode" + }, + { + "name": "Hotel" + } + ], + "composites": [], + "closedLists": [], + "bing_entities": [ + "datetimeV2", + "geography" + ], + "model_features": [ + { + "name": "Near", + "mode": true, + "words": "near,around,close,nearby", + "activated": true + }, + { + "name": "Show", + "mode": true, + "words": "show,find,look,search", + "activated": true + } + ], + "regex_features": [ + { + "name": "AirportCodeRegex", + "pattern": "[a-z]{3}", + "activated": true + } + ], + "utterances": [ + { + "text": "i need help", + "intent": "Help", + "entities": [] + }, + { + "text": "help me", + "intent": "Help", + "entities": [] + }, + { + "text": "tomorrow", + "intent": "dateintent", + "entities": [] + }, + { + "text": "search for hotels in seattle", + "intent": "SearchHotels", + "entities": [] + }, + { + "text": "what can i do?", + "intent": "Help", + "entities": [] + }, + { + "text": "next monday", + "intent": "dateintent", + "entities": [] + }, + { + "text": "next year", + "intent": "dateintent", + "entities": [] + }, + { + "text": "look for hotels in miami", + "intent": "SearchHotels", + "entities": [] + }, + { + "text": "show me hotels in california", + "intent": "SearchHotels", + "entities": [] + }, + { + "text": "show me the reviews of the amazing bot resort", + "intent": "ShowHotelsReviews", + "entities": [ + { + "entity": "Hotel", + "startPos": 23, + "endPos": 44 + } + ] + }, + { + "text": "can i see the reviews of extended bot hotel?", + "intent": "ShowHotelsReviews", + "entities": [ + { + "entity": "Hotel", + "startPos": 25, + "endPos": 42 + } + ] + }, + { + "text": "find reviews of hotelxya", + "intent": "ShowHotelsReviews", + "entities": [ + { + "entity": "Hotel", + "startPos": 16, + "endPos": 23 + } + ] + }, + { + "text": "show me reviews of the amazing hotel", + "intent": "ShowHotelsReviews", + "entities": [ + { + "entity": "Hotel", + "startPos": 19, + "endPos": 35 + } + ] + }, + { + "text": "what are the available options?", + "intent": "Help", + "entities": [] + }, + { + "text": "best hotels in seattle", + "intent": "SearchHotels", + "entities": [] + }, + { + "text": "hotels in los angeles", + "intent": "SearchHotels", + "entities": [] + }, + { + "text": "can you show me hotels from los angeles?", + "intent": "SearchHotels", + "entities": [] + }, + { + "text": "can you show me the reviews of the amazing resort & hotel", + "intent": "ShowHotelsReviews", + "entities": [ + { + "entity": "Hotel", + "startPos": 31, + "endPos": 56 + } + ] + }, + { + "text": "what are the reviews of the hotel bot framework?", + "intent": "ShowHotelsReviews", + "entities": [ + { + "entity": "Hotel", + "startPos": 24, + "endPos": 46 + } + ] + }, + { + "text": "find hotels near eze", + "intent": "SearchHotels", + "entities": [ + { + "entity": "AirportCode", + "startPos": 17, + "endPos": 19 + } + ] + }, + { + "text": "where can i stay near nnn?", + "intent": "SearchHotels", + "entities": [ + { + "entity": "AirportCode", + "startPos": 22, + "endPos": 24 + } + ] + }, + { + "text": "show hotels near att airport", + "intent": "SearchHotels", + "entities": [ + { + "entity": "AirportCode", + "startPos": 17, + "endPos": 19 + } + ] + }, + { + "text": "find hotels near agl", + "intent": "SearchHotels", + "entities": [ + { + "entity": "AirportCode", + "startPos": 17, + "endPos": 19 + } + ] + }, + { + "text": "find hotels around eze airport", + "intent": "SearchHotels", + "entities": [ + { + "entity": "AirportCode", + "startPos": 19, + "endPos": 21 + } + ] + }, + { + "text": "01/7", + "intent": "dateintent", + "entities": [] + } + ] +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/AddApplication.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/AddApplication.json new file mode 100644 index 000000000000..15c3c67c8ef1 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/AddApplication.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"New LUIS App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "137" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"02ecb696-55fa-4ac8-8980-282e77db6e03\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/02ecb696-55fa-4ac8-8980-282e77db6e03" + ], + "Apim-Request-Id": [ + "c2867b15-ef92-4a69-9540-f9273f93e690" + ], + "Request-Id": [ + "c2867b15-ef92-4a69-9540-f9273f93e690" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/02ecb696-55fa-4ac8-8980-282e77db6e03" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/02ecb696-55fa-4ac8-8980-282e77db6e03", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8wMmVjYjY5Ni01NWZhLTRhYzgtODk4MC0yODJlNzdkYjZlMDM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"02ecb696-55fa-4ac8-8980-282e77db6e03\",\r\n \"name\": \"New LUIS App\",\r\n \"description\": \"New LUIS App\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"IoT\",\r\n \"domain\": \"Comics\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-12T21:54:10Z\",\r\n \"endpoints\": {},\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "272" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ab342f7a-4489-4186-96b7-453416ebf2f5" + ], + "Request-Id": [ + "ab342f7a-4489-4186-96b7-453416ebf2f5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/02ecb696-55fa-4ac8-8980-282e77db6e03", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8wMmVjYjY5Ni01NWZhLTRhYzgtODk4MC0yODJlNzdkYjZlMDM=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "46ee7a3f-b8e6-41c4-804e-d09b4576aaa9" + ], + "Request-Id": [ + "46ee7a3f-b8e6-41c4-804e-d09b4576aaa9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/AddCustomPrebuiltApplication.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/AddCustomPrebuiltApplication.json new file mode 100644 index 000000000000..8cd580caf465 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/AddCustomPrebuiltApplication.json @@ -0,0 +1,128 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jdXN0b21wcmVidWlsdGRvbWFpbnM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Calendar\",\r\n \"culture\": \"en-US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "55" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"73d6bf8a-8b1c-4c7e-84aa-31f5129beb18\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/customprebuiltdomains/73d6bf8a-8b1c-4c7e-84aa-31f5129beb18" + ], + "Apim-Request-Id": [ + "7fb3a834-50f8-42ca-abdd-b53b5a88b6a4" + ], + "Request-Id": [ + "7fb3a834-50f8-42ca-abdd-b53b5a88b6a4" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/customprebuiltdomains/73d6bf8a-8b1c-4c7e-84aa-31f5129beb18" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/73d6bf8a-8b1c-4c7e-84aa-31f5129beb18", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy83M2Q2YmY4YS04YjFjLTRjN2UtODRhYS0zMWY1MTI5YmViMTg=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "553e9529-ce9a-4b23-8cac-3f81fe18a887" + ], + "Request-Id": [ + "553e9529-ce9a-4b23-8cac-3f81fe18a887" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/DeleteApplication.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/DeleteApplication.json new file mode 100644 index 000000000000..9a460bee0a5c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/DeleteApplication.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"LUIS App to be deleted\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "147" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"99daaa48-7e7e-49ec-93ab-73ffd5808218\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/99daaa48-7e7e-49ec-93ab-73ffd5808218" + ], + "Apim-Request-Id": [ + "fb42c49a-91a4-4e26-aa4c-e9201d2a6356" + ], + "Request-Id": [ + "fb42c49a-91a4-4e26-aa4c-e9201d2a6356" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/99daaa48-7e7e-49ec-93ab-73ffd5808218" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/99daaa48-7e7e-49ec-93ab-73ffd5808218", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy85OWRhYWE0OC03ZTdlLTQ5ZWMtOTNhYi03M2ZmZDU4MDgyMTg=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c1baf463-cc66-47d0-a34a-05c087d1aa2e" + ], + "Request-Id": [ + "c1baf463-cc66-47d0-a34a-05c087d1aa2e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"591ecf5e-7932-4a40-8804-0b765d4916b7\",\r\n \"name\": \"AdaptiveCards App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 4,\r\n \"createdDateTime\": \"2017-06-26T14:24:53Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.4.745\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/591ecf5e-7932-4a40-8804-0b765d4916b7\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T03:35:28Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 2,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"d0cecf92-96d8-476a-bc3c-9a899d89dec3\",\r\n \"name\": \"AttachmentsSandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-27T15:03:52Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/d0cecf92-96d8-476a-bc3c-9a899d89dec3\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T03:46:10Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"ecbb37c0-afe4-4fe9-a141-8b1865e4baaa\",\r\n \"name\": \"BotBuilder-Samples-LUIS\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-05-16T18:14:36Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/ecbb37c0-afe4-4fe9-a141-8b1865e4baaa\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"08890aa0c33a46788d5e85de465aba35\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T18:20:45Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 63,\r\n \"activeVersion\": null\r\n },\r\n {\r\n \"id\": \"4d1ac8a1-af7d-4458-aa8e-ed94e8e4b96f\",\r\n \"name\": \"ImportExportSandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-27T17:31:47Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/4d1ac8a1-af7d-4458-aa8e-ed94e8e4b96f\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-07-07T21:23:22Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 210,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"name\": \"LUIS BOT\",\r\n \"description\": \"LUIS BOT\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"Iot\",\r\n \"domain\": \"Travel & Local\",\r\n \"versionsCount\": 2,\r\n \"createdDateTime\": \"2017-02-09T14:01:44Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-11-30T04:08:13Z\"\r\n },\r\n \"STAGING\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": true,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-11-28T19:42:18Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 1049,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"2370fb9d-7dbc-4898-a361-a742cf290766\",\r\n \"name\": \"LuisActionBinding\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 5,\r\n \"createdDateTime\": \"2017-03-27T17:46:12Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/2370fb9d-7dbc-4898-a361-a742cf290766\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T18:20:47Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 566,\r\n \"activeVersion\": \"0.2\"\r\n },\r\n {\r\n \"id\": \"537cb4f2-669c-4eaf-9c7d-79360d480ecb\",\r\n \"name\": \"LuisBot\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 2,\r\n \"createdDateTime\": \"2017-06-23T14:28:36Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/537cb4f2-669c-4eaf-9c7d-79360d480ecb\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"e98f962fb491460a93b23c0126255038\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-07-21T20:23:28Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 1,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"0dcfade4-3c07-4afb-a775-f0e8a4bcd395\",\r\n \"name\": \"LuisitoHaceIso\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"Bot\",\r\n \"domain\": \"Entertainment,Gaming,Music & Audio,Weather\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-02-06T19:08:39Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/0dcfade4-3c07-4afb-a775-f0e8a4bcd395\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"08890aa0c33a46788d5e85de465aba35\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-03-02T14:56:47Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 840,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"4300a35a-0ecc-45f7-83aa-84be8f0f6fd0\",\r\n \"name\": \"LuisRuntimeSimpleConsoleSample\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-01T20:37:38Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/4300a35a-0ecc-45f7-83aa-84be8f0f6fd0\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-12-01T20:53:48Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"9f324cb7-10be-4e72-92fd-db9afbaf0c55\",\r\n \"name\": \"PcSandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 5,\r\n \"createdDateTime\": \"2017-09-15T14:34:43Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.5.61\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/9f324cb7-10be-4e72-92fd-db9afbaf0c55\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-22T04:53:17Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"fe9c1906-e357-4811-8fb6-6f4d97377ec7\",\r\n \"name\": \"PcSandbox2 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 4,\r\n \"createdDateTime\": \"2017-07-14T19:04:55Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.4.1178\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/fe9c1906-e357-4811-8fb6-6f4d97377ec7\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T20:23:46Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 59,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"8b7a80b4-cc77-4cff-91d1-270f46dfe5cb\",\r\n \"name\": \"PcSandboxBot App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 9,\r\n \"createdDateTime\": \"2017-06-21T16:39:09Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.9.138\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/8b7a80b4-cc77-4cff-91d1-270f46dfe5cb\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-18T19:09:14Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 23,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"eca0e87f-9fe6-43fe-8605-29fee4f179f2\",\r\n \"name\": \"PcSandboxBot2 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-22T16:44:48Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/eca0e87f-9fe6-43fe-8605-29fee4f179f2\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T01:49:38Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 143,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"df8048f3-e10d-4d3b-af86-856bcddf5459\",\r\n \"name\": \"Ramona2 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 3,\r\n \"createdDateTime\": \"2017-09-13T15:09:14Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.3.566\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/df8048f3-e10d-4d3b-af86-856bcddf5459\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T15:40:11Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"19d97549-b0ea-4a06-8dfb-1681c79616bb\",\r\n \"name\": \"Ramona3 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-09-13T17:49:22Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/19d97549-b0ea-4a06-8dfb-1681c79616bb\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T17:49:29Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"6f7f5d65-cd16-4d35-983d-a66cd63f1b68\",\r\n \"name\": \"Ramona4 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 3,\r\n \"createdDateTime\": \"2017-09-13T17:55:08Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.3.1854\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/6f7f5d65-cd16-4d35-983d-a66cd63f1b68\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T19:25:03Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"1f670f54-53d7-48d2-bc5b-4effdfcaaaca\",\r\n \"name\": \"Sandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-07-10T13:59:07Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/1f670f54-53d7-48d2-bc5b-4effdfcaaaca\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-07-10T17:53:47Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 4,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"e247616c-0e5b-4b35-9805-ecba484d140d\",\r\n \"name\": \"testez3 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-22T14:24:35Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/e247616c-0e5b-4b35-9805-ecba484d140d\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-06-26T13:41:56Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 28,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"79bc0eeb-d62f-4a8b-8e83-4692535ee403\",\r\n \"name\": \"testez4 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-23T14:16:42Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/79bc0eeb-d62f-4a8b-8e83-4692535ee403\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T17:22:44Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 51,\r\n \"activeVersion\": \"0.1\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "11015" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "99047843-1044-4cfb-bde1-cf5d2ab375af" + ], + "Request-Id": [ + "99047843-1044-4cfb-bde1-cf5d2ab375af" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/DownloadQueryLogs.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/DownloadQueryLogs.json new file mode 100644 index 000000000000..9c100a2cf9c4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/DownloadQueryLogs.json @@ -0,0 +1,186 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"LUIS App for Query Logs test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "153" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"5bbcd35d-fb54-49eb-809b-c2c384db590d\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/5bbcd35d-fb54-49eb-809b-c2c384db590d" + ], + "Apim-Request-Id": [ + "1a3643f4-a802-4dba-9517-060995a74037" + ], + "Request-Id": [ + "1a3643f4-a802-4dba-9517-060995a74037" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/5bbcd35d-fb54-49eb-809b-c2c384db590d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/5bbcd35d-fb54-49eb-809b-c2c384db590d/querylogs", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy81YmJjZDM1ZC1mYjU0LTQ5ZWItODA5Yi1jMmMzODRkYjU5MGQvcXVlcnlsb2dz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"Query\",\"UTC DateTime\",\"Response\"\r\n", + "ResponseHeaders": { + "Content-Length": [ + "35" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Content-Disposition": [ + "attachment; filename=5bbcd35d-fb54-49eb-809b-c2c384db590d_logs.csv" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0717c47e-4d0d-4f9a-b60b-f471968e01f3" + ], + "Request-Id": [ + "0717c47e-4d0d-4f9a-b60b-f471968e01f3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/5bbcd35d-fb54-49eb-809b-c2c384db590d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy81YmJjZDM1ZC1mYjU0LTQ5ZWItODA5Yi1jMmMzODRkYjU5MGQ=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d1c7fdff-6ba4-4b18-ad0f-5bf88fe84600" + ], + "Request-Id": [ + "d1c7fdff-6ba4-4b18-ad0f-5bf88fe84600" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/GetApplication.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/GetApplication.json new file mode 100644 index 000000000000..2a924aae7896 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/GetApplication.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Existing LUIS App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"c5c8b901-845e-4d99-a218-dedd60e17759\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/c5c8b901-845e-4d99-a218-dedd60e17759" + ], + "Apim-Request-Id": [ + "73441546-e704-41dc-88ed-096ab3ac90d2" + ], + "Request-Id": [ + "73441546-e704-41dc-88ed-096ab3ac90d2" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/c5c8b901-845e-4d99-a218-dedd60e17759" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/c5c8b901-845e-4d99-a218-dedd60e17759", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jNWM4YjkwMS04NDVlLTRkOTktYTIxOC1kZWRkNjBlMTc3NTk=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"c5c8b901-845e-4d99-a218-dedd60e17759\",\r\n \"name\": \"Existing LUIS App\",\r\n \"description\": \"New LUIS App\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"IoT\",\r\n \"domain\": \"Comics\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-12T21:54:32Z\",\r\n \"endpoints\": {},\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "277" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0a93e445-b496-4ff8-95a8-42d06681e0af" + ], + "Request-Id": [ + "0a93e445-b496-4ff8-95a8-42d06681e0af" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/c5c8b901-845e-4d99-a218-dedd60e17759", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jNWM4YjkwMS04NDVlLTRkOTktYTIxOC1kZWRkNjBlMTc3NTk=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "68f8f4bb-dc0d-4933-8009-5728f8f2a3c3" + ], + "Request-Id": [ + "68f8f4bb-dc0d-4933-8009-5728f8f2a3c3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/GetSettings.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/GetSettings.json new file mode 100644 index 000000000000..4bc587fb752b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/GetSettings.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"LUIS App for Settings test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "151" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"44c5f758-c631-4f8e-982b-9a7cbefbfef3\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/44c5f758-c631-4f8e-982b-9a7cbefbfef3" + ], + "Apim-Request-Id": [ + "ac36825b-a3b4-4864-9f91-c6509d310b14" + ], + "Request-Id": [ + "ac36825b-a3b4-4864-9f91-c6509d310b14" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/44c5f758-c631-4f8e-982b-9a7cbefbfef3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/44c5f758-c631-4f8e-982b-9a7cbefbfef3/settings", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80NGM1Zjc1OC1jNjMxLTRmOGUtOTgyYi05YTdjYmVmYmZlZjMvc2V0dGluZ3M=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"44c5f758-c631-4f8e-982b-9a7cbefbfef3\",\r\n \"public\": false\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "60" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "198b8030-07c7-4e84-8b4d-1a5191dc6a23" + ], + "Request-Id": [ + "198b8030-07c7-4e84-8b4d-1a5191dc6a23" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/44c5f758-c631-4f8e-982b-9a7cbefbfef3", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80NGM1Zjc1OC1jNjMxLTRmOGUtOTgyYi05YTdjYmVmYmZlZjM=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "cca471c2-5c0b-4939-aeae-52f6a399ee8f" + ], + "Request-Id": [ + "cca471c2-5c0b-4939-aeae-52f6a399ee8f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListApplications.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListApplications.json new file mode 100644 index 000000000000..6df33f5312f7 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListApplications.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Existing LUIS App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"46c6c270-ebd5-4187-8d76-aea72df0d0bb\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/46c6c270-ebd5-4187-8d76-aea72df0d0bb" + ], + "Apim-Request-Id": [ + "d8e4ad0f-f971-4a8e-9bcd-b659a4a225ec" + ], + "Request-Id": [ + "d8e4ad0f-f971-4a8e-9bcd-b659a4a225ec" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/46c6c270-ebd5-4187-8d76-aea72df0d0bb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"591ecf5e-7932-4a40-8804-0b765d4916b7\",\r\n \"name\": \"AdaptiveCards App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 4,\r\n \"createdDateTime\": \"2017-06-26T14:24:53Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.4.745\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/591ecf5e-7932-4a40-8804-0b765d4916b7\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T03:35:28Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 2,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"d0cecf92-96d8-476a-bc3c-9a899d89dec3\",\r\n \"name\": \"AttachmentsSandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-27T15:03:52Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/d0cecf92-96d8-476a-bc3c-9a899d89dec3\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T03:46:10Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"ecbb37c0-afe4-4fe9-a141-8b1865e4baaa\",\r\n \"name\": \"BotBuilder-Samples-LUIS\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-05-16T18:14:36Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/ecbb37c0-afe4-4fe9-a141-8b1865e4baaa\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"08890aa0c33a46788d5e85de465aba35\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T18:20:45Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 63,\r\n \"activeVersion\": null\r\n },\r\n {\r\n \"id\": \"46c6c270-ebd5-4187-8d76-aea72df0d0bb\",\r\n \"name\": \"Existing LUIS App\",\r\n \"description\": \"New LUIS App\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"IoT\",\r\n \"domain\": \"Comics\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-12T21:54:00Z\",\r\n \"endpoints\": {},\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"4d1ac8a1-af7d-4458-aa8e-ed94e8e4b96f\",\r\n \"name\": \"ImportExportSandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-27T17:31:47Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/4d1ac8a1-af7d-4458-aa8e-ed94e8e4b96f\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-07-07T21:23:22Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 210,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"name\": \"LUIS BOT\",\r\n \"description\": \"LUIS BOT\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"Iot\",\r\n \"domain\": \"Travel & Local\",\r\n \"versionsCount\": 2,\r\n \"createdDateTime\": \"2017-02-09T14:01:44Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-11-30T04:08:13Z\"\r\n },\r\n \"STAGING\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": true,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-11-28T19:42:18Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 1049,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"2370fb9d-7dbc-4898-a361-a742cf290766\",\r\n \"name\": \"LuisActionBinding\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 5,\r\n \"createdDateTime\": \"2017-03-27T17:46:12Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/2370fb9d-7dbc-4898-a361-a742cf290766\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T18:20:47Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 566,\r\n \"activeVersion\": \"0.2\"\r\n },\r\n {\r\n \"id\": \"537cb4f2-669c-4eaf-9c7d-79360d480ecb\",\r\n \"name\": \"LuisBot\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 2,\r\n \"createdDateTime\": \"2017-06-23T14:28:36Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/537cb4f2-669c-4eaf-9c7d-79360d480ecb\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"e98f962fb491460a93b23c0126255038\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-07-21T20:23:28Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 1,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"0dcfade4-3c07-4afb-a775-f0e8a4bcd395\",\r\n \"name\": \"LuisitoHaceIso\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"Bot\",\r\n \"domain\": \"Entertainment,Gaming,Music & Audio,Weather\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-02-06T19:08:39Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/0dcfade4-3c07-4afb-a775-f0e8a4bcd395\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"08890aa0c33a46788d5e85de465aba35\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-03-02T14:56:47Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 840,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"4300a35a-0ecc-45f7-83aa-84be8f0f6fd0\",\r\n \"name\": \"LuisRuntimeSimpleConsoleSample\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-01T20:37:38Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/4300a35a-0ecc-45f7-83aa-84be8f0f6fd0\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-12-01T20:53:48Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"9f324cb7-10be-4e72-92fd-db9afbaf0c55\",\r\n \"name\": \"PcSandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 5,\r\n \"createdDateTime\": \"2017-09-15T14:34:43Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.5.61\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/9f324cb7-10be-4e72-92fd-db9afbaf0c55\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-22T04:53:17Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"fe9c1906-e357-4811-8fb6-6f4d97377ec7\",\r\n \"name\": \"PcSandbox2 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 4,\r\n \"createdDateTime\": \"2017-07-14T19:04:55Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.4.1178\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/fe9c1906-e357-4811-8fb6-6f4d97377ec7\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T20:23:46Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 59,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"8b7a80b4-cc77-4cff-91d1-270f46dfe5cb\",\r\n \"name\": \"PcSandboxBot App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 9,\r\n \"createdDateTime\": \"2017-06-21T16:39:09Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.9.138\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/8b7a80b4-cc77-4cff-91d1-270f46dfe5cb\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-18T19:09:14Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 23,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"eca0e87f-9fe6-43fe-8605-29fee4f179f2\",\r\n \"name\": \"PcSandboxBot2 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-22T16:44:48Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/eca0e87f-9fe6-43fe-8605-29fee4f179f2\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T01:49:38Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 143,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"df8048f3-e10d-4d3b-af86-856bcddf5459\",\r\n \"name\": \"Ramona2 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 3,\r\n \"createdDateTime\": \"2017-09-13T15:09:14Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.3.566\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/df8048f3-e10d-4d3b-af86-856bcddf5459\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T15:40:11Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"19d97549-b0ea-4a06-8dfb-1681c79616bb\",\r\n \"name\": \"Ramona3 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-09-13T17:49:22Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/19d97549-b0ea-4a06-8dfb-1681c79616bb\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T17:49:29Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"6f7f5d65-cd16-4d35-983d-a66cd63f1b68\",\r\n \"name\": \"Ramona4 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 3,\r\n \"createdDateTime\": \"2017-09-13T17:55:08Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.3.1854\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/6f7f5d65-cd16-4d35-983d-a66cd63f1b68\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-13T19:25:03Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"1f670f54-53d7-48d2-bc5b-4effdfcaaaca\",\r\n \"name\": \"Sandbox App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-07-10T13:59:07Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/1f670f54-53d7-48d2-bc5b-4effdfcaaaca\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-07-10T17:53:47Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 4,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"e247616c-0e5b-4b35-9805-ecba484d140d\",\r\n \"name\": \"testez3 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-22T14:24:35Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/e247616c-0e5b-4b35-9805-ecba484d140d\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-06-26T13:41:56Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 28,\r\n \"activeVersion\": \"0.1\"\r\n },\r\n {\r\n \"id\": \"79bc0eeb-d62f-4a8b-8e83-4692535ee403\",\r\n \"name\": \"testez4 App\",\r\n \"description\": \"Default Intents for Azure Bot Service V2\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-06-23T14:16:42Z\",\r\n \"endpoints\": {\r\n \"PRODUCTION\": {\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/79bc0eeb-d62f-4a8b-8e83-4692535ee403\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-09-15T17:22:44Z\"\r\n }\r\n },\r\n \"endpointHitsCount\": 51,\r\n \"activeVersion\": \"0.1\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "11293" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0846f08d-f75e-4bd2-9058-2e839b3602f3" + ], + "Request-Id": [ + "0846f08d-f75e-4bd2-9058-2e839b3602f3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/46c6c270-ebd5-4187-8d76-aea72df0d0bb", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80NmM2YzI3MC1lYmQ1LTQxODctOGQ3Ni1hZWE3MmRmMGQwYmI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6d7206fb-a9e7-40a4-8a9d-f73f089f78f1" + ], + "Request-Id": [ + "6d7206fb-a9e7-40a4-8a9d-f73f089f78f1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListAvailableCustomPrebuiltDomains.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListAvailableCustomPrebuiltDomains.json new file mode 100644 index 000000000000..9a4da7a70cff --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListAvailableCustomPrebuiltDomains.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jdXN0b21wcmVidWlsdGRvbWFpbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"name\": \"Calendar\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Calendar domain provides intents and entities related to calendar entries. The Calendar intents include adding, deleting or editing an appointment, checking availability, and finding information about a calendar entry or appointment.\",\r\n \"examples\": \"Make an appointment with Lisa at 2pm on Sunday; When is Jim available to meet?; Delete my 9 am meeting\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Add\",\r\n \"description\": \"Add a new one-time item to the calendar.\",\r\n \"examples\": \"Make an appointment with Lisa at 2pm on Sunday; I want to schedule a meeting ; I need to set up a meeting\"\r\n },\r\n {\r\n \"name\": \"CheckAvailability\",\r\n \"description\": \"Find availability for an appointment or meeting on the user's calendar or another person's calendar.\",\r\n \"examples\": \"When is Jim available to meet?; Show when Carol is available tomorrow; Is Chris free on Saturday?\"\r\n },\r\n {\r\n \"name\": \"Delete\",\r\n \"description\": \"Request to delete a calendar entry.\",\r\n \"examples\": \"Cancel my appointment with Carol; Delete my 9 am meeting\"\r\n },\r\n {\r\n \"name\": \"Edit\",\r\n \"description\": \"Request to change an existing meeting or calendar entry.\",\r\n \"examples\": \"Move my 9 am meeting to 10 am; I want to update my schedule; Reschdule my meeting with Ryan\"\r\n },\r\n {\r\n \"name\": \"Find\",\r\n \"description\": \"Request to view or find information about their calendar or any specific existing calendar entry.\",\r\n \"examples\": \"Display my weekly calendar; Show my calendar; Find the dentist review appointment.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Location\",\r\n \"description\": \"\\\"Location of calendar item, meeting or appointment. Addresses, cities, and regions are good examples of locations.\\\"\",\r\n \"examples\": \"209 Nashville Gym; 897 Pancake house; Garage\"\r\n },\r\n {\r\n \"name\": \"Subject\",\r\n \"description\": \"The title of a meeting or appointment.\",\r\n \"examples\": \"Dentist's appointment; Lunch with Julia; Doctor's appointment\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Camera\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Camera domain provides intents and entities related to using a camera. The intents cover capturing a photo, selfie, screenshot or video, and broadcasting video to an application.\",\r\n \"examples\": \"Capture the screen; Take a selfie; Start broadcasting to Facebook\",\r\n \"intents\": [\r\n {\r\n \"name\": \"CapturePhoto\",\r\n \"description\": \"Capture a photo.\",\r\n \"examples\": \"Take a photo; capture\"\r\n },\r\n {\r\n \"name\": \"CaptureScreenshot\",\r\n \"description\": \"Capture a screenshot.\",\r\n \"examples\": \"Take screen shot; capture the screen\"\r\n },\r\n {\r\n \"name\": \"CaptureSelfie\",\r\n \"description\": \"Capture a selfie.\",\r\n \"examples\": \"Take a selfie; take a picture of me\"\r\n },\r\n {\r\n \"name\": \"CaptureVideo\",\r\n \"description\": \"Start recording video.\",\r\n \"examples\": \"Start recording; Begin recording\"\r\n },\r\n {\r\n \"name\": \"StartBroadcasting\",\r\n \"description\": \"Start broadcasting video.\",\r\n \"examples\": \"Start broadcasting to Facebook\"\r\n },\r\n {\r\n \"name\": \"StopBroadcasting\",\r\n \"description\": \"Stop broadcasting video.\",\r\n \"examples\": \"Stop broadcasting\"\r\n },\r\n {\r\n \"name\": \"StopVideoRecording\",\r\n \"description\": \"Stop recording a video.\",\r\n \"examples\": \"That's enough; stop recording\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"The name of an application to broadcast video to.\",\r\n \"examples\": \"OneNote; Facebook; Skype\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Communication\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Communication domain provides intents and entities related to email, messages and phone calls.\",\r\n \"examples\": \"Connect me to my voicemail box; Save this number and put the name as Carol; Switch on call forwarding to 3333\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddContact\",\r\n \"description\": \"Add a new contact to the user's list of contacts.\",\r\n \"examples\": \"Add new contact; Save this number and put the name as Carol\"\r\n },\r\n {\r\n \"name\": \"AddMore\",\r\n \"description\": \"\\\"Add more to an email or text, as part of a step-wise email or text composition.\\\"\",\r\n \"examples\": \"Add more to text; Add more to email body\"\r\n },\r\n {\r\n \"name\": \"Answer\",\r\n \"description\": \"Answer an incoming phone call.\",\r\n \"examples\": \"Answer the call; Pick it up\"\r\n },\r\n {\r\n \"name\": \"AssignContactNickname\",\r\n \"description\": \"Assign a nickname to a contact.\",\r\n \"examples\": \"Change Isaac to dad; Add nickname to Carol Hanna; Edit Jim's nickname\"\r\n },\r\n {\r\n \"name\": \"CallVoiceMail\",\r\n \"description\": \"Connect to the user's voice mail.\",\r\n \"examples\": \"Connect me to my voicemail box; Call voicemail; Voice mail\"\r\n },\r\n {\r\n \"name\": \"CheckIMStatus\",\r\n \"description\": \"Check the status of a contact in Skype.\",\r\n \"examples\": \"Is Jim's online status set to away?; Is Carol available to chat with?\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action.\",\r\n \"examples\": \"Yes; Okay; All right; I confirm that I want to send this email.\"\r\n },\r\n {\r\n \"name\": \"FindContact\",\r\n \"description\": \"Find contact information by name.\",\r\n \"examples\": \"Find Carol's number; Show me Carol's number\"\r\n },\r\n {\r\n \"name\": \"TurnForwardingOff\",\r\n \"description\": \"Turn off call forwarding.\",\r\n \"examples\": \"Stop forwarding my calls; Switch off call forwarding\"\r\n },\r\n {\r\n \"name\": \"TurnForwardingOn\",\r\n \"description\": \"Turn on call forwarding.\",\r\n \"examples\": \"Forwarding my calls to 3333; Switch on call forwarding to 3333\"\r\n },\r\n {\r\n \"name\": \"GetForwardingsStatus\",\r\n \"description\": \"Get the current status of call forwarding.\",\r\n \"examples\": \"Is my call forwarding turned on?; Tell me if my call status is on or off\"\r\n },\r\n {\r\n \"name\": \"GoBack\",\r\n \"description\": \"Go back to the previous step.\",\r\n \"examples\": \"Go back to twitter; Go back a step; Go back\"\r\n },\r\n {\r\n \"name\": \"Ignore\",\r\n \"description\": \"Ignore an incoming call.\",\r\n \"examples\": \"Don't answer; Ignore call\"\r\n },\r\n {\r\n \"name\": \"IgnoreWithMessage\",\r\n \"description\": \"Ignore an incoming call and reply with text instead.\",\r\n \"examples\": \"Don't answer that call but send a message instead; Ignore and send a text back\"\r\n },\r\n {\r\n \"name\": \"Dial\",\r\n \"description\": \"Make a phone call.\",\r\n \"examples\": \"Call Jim; Please dial 311\"\r\n },\r\n {\r\n \"name\": \"PressKey\",\r\n \"description\": \"Press a button or number on the keypad.\",\r\n \"examples\": \"Dial star; Press the 1 2 3\"\r\n },\r\n {\r\n \"name\": \"ReadAloud\",\r\n \"description\": \"Read a message or email to the user.\",\r\n \"examples\": \"read text; what did she say in the message\"\r\n },\r\n {\r\n \"name\": \"Redial\",\r\n \"description\": \"Redial or call a number again.\",\r\n \"examples\": \"redial; redial my last call\"\r\n },\r\n {\r\n \"name\": \"SendEmail\",\r\n \"description\": \"Send an email. This intent applies to email but not text messages.\",\r\n \"examples\": \"email to mike waters mike that dinner last week was splendid; send an email to bob\"\r\n },\r\n {\r\n \"name\": \"SendMessage\",\r\n \"description\": \"Send a text message or an instant message.\",\r\n \"examples\": \"Send text to Chris and Carol\"\r\n },\r\n {\r\n \"name\": \"SetSpeedDial\",\r\n \"description\": \"Set a speed dial shortcut for a contact's phone number.\",\r\n \"examples\": \"Set speed dial one for Carol; setup speed dial for mom\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"\\\"See the next item, for example, in a list of text messages or emails.\\\"\",\r\n \"examples\": \"Show the next one; go to the next page\"\r\n },\r\n {\r\n \"name\": \"ShowPrevious\",\r\n \"description\": \"\\\"See the previous item, for example, in a list of text messages or emails.\\\"\",\r\n \"examples\": \"show the previous one; previous; go to previous\"\r\n },\r\n {\r\n \"name\": \"TurnSpeakerOff\",\r\n \"description\": \"Turn off the speaker phone.\",\r\n \"examples\": \"take me off speaker; turn off speakerphone\"\r\n },\r\n {\r\n \"name\": \"TurnSpeakerOn\",\r\n \"description\": \"Turn on the speaker phone.\",\r\n \"examples\": \"speakerphone mode; put speakerphone on\"\r\n },\r\n {\r\n \"name\": \"StartOver\",\r\n \"description\": \"Start the system over or start a new session.\",\r\n \"examples\": \"Start over; New session; restart\"\r\n },\r\n {\r\n \"name\": \"FindSpeedDial\",\r\n \"description\": \"Find the speedial number a phone number is set to and vice versa.\",\r\n \"examples\": \"What is my dial number 5?; Do I have speed dial set?; What is the dial number for 941-5555-333?\"\r\n },\r\n {\r\n \"name\": \"Reject\",\r\n \"description\": \"Reject an incoming call.\",\r\n \"examples\": \"Reject call; Can't answer now; Not available at the moment and will call back later\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ContactName\",\r\n \"description\": \"The name of a contact or message recipient.\",\r\n \"examples\": \"Carol; Jim; Chris\"\r\n },\r\n {\r\n \"name\": \"EmailSubject\",\r\n \"description\": \"The text used as the subject line for an email.\",\r\n \"examples\": \"RE: interesting story\"\r\n },\r\n {\r\n \"name\": \"SenderName\",\r\n \"description\": \"The name of the sender.\",\r\n \"examples\": \"Patti Owens\"\r\n },\r\n {\r\n \"name\": \"Message\",\r\n \"description\": \"The message to send as an email or text.\",\r\n \"examples\": \"It was great meeting you today. See you again soon!\"\r\n },\r\n {\r\n \"name\": \"Category\",\r\n \"description\": \"The category of a message or email.\",\r\n \"examples\": \"Important; High priority\"\r\n },\r\n {\r\n \"name\": \"MessageType\",\r\n \"description\": \"The type of message to search for.\",\r\n \"examples\": \"Text; Email\"\r\n },\r\n {\r\n \"name\": \"OrderReference\",\r\n \"description\": \"\\\"The ordinal or relative position in a list, identifying an item to retrieve. For example, last or recent in What was the last message I sent?.\\\"\",\r\n \"examples\": \"Last; Recent\"\r\n },\r\n {\r\n \"name\": \"AudioDeviceType\",\r\n \"description\": \"\\\"Type of audio device (speaker, headset, microphone, etc).\\\"\",\r\n \"examples\": \"Speaker; Hands-free; Bluetooth\"\r\n },\r\n {\r\n \"name\": \"ContactAttribute\",\r\n \"description\": \"The attribute of the contact the user inquires about.\",\r\n \"examples\": \"Birthdays; Address; Phone number\"\r\n },\r\n {\r\n \"name\": \"Line\",\r\n \"description\": \"The line the user wants to use to make a call or send a text/email from.\",\r\n \"examples\": \"Work line; British cell; Skype\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Entertainment\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Entertainment domain provides intents and entities related to searching for movies, music, games and TV shows.\",\r\n \"examples\": \"Search the store for Halo; Search for Avatar; Look for Comedies\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Search\",\r\n \"description\": \"\\\"Search for movies, music, apps, games and TV shows.\\\"\",\r\n \"examples\": \"Search the store for Halo; search for Avatar\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ContentRating\",\r\n \"description\": \"\\\"Media content rating like G, or R for movies.\\\"\",\r\n \"examples\": \"Kids video;PG rated\"\r\n },\r\n {\r\n \"name\": \"Genre\",\r\n \"description\": \"\\\"The genre of a movie, game, app or song.\\\"\",\r\n \"examples\": \"Comedies; Dramas; Funny\"\r\n },\r\n {\r\n \"name\": \"Language\",\r\n \"description\": \"\\\"The language of a movie, show, or music.\\\"\",\r\n \"examples\": \"French; English; Korean\"\r\n },\r\n {\r\n \"name\": \"Nationality\",\r\n \"description\": \"\\\"The country where a movie, show, or song was created.\\\"\",\r\n \"examples\": \"French; German; Korean\"\r\n },\r\n {\r\n \"name\": \"Person\",\r\n \"description\": \"\\\"The actor, director, producer, musician or artist associated with a movie, app, game or TV show.\\\"\",\r\n \"examples\": \"Madonna; Stanley Kubrick\"\r\n },\r\n {\r\n \"name\": \"Role\",\r\n \"description\": \"Role played by a person in the creation of media.\",\r\n \"examples\": \"Sings; Directed by; By\"\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"description\": \"\\\"The name of a movie, app, game, TV show, or song.\\\"\",\r\n \"examples\": \"Friends; Minecraft\"\r\n },\r\n {\r\n \"name\": \"Type\",\r\n \"description\": \"\\\"The type or media format of a movie, app, game, TV show, or song.\\\"\",\r\n \"examples\": \"Music; Movie; TV shows\"\r\n },\r\n {\r\n \"name\": \"UserRating\",\r\n \"description\": \"User user star or thumbs rating.\",\r\n \"examples\": \"5 stars; 3 stars; 4 stars\"\r\n },\r\n {\r\n \"name\": \"Keyword\",\r\n \"description\": \"A generic search keyword specifying an attribute the doesn't exist in the more specific media slots.\",\r\n \"examples\": \"Soundtracks; Moon River; Amelia Earhart\"\r\n },\r\n {\r\n \"name\": \"MediaSource\",\r\n \"description\": \"Mentions of the store/marketplace.\",\r\n \"examples\": \"Halo; Netflix; Prime\"\r\n },\r\n {\r\n \"name\": \"MediaSubTypes\",\r\n \"description\": \"Media types smaller than movies and games.\",\r\n \"examples\": \"Demos; Dlc; Trailers\"\r\n },\r\n {\r\n \"name\": \"MediaFormat\",\r\n \"description\": \"The additional special technical type in which the media is formatted.\",\r\n \"examples\": \"HD movies; 3D movies; Downloadable\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Events\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Events domain provides intents and entities related to booking tickets for events like concerts, festivals, sports games and comedy shows.\",\r\n \"examples\": \"I'd like to buy a ticket for the symphony this weekend; Get tickets for Shakespeare in the Park; Cancel my ticket order\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Book\",\r\n \"description\": \"Purchase tickets to an event.\",\r\n \"examples\": \"I'd like to buy a ticket for the symphony this weekend.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"Event location or address.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"Name\",\r\n \"description\": \"The name of an event.\",\r\n \"examples\": \"Shakespeare in the Park\"\r\n },\r\n {\r\n \"name\": \"Type\",\r\n \"description\": \"The type of an event.\",\r\n \"examples\": \"Concert; Sports game\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"The event location name.\",\r\n \"examples\": \"Louvre; Opera House; Broadway\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of the location the event will be held in.\",\r\n \"examples\": \"Cafe; Theatre; Library\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Fitness\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Fitness domain provides intents and entities related to tracking fitness activities. The intents include saving notes, remaining time or distance, or saving activity results.\",\r\n \"examples\": \"The difficulty of this run was 6/10; How much time till the next lap?; Log my Saturday morning walk\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddNote\",\r\n \"description\": \"Adds supplemental notes to a tracked activity.\",\r\n \"examples\": \"The difficulty of this run was 6/10; The terrain I am on running on is asphalt; I am using a 3 speed bike\"\r\n },\r\n {\r\n \"name\": \"GetRemaining\",\r\n \"description\": \"Gets the remaining time or distance for an activity.\",\r\n \"examples\": \"How much time till the next lap?; How many miles are remaining in my run? How much time for the split?\"\r\n },\r\n {\r\n \"name\": \"LogActivity\",\r\n \"description\": \"Save or log completed activity results.\",\r\n \"examples\": \"Save my last run; Log my Saturday morning walk; store my previous swim\"\r\n },\r\n {\r\n \"name\": \"LogWeight\",\r\n \"description\": \"Save or log the user's current weight.\",\r\n \"examples\": \"Save my current weight; log my weight now; store my current body weight\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ActivityType\",\r\n \"description\": \"The type of activity to track.\",\r\n \"examples\": \"Run; Walk; Swim; Cycle\"\r\n },\r\n {\r\n \"name\": \"Food\",\r\n \"description\": \"A type of food to track in a fitness app.\",\r\n \"examples\": \"Banana; Salmon; Protein Shake\"\r\n },\r\n {\r\n \"name\": \"MealType\",\r\n \"description\": \"The meal type to track in a health or fitness app.\",\r\n \"examples\": \"Breakfast; Dinner; Lunch; Supper\"\r\n },\r\n {\r\n \"name\": \"Measurement\",\r\n \"description\": \"\\\"A type of measurements for time, distance or weight, for use in a fitness or health app.\\\"\",\r\n \"examples\": \"Kilometers; Miles; Minutes; Kilograms\"\r\n },\r\n {\r\n \"name\": \"Number\",\r\n \"description\": \"A numeric quantity for use in a fitness or health app.\",\r\n \"examples\": \"19; three; 200; one\"\r\n },\r\n {\r\n \"name\": \"StatType\",\r\n \"description\": \"\\\"A statistic type on aggregated data, for use in a fitness or health app. For example, sum, average, maximum, minimum.\\\"\",\r\n \"examples\": \"Sum; Average; Maximum; Minimum\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Gaming\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Gaming domain provides intents and entities related to managing a game party in a multiplayer game.\",\r\n \"examples\": \"Join my clan; I'm leaving this party for another; should we start a clan tonight\",\r\n \"intents\": [\r\n {\r\n \"name\": \"InviteParty\",\r\n \"description\": \"Invite a contact to join a gaming party.\",\r\n \"examples\": \"Invite this player to my party; Come to my party; Join my clan\"\r\n },\r\n {\r\n \"name\": \"LeaveParty\",\r\n \"description\": \"Leave a gaming party in a multiplayer game.\",\r\n \"examples\": \"I'm out; I'm leaving this party for another; I am quitting\"\r\n },\r\n {\r\n \"name\": \"StartParty\",\r\n \"description\": \"Start a gaming party in a multiplayer game.\",\r\n \"examples\": \"Dude let's start a party; start a party; should we start a clan tonight\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Contact\",\r\n \"description\": \"A contact name to use in a multiplayer game.\",\r\n \"examples\": \"Carol; Jim; Chris\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"HomeAutomation\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Home Automation domain provides intents and entities related to controlling smart home devices like lights and appliances.\",\r\n \"examples\": \"Turn off the lights; Turn on my coffee maker; Close garage door\",\r\n \"intents\": [\r\n {\r\n \"name\": \"TurnOff\",\r\n \"description\": \"\\\"Turn off, close, or unlock a device.\\\"\",\r\n \"examples\": \"Turn off the lights; Stop the coffee maker; Close garage door\"\r\n },\r\n {\r\n \"name\": \"TurnOn\",\r\n \"description\": \"Turn on a device or set the device to a particular setting or mode.\",\r\n \"examples\": \"turn on my coffee maker; can you turn on my coffee maker?; Set the thermostat to 72 degrees.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Device\",\r\n \"description\": \"A type of device that can be turned on or off .\",\r\n \"examples\": \"coffee maker; thermostat; lights\"\r\n },\r\n {\r\n \"name\": \"Room\",\r\n \"description\": \"The location or room the device is in.\",\r\n \"examples\": \"living room; bedroom; kitchen\"\r\n },\r\n {\r\n \"name\": \"Operation\",\r\n \"description\": \"The current state of the device.\",\r\n \"examples\": \"lock; open; on; off\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MovieTickets\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Movie Tickets domain provides intents and entities related to booking tickets to movies at a movie theater.\",\r\n \"examples\": \"Book me two tickets for Captain Omar and the two Musketeers; Cancel tickets; When is Captain Omar showing?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Book\",\r\n \"description\": \"Purchase movie tickets.\",\r\n \"examples\": \"Book me two tickets for Captain Omar and the two musketeers; I want to buy a ticket for tomorrow's movie; I want a ticket for Captian Omar Part 2 next Wednesday\"\r\n },\r\n {\r\n \"name\": \"GetShowTime\",\r\n \"description\": \"Get the showtime of a movie.\",\r\n \"examples\": \"When is Captain Omar showing?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"The address of a movie theater.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"MovieTitle\",\r\n \"description\": \"The title of a movie.\",\r\n \"examples\": \"Life of Pi;Hunger Games;Inception\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"The name of a movie theater or cinema.\",\r\n \"examples\": \"Cinema Amir; Alexandria Theatre; New York Theater\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of location a movie is showing at.\",\r\n \"examples\": \"cinema; theater; IMAX cinema\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Music\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Music domain provides intents and entities related to playing music on a music player.\",\r\n \"examples\": \"play Kevin Durant; Increase track volume; Skip to the next song\",\r\n \"intents\": [\r\n {\r\n \"name\": \"DecreaseVolume\",\r\n \"description\": \"Decrease the device volume.\",\r\n \"examples\": \"increase track volume; volume up\"\r\n },\r\n {\r\n \"name\": \"IncreaseVolume\",\r\n \"description\": \"Increase the device volume.\",\r\n \"examples\": \"decrease track volume; volume down\"\r\n },\r\n {\r\n \"name\": \"PlayMusic\",\r\n \"description\": \"Play music on a device.\",\r\n \"examples\": \"play Kevin Durant; play Paradise by Coldplay; play Hello by Adele\"\r\n },\r\n {\r\n \"name\": \"SkipBack\",\r\n \"description\": \"Skip backwards a track.\",\r\n \"examples\": \"Skip to the next song; Play the next song\"\r\n },\r\n {\r\n \"name\": \"SkipForward\",\r\n \"description\": \"Skip forward a track.\",\r\n \"examples\": \"Play the previous song; Go back to the previous track\"\r\n },\r\n {\r\n \"name\": \"Stop\",\r\n \"description\": \"Stop an action relating to music playback.\",\r\n \"examples\": \"Stop playing this album\"\r\n },\r\n {\r\n \"name\": \"Unmute\",\r\n \"description\": \"Unmute a music playback device.\",\r\n \"examples\": \"Unmute.\"\r\n },\r\n {\r\n \"name\": \"Mute\",\r\n \"description\": \"Mute the playing music.\",\r\n \"examples\": \"Mute song; Put the track on mute; Mute music\"\r\n },\r\n {\r\n \"name\": \"Pause\",\r\n \"description\": \"Pause the playing music.\",\r\n \"examples\": \"Pause; Pause music; Pause track\"\r\n },\r\n {\r\n \"name\": \"Repeat\",\r\n \"description\": \"Repeat the playing music.\",\r\n \"examples\": \"Repeat song; Play the track gain; Repeat music\"\r\n },\r\n {\r\n \"name\": \"Resume\",\r\n \"description\": \"Resume the playing music.\",\r\n \"examples\": \"Resume song; Start music again; Unpause\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ArtistName\",\r\n \"description\": \"\\\"The actor, director, producer, writer, musician or artist associated with media to play on a device.\\\"\",\r\n \"examples\": \"Elvis Presley; Taylor Swift; Adele; Mozart\"\r\n },\r\n {\r\n \"name\": \"Genre\",\r\n \"description\": \"The genre of the music being requested.\",\r\n \"examples\": \"Country music; Broadway classics; Play my classical music from the Baroque period\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Note\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Note domain provides intents and entities related to finding, editing and creating notes.\",\r\n \"examples\": \"Add to my groceries note lettuce tomato bread coffee; Check off bananas from my grocery list; Remove all items from my vacation list\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddToNote\",\r\n \"description\": \"Add information to a note.\",\r\n \"examples\": \"Add to my groceries note lettuce tomato bread coffee; Add to my todo list; add cupcakes to my Wunderlist\"\r\n },\r\n {\r\n \"name\": \"CheckOffItem\",\r\n \"description\": \"Check off items from a pre-existing note.\",\r\n \"examples\": \"Check off bananas from my grocery list; Mark cheese cake on my holiday shopping list as done\"\r\n },\r\n {\r\n \"name\": \"Clear\",\r\n \"description\": \"Clear all items from a pre-existing note.\",\r\n \"examples\": \"Remove all items from my vacation list; Clear all from my reading list\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action relating to a note.\",\r\n \"examples\": \"It's okay by me;yes;I am confirming keeping all items on lists\"\r\n },\r\n {\r\n \"name\": \"Create\",\r\n \"description\": \"Create a new note.\",\r\n \"examples\": \"Create a list; Note to remind me that Jason is in town first week of May\"\r\n },\r\n {\r\n \"name\": \"Delete\",\r\n \"description\": \"Delete an entire note.\",\r\n \"examples\": \"Delete my vacation list; delete my groceries note\"\r\n },\r\n {\r\n \"name\": \"DeleteNoteItem\",\r\n \"description\": \"Delete items from a pre-existing note.\",\r\n \"examples\": \"Delete chips from my grocery list; Remove pens from my school shopping list\"\r\n },\r\n {\r\n \"name\": \"ReadAloud\",\r\n \"description\": \"Read a list out loud\",\r\n \"examples\": \"Read me the first one; Read me the details\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"See the next item in a list of notes.\",\r\n \"examples\": \"Show the next one; Next page; Next\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"The note-taking application name.\",\r\n \"examples\": \"Wunderlist; OneNote\"\r\n },\r\n {\r\n \"name\": \"ContactName\",\r\n \"description\": \"The name of a contact in a note.\",\r\n \"examples\": \"Carol; Jim; Chris\"\r\n },\r\n {\r\n \"name\": \"Text\",\r\n \"description\": \"The text of a note or reminder.\",\r\n \"examples\": \"stretch before walking; long run tomorrow\"\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"description\": \"Title of a note.\",\r\n \"examples\": \"groceries; people to call; to-do\"\r\n },\r\n {\r\n \"name\": \"DataSource\",\r\n \"description\": \"Location of notes.\",\r\n \"examples\": \"OneDrive; Google docs; my computer\"\r\n },\r\n {\r\n \"name\": \"DataType\",\r\n \"description\": \"The type of file or document, usually associated with particular software programs.\",\r\n \"examples\": \"Slides; Spreadsheet; Worksheet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OnDevice\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The OnDevice domain provides intents and entities related to controlling the devices.\",\r\n \"examples\": \"Close video player; Cancel playback; Can you make the screen brighter?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AreYouListening\",\r\n \"description\": \"Ask if the device is listening.\",\r\n \"examples\": \"is this on?; are you listening?\"\r\n },\r\n {\r\n \"name\": \"CloseApplication\",\r\n \"description\": \"Close the device application.\",\r\n \"examples\": \"close video player\"\r\n },\r\n {\r\n \"name\": \"FileBug\",\r\n \"description\": \"File a bug on the device.\",\r\n \"examples\": \"file a bug please;Can you file a bug for me ?;Let me report this bug\"\r\n },\r\n {\r\n \"name\": \"GoBack\",\r\n \"description\": \"Ask to go back one step or return to the previous step.\",\r\n \"examples\": \"Go back please;Go to previous screen;Go back stop listening\"\r\n },\r\n {\r\n \"name\": \"Help\",\r\n \"description\": \"Request help.\",\r\n \"examples\": \"Help please;Hello; What can you do?;I need help\"\r\n },\r\n {\r\n \"name\": \"LocateDevice\",\r\n \"description\": \"Locate the device.\",\r\n \"examples\": \"Can you locate my phone;Find tom's iphone;Find my phone\"\r\n },\r\n {\r\n \"name\": \"LogIn\",\r\n \"description\": \"Log in to a service using the device.\",\r\n \"examples\": \"Login please;Facebook log in;Log into LinkedIn\"\r\n },\r\n {\r\n \"name\": \"LogOut\",\r\n \"description\": \"Log out of a service using the device.\",\r\n \"examples\": \"Log off my phone;Log on to twitter;Log out\"\r\n },\r\n {\r\n \"name\": \"MainMenu\",\r\n \"description\": \"View the main menu of a device.\",\r\n \"examples\": \"View menu.\"\r\n },\r\n {\r\n \"name\": \"OpenApplication\",\r\n \"description\": \"Open an application on the device.\",\r\n \"examples\": \"Open the alarm please;Turn on camera;Launch calendar\"\r\n },\r\n {\r\n \"name\": \"OpenSetting\",\r\n \"description\": \"Open a setting on the device.\",\r\n \"examples\": \"Open network settings.\"\r\n },\r\n {\r\n \"name\": \"PairDevice\",\r\n \"description\": \"Pair the device.\",\r\n \"examples\": \"Can you help me in pairing Bluetooth signal to phone;Turn the bluetooth on and pair it with laptop;Pair Bluetooth signal to my laptop\"\r\n },\r\n {\r\n \"name\": \"PowerOff\",\r\n \"description\": \"Turn off the device.\",\r\n \"examples\": \"Can you shut down my computer;Shutdown;Turn off my mobile\"\r\n },\r\n {\r\n \"name\": \"QueryBattery\",\r\n \"description\": \"Get information about battery life.\",\r\n \"examples\": \"Show me battery life.\"\r\n },\r\n {\r\n \"name\": \"QueryWifi\",\r\n \"description\": \"Get information about WiFi.\",\r\n \"examples\": \"What's my battery status;How much battery left now?;Show me battery\"\r\n },\r\n {\r\n \"name\": \"Restart\",\r\n \"description\": \"Restart the device.\",\r\n \"examples\": \"Please restart.\"\r\n },\r\n {\r\n \"name\": \"RingDevice\",\r\n \"description\": \"\\\"Ask the device to ring, in order to find it when it's lost.\\\"\",\r\n \"examples\": \"Ring my phone.\"\r\n },\r\n {\r\n \"name\": \"SetBrightness\",\r\n \"description\": \"Set the device brightness.\",\r\n \"examples\": \"Set brightness to medium;Set brightness to high;Set brightness to low\"\r\n },\r\n {\r\n \"name\": \"SetupDevice\",\r\n \"description\": \"Initiate device setup.\",\r\n \"examples\": \"I want to install OS setup;Setup please;Do setup for me\"\r\n },\r\n {\r\n \"name\": \"ShowAppBar\",\r\n \"description\": \"Show an app bar.\",\r\n \"examples\": \"Show me the application bar;Application bar please;Let me see the application bar\"\r\n },\r\n {\r\n \"name\": \"ShowContextMenu\",\r\n \"description\": \"Show a context menu.\",\r\n \"examples\": \"Let me see the context menu;Context menu please;Can you show me the context menu\"\r\n },\r\n {\r\n \"name\": \"Sleep\",\r\n \"description\": \"Put the device to sleep.\",\r\n \"examples\": \"Go to sleep;Sleep;My computer sleep\"\r\n },\r\n {\r\n \"name\": \"SwitchApplication\",\r\n \"description\": \"Switch the application to use on the device.\",\r\n \"examples\": \"Switch to my media player.\"\r\n },\r\n {\r\n \"name\": \"TurnDownBrightness\",\r\n \"description\": \"Turn down device brightness.\",\r\n \"examples\": \"Dim the screen.\"\r\n },\r\n {\r\n \"name\": \"TurnOffSetting\",\r\n \"description\": \"Turn off a device setting.\",\r\n \"examples\": \"Deactivate Bluetooth;Disable data;Disconnect bluetooth\"\r\n },\r\n {\r\n \"name\": \"TurnOnSetting\",\r\n \"description\": \"Turn on a device setting.\",\r\n \"examples\": \"On;Off\"\r\n },\r\n {\r\n \"name\": \"TurnUpBrightness\",\r\n \"description\": \"Turn up device brightness.\",\r\n \"examples\": \"Can you make the screen brighter?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"Name of an application on the device.\",\r\n \"examples\": \"SoundCloud; YouTube\"\r\n },\r\n {\r\n \"name\": \"BrightnessLevel\",\r\n \"description\": \"Set the brightness level on the device.\",\r\n \"examples\": \"One hundred percent;Fifty;40%\"\r\n },\r\n {\r\n \"name\": \"ContactName\",\r\n \"description\": \"The name of a contact on the device.\",\r\n \"examples\": \"Paul;Marlen Max\"\r\n },\r\n {\r\n \"name\": \"DeviceType\",\r\n \"description\": \"The type of device.\",\r\n \"examples\": \"Phone;kindle;Laptop\"\r\n },\r\n {\r\n \"name\": \"MediaType\",\r\n \"description\": \"The media type handled by the device.\",\r\n \"examples\": \"Music; Movie; TV shows\"\r\n },\r\n {\r\n \"name\": \"SettingType\",\r\n \"description\": \"A type of setting or settings panel that the user wants to edit.\",\r\n \"examples\": \"WiFi; Wireless Network; Color Scheme; Notification [Center]\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Places\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Places domain provides intents for handling queries related to places like businesses, institution, restaurants, public spaces and addresses.\",\r\n \"examples\": \"Save this location to my favorites; How far away is Holiday Inn?; At what time does Safeway close?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddFavoritePlace\",\r\n \"description\": \"Add a location to the the user's favorites list.\",\r\n \"examples\": \"Save this location to my favorites; Add this address to my favorites\"\r\n },\r\n {\r\n \"name\": \"CheckAccident\",\r\n \"description\": \"Ask whether there is an accident on a specified road.\",\r\n \"examples\": \"Is there an accident on 880?; Show me accident information\"\r\n },\r\n {\r\n \"name\": \"CheckAreaTraffic\",\r\n \"description\": \"\\\"Check the traffic for a general area or highway, not on a specified route.\\\"\",\r\n \"examples\": \"Traffic in Seattle; What's the traffic like in Seattle?\"\r\n },\r\n {\r\n \"name\": \"CheckIntoPlace\",\r\n \"description\": \"Check in to a place using social media.\",\r\n \"examples\": \"Check me in on Foursquare; Check in here\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action relating to a place.\",\r\n \"examples\": \"Confirm my restaurant reservation.\"\r\n },\r\n {\r\n \"name\": \"Exit\",\r\n \"description\": \"Action to exit a task relating to a place.\",\r\n \"examples\": \"Quit please;Quit giving me directions\"\r\n },\r\n {\r\n \"name\": \"FindPlace\",\r\n \"description\": \"\\\"Search for a place (business, institution, restaurant, public space, address).\\\"\",\r\n \"examples\": \"Where's the nearest library?; Find me a good Italian restaurant in Mountain View\"\r\n },\r\n {\r\n \"name\": \"GetAddress\",\r\n \"description\": \"Ask for the address of a place.\",\r\n \"examples\": \"Show me the address of Guu on Robson street; What is the address of the nearest Starbucks?\"\r\n },\r\n {\r\n \"name\": \"GetDistance\",\r\n \"description\": \"Ask about distance to a specific place.\",\r\n \"examples\": \"How far away is Holiday Inn?; how far is it to Bellevue square from here; what's the distance to Tahoe\"\r\n },\r\n {\r\n \"name\": \"GetHours\",\r\n \"description\": \"Ask about the operating hours for a place.\",\r\n \"examples\": \"At what time does Safeway close?; What are the hours for Home Depot?; Is Starbucks still open?\"\r\n },\r\n {\r\n \"name\": \"GetMenu\",\r\n \"description\": \"Ask for the menu items for a restaurant.\",\r\n \"examples\": \"Does Zucca serve anything vegan?; What's on the menu at Sizzler; Show me Applebee's menu\"\r\n },\r\n {\r\n \"name\": \"GetPhoneNumber\",\r\n \"description\": \"Ask for the phone number of a place.\",\r\n \"examples\": \"What is the phone number of the nearest Starbucks?; Give the number for Home Depot\"\r\n },\r\n {\r\n \"name\": \"GetReviews\",\r\n \"description\": \"Ask for reviews of a place.\",\r\n \"examples\": \"Show me reviews for Cheesecase Factory; Read Cineplex reviews in Yelp\"\r\n },\r\n {\r\n \"name\": \"GetRoute\",\r\n \"description\": \"Ask for directions to a place.\",\r\n \"examples\": \"How to walk to Bellevue square; Show me the shortest way to 8th and 59th from here; Get me directions to Mountain View CA\"\r\n },\r\n {\r\n \"name\": \"GetStarRating\",\r\n \"description\": \"Ask for the star rating of a place.\",\r\n \"examples\": \"How is Zucca rated according to Yelp?; How many stars does the French Laundry have?; Is the aquarium in Monterrey good?\"\r\n },\r\n {\r\n \"name\": \"GetTransportationSchedule\",\r\n \"description\": \"Get the bus schedule for a place.\",\r\n \"examples\": \"What time is the next bus to downtown?; Show me the buses in King County\"\r\n },\r\n {\r\n \"name\": \"GetTravelTime\",\r\n \"description\": \"Ask for the travel time to a specified destination.\",\r\n \"examples\": \"How long will it take to get to San Francisco from here; What's the driving time to Denver from SF\"\r\n },\r\n {\r\n \"name\": \"MakeCall\",\r\n \"description\": \"Make a phone call to a place.\",\r\n \"examples\": \"Call mom; I would like to place a Skype call to Anna; Call Jim\"\r\n },\r\n {\r\n \"name\": \"MakeReservation\",\r\n \"description\": \"Request a reservation for a restaurant or other business.\",\r\n \"examples\": \"Reserve at Zucca for two for tonight; Book a table for tomorrow; Table for 3 in Palo Alto at 8\"\r\n },\r\n {\r\n \"name\": \"MapQuestions\",\r\n \"description\": \"Request information about directions or whether a specified road goes to a destination.\",\r\n \"examples\": \"Does 13 pass through downtown?; Can I take 880 to Oakland?\"\r\n },\r\n {\r\n \"name\": \"Rating\",\r\n \"description\": \"Get the rating description of a restaurant or place.\",\r\n \"examples\": \"How many stars does the Contoso Inn have?\"\r\n },\r\n {\r\n \"name\": \"ReadAloud\",\r\n \"description\": \"Read a list of places out loud.\",\r\n \"examples\": \"Read me the first one; Read me the details\"\r\n },\r\n {\r\n \"name\": \"SelectItem\",\r\n \"description\": \"Choose an item from a list of choices relating to a place or places.\",\r\n \"examples\": \"Pick the second one; Select the first\"\r\n },\r\n {\r\n \"name\": \"ShowMap\",\r\n \"description\": \"Show a map of an area.\",\r\n \"examples\": \"Show a map for the second one ; Show map; Find San Francisco on the map\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"Show the next item in a series.\",\r\n \"examples\": \"Show the next one; go to the next page\"\r\n },\r\n {\r\n \"name\": \"ShowPrevious\",\r\n \"description\": \"Show the previous item in a series.\",\r\n \"examples\": \"show previous one; previous; go to previous\"\r\n },\r\n {\r\n \"name\": \"StartOver\",\r\n \"description\": \"Restart the app or start a new session.\",\r\n \"examples\": \"Start over; New session; restart\"\r\n },\r\n {\r\n \"name\": \"TakesReservations\",\r\n \"description\": \"Ask whether a place accepts reservations.\",\r\n \"examples\": \"Does the art gallery accept reservations; Is it possible to make a reservation at the Olive Garden\"\r\n },\r\n {\r\n \"name\": \"CheckRouteTraffic\",\r\n \"description\": \"Check the traffic of a specific route specified by the user.\",\r\n \"examples\": \"How is the traffic to Mashiko?; Show me the traffice to Kirkland; How is the traffic to Seattle?\"\r\n },\r\n {\r\n \"name\": \"GetPriceRange\",\r\n \"description\": \"User asks for the price range of a place.\",\r\n \"examples\": \"Is Zucca cheap?; Is the Cineplex half price on Wednesdays?; How much does a whole lobster dinner cost at Sizzler?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AbsoluteLocation\",\r\n \"description\": \"The location or address of a place.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationAddress\",\r\n \"description\": \"A destination location or address.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceName\",\r\n \"description\": \"\\\"The name of a destination that is a business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"central park; safeway; walmart\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceType\",\r\n \"description\": \"\\\"The type of a destination that is a business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Cafe; Theatre; Library\"\r\n },\r\n {\r\n \"name\": \"MealType\",\r\n \"description\": \"Type of meal like breakfast or lunch.\",\r\n \"examples\": \"breakfast; dinner; lunch; supper\"\r\n },\r\n {\r\n \"name\": \"OpenStatus\",\r\n \"description\": \"Indicates whether a place is open or closed.\",\r\n \"examples\": \"Open; closed; opening\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"The name of a place.\",\r\n \"examples\": \"Cheesecake Factory;\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of a place.\",\r\n \"examples\": \"Cafe; Theatre; Library\"\r\n },\r\n {\r\n \"name\": \"TransportationCompany\",\r\n \"description\": \"The name of a public transport provider.\",\r\n \"examples\": \"Amtrack; Acela; Greyhound\"\r\n },\r\n {\r\n \"name\": \"TransportationType\",\r\n \"description\": \"A type of transportation.\",\r\n \"examples\": \"Bus; Train; Driving\"\r\n },\r\n {\r\n \"name\": \"Amenities\",\r\n \"description\": \"The objective characteristics/benefits of a place.\",\r\n \"examples\": \"kids eat free; waterfront; free parking\"\r\n },\r\n {\r\n \"name\": \"Atmosphere\",\r\n \"description\": \"The atmosphere of a place.\",\r\n \"examples\": \"kid-friendly; casual restaurant; sporty\"\r\n },\r\n {\r\n \"name\": \"RouteAvoidanceCriteria\",\r\n \"description\": \"\\\"Criteria for avoiding specific routes like avoiding accidents, constructions or tolls.\\\"\",\r\n \"examples\": \"Tolls; Constructions; Route 11\"\r\n },\r\n {\r\n \"name\": \"Cuisine\",\r\n \"description\": \"The cuisine of a place.\",\r\n \"examples\": \"Mediterranean; Italian; Indian\"\r\n },\r\n {\r\n \"name\": \"Distance\",\r\n \"description\": \"The distance to a place.\",\r\n \"examples\": \"15 miles; 5 miles; 10 miles away\"\r\n },\r\n {\r\n \"name\": \"PreferredRoute\",\r\n \"description\": \"The preferred route specified by the user.\",\r\n \"examples\": \"101; 202; Route 401\"\r\n },\r\n {\r\n \"name\": \"Product\",\r\n \"description\": \"The product offered by a place.\",\r\n \"examples\": \"Clothes; Digital ASR Cameras; Fresh fish\"\r\n },\r\n {\r\n \"name\": \"PublicTransportationRoute\",\r\n \"description\": \"The name of the public transportation route that the user is searching for.\",\r\n \"examples\": \"Northeast corridor train; Bus route 3X\"\r\n },\r\n {\r\n \"name\": \"Rating\",\r\n \"description\": \"The rating of a place.\",\r\n \"examples\": \"5 stars; 3 stars; 4 stars\"\r\n },\r\n {\r\n \"name\": \"ServiceProvided\",\r\n \"description\": \"\\\"This is the service provided by a business or place such as haircut, snow plowing, landscaping.\\\"\",\r\n \"examples\": \"haircut; mechanic; plumber\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Reminder\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The reminder domain provides intents and entities for creating, editing, and finding reminders.\",\r\n \"examples\": \"Change my interview to 9 am tomorrow; Remind me to buy milk on my way back home; Can you check if I have a reminder about Christine's birthday?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Change\",\r\n \"description\": \"Change a reminder.\",\r\n \"examples\": \"Change my interview to 9 am tomorrow ; Move my assignment reminder to tomorrow\"\r\n },\r\n {\r\n \"name\": \"Create\",\r\n \"description\": \"Create a new reminder.\",\r\n \"examples\": \"Create a reminder; Remind me to buy milk; I want to remember to call Rebecca when I'm at home\"\r\n },\r\n {\r\n \"name\": \"Delete\",\r\n \"description\": \"Delete a reminder.\",\r\n \"examples\": \"Delete my picture reminder; Delete this reminder\"\r\n },\r\n {\r\n \"name\": \"Find\",\r\n \"description\": \"Find a reminder.\",\r\n \"examples\": \"Do I have a reminder about my anniversary?; Can you check if I have a reminder about Christine's birthday?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Text\",\r\n \"description\": \"The text description of a reminder.\",\r\n \"examples\": \"pick up dry cleaning; dropping my car off at the service center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"RestaurantReservation\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Reservation domain provides intents and entities related to managing restaurant reservations.\",\r\n \"examples\": \"Reserve at Zucca for two for tonight; Book a table at BJ's for tomorrow; Table for 3 in Palo Alto at 7\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Reserve\",\r\n \"description\": \"Request a reservation for a restaurant.\",\r\n \"examples\": \"Reserve at Zucca for two for tonight; Book a table for tomorrow; Table for 3 in Palo Alto at 7\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"An event location or address for a reservation.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"Amenities\",\r\n \"description\": \"An attribute describing the amenities of a place.\",\r\n \"examples\": \"ocean view; non smoking;\"\r\n },\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"The name of an application for making reservations.\",\r\n \"examples\": \"OpenTable; Yelp; TripAdvisor\"\r\n },\r\n {\r\n \"name\": \"Atmosphere\",\r\n \"description\": \"A description of the atmosphere of a restaurant or other place.\",\r\n \"examples\": \"romantic; casual; good for groups\"\r\n },\r\n {\r\n \"name\": \"Cuisine\",\r\n \"description\": \"\\\"A type of food, cuisine or cuisine nationality.\\\"\",\r\n \"examples\": \"Chinese; Italian; Mexican\"\r\n },\r\n {\r\n \"name\": \"MealType\",\r\n \"description\": \"A meal type associated with a reservation.\",\r\n \"examples\": \"breakfast; dinner; lunch; supper\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"\\\"The name of a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"IHOP; Cheesecake Factory; Louvre\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"\\\"The type of a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"restaurant; opera; cinema\"\r\n },\r\n {\r\n \"name\": \"Rating\",\r\n \"description\": \"The rating of a place or restaurant.\",\r\n \"examples\": \"5 stars; 3 stars; 4 stars\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Taxi\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Taxi domain provides intents and entities for creating and managing taxi bookings.\",\r\n \"examples\": \"Get me a cab at 3 pm; How much longer do I have to wait for my taxi?; Cancel my Uber\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Book\",\r\n \"description\": \"Call a taxi.\",\r\n \"examples\": \"Get me a cab; Find a taxi; Book me an uber x\"\r\n },\r\n {\r\n \"name\": \"Cancel\",\r\n \"description\": \"Cancel an action relating to booking a taxi.\",\r\n \"examples\": \"Cancel my taxi; Cancel my Uber\"\r\n },\r\n {\r\n \"name\": \"Track\",\r\n \"description\": \"Track a taxi route.\",\r\n \"examples\": \"How much longer do I have to wait for my taxi?; Where is my Uber?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"The address associated with booking a taxi.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationAddress\",\r\n \"description\": \"A destination location or address.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceName\",\r\n \"description\": \"\\\"The name of a destination that is a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Central Park; Safeway; Walmart\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceType\",\r\n \"description\": \"\\\"The type of a destination that is a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Restaurant; Opera; Cinema\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"\\\"Name of local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Central Park; Safeway; Walmart\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of place in a request to book a taxi.\",\r\n \"examples\": \"Restaurant; Opera; Cinema\"\r\n },\r\n {\r\n \"name\": \"TransportationCompany\",\r\n \"description\": \"The name of a transport provider.\",\r\n \"examples\": \"Amtrack; Acela; Greyhound\"\r\n },\r\n {\r\n \"name\": \"TransportationType\",\r\n \"description\": \"The transportation type.\",\r\n \"examples\": \"Bus; Train; Driving\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Translate\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Translate domain provides intents and entities related to translating text to a target language.\",\r\n \"examples\": \"Translate to French; Translate hello to German; Translate this sentence to English\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Translate\",\r\n \"description\": \"Translate text to another language.\",\r\n \"examples\": \"Translate to French; Translate hello to German\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"TargetLanguage\",\r\n \"description\": \"The target language of a translation.\",\r\n \"examples\": \"French; German; Korean\"\r\n },\r\n {\r\n \"name\": \"Text\",\r\n \"description\": \"The text to translate.\",\r\n \"examples\": \"Hello World;Good morning;Good evening\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TV\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The TV domain provides intents and entities for controlling TVs.\",\r\n \"examples\": \"Switch channel to BBC; Show TV guide; Watch National Geographic\",\r\n \"intents\": [\r\n {\r\n \"name\": \"ChangeChannel\",\r\n \"description\": \"Change a channel on a TV.\",\r\n \"examples\": \"Change channel to CNN; Switch channel to BBC; Go to channel 4\"\r\n },\r\n {\r\n \"name\": \"ShowGuide\",\r\n \"description\": \"Show the TV guide.\",\r\n \"examples\": \"Show TV guide; what is on movie channel now?; show my program list\"\r\n },\r\n {\r\n \"name\": \"WatchTV\",\r\n \"description\": \"Ask to watch a TV channel.\",\r\n \"examples\": \"I want to watch the Disney channel; go to TV please; Watch National Geographic\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ChannelName\",\r\n \"description\": \"The name of a TV channel.\",\r\n \"examples\": \"CNN; BBC; Movie channel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Utilities\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Utilities domain provides intents for tasks that are common to many tasks, such as greetings, cancellation, confirmation, help, repetition, navigation, starting and stopping.\",\r\n \"examples\": \"Go back to Twitter; Please help; Repeat last question please\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Cancel\",\r\n \"description\": \"Cancel an action.\",\r\n \"examples\": \"Cancel the message; I don't want to send the email anymore\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action.\",\r\n \"examples\": \"Yeah ohh I confirm;Good I am confirming;Okay I am confirming\"\r\n },\r\n {\r\n \"name\": \"GoBack\",\r\n \"description\": \"Go back one step or return to a previous step.\",\r\n \"examples\": \"Go back to Twitter; Go back a step; Go back\"\r\n },\r\n {\r\n \"name\": \"Help\",\r\n \"description\": \"Request for help.\",\r\n \"examples\": \"Please help; open help; help\"\r\n },\r\n {\r\n \"name\": \"Repeat\",\r\n \"description\": \"Repeat an action.\",\r\n \"examples\": \"Repeat last question please; repeat last song\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"Show the next item in a series.\",\r\n \"examples\": \"Show the next one; go to the next page\"\r\n },\r\n {\r\n \"name\": \"ShowPrevious\",\r\n \"description\": \"Show the previous item in a series.\",\r\n \"examples\": \"show previous one\"\r\n },\r\n {\r\n \"name\": \"StartOver\",\r\n \"description\": \"Restart the app or start a new session.\",\r\n \"examples\": \"Start over; New session; restart\"\r\n },\r\n {\r\n \"name\": \"Stop\",\r\n \"description\": \"Stop an action.\",\r\n \"examples\": \"Stop saying this please;Shut up;Stop please\"\r\n },\r\n {\r\n \"name\": \"FinishTask\",\r\n \"description\": \"Finish a task the user started.\",\r\n \"examples\": \"I am done; I am finished; It is done\"\r\n }\r\n ],\r\n \"entities\": []\r\n },\r\n {\r\n \"name\": \"Weather\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Weather domain provides intents and entities for getting weather reports and forecasts\",\r\n \"examples\": \"weather in London in september; What's the 10 day forecast?; What's the average temperature in India in september?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"GetCondition\",\r\n \"description\": \"Get historic facts related to weather.\",\r\n \"examples\": \"weather in London in september; what's the average temperature in India in september\"\r\n },\r\n {\r\n \"name\": \"GetForecast\",\r\n \"description\": \"Get the current weather and forecast for the next few days.\",\r\n \"examples\": \"How is the weather today?; What's the 10 day forecast; How will the weather be this weekend\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Location\",\r\n \"description\": \"The absolute location for a weather request.\",\r\n \"examples\": \"Seattle; Paris; Palo Alto\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Web\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Web domain provides intents and entities for navigating to a website.\",\r\n \"examples\": \"Navigate to facebook.com; Go to www.twitter.com; Navigate to www.bing.com\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Navigate\",\r\n \"description\": \"A request to navigate to a specified website.\",\r\n \"examples\": \"Navigate to facebook.com; Go to www.twitter.com\"\r\n }\r\n ],\r\n \"entities\": []\r\n },\r\n {\r\n \"name\": \"日程\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"日程主题提供与日程规划相关的意图和实体,包括添加、删除和编辑日程待办事项,查询信息等意图。\",\r\n \"examples\": \"在周日下午2点与莉莉约会;阿明什么时候有空参加会议;取消我上午九点的会议\",\r\n \"intents\": [\r\n {\r\n \"name\": \"添加日程\",\r\n \"description\": \"增加一个新的日程事项\",\r\n \"examples\": \"周日下午两点与莉莉约会;我想安排一个会议;我需要指定一个会议日程\"\r\n },\r\n {\r\n \"name\": \"核查\",\r\n \"description\": \"核查用户日程,寻找适宜的会议时间\",\r\n \"examples\": \"阿明什么时候有空参加会议;查看罗琳明天什么时候有空;李斯周六有空吗?\"\r\n },\r\n {\r\n \"name\": \"删除\",\r\n \"description\": \"请求删除日程事项\",\r\n \"examples\": \"取消我和罗琳的约会;删除我九点的会议日程\"\r\n },\r\n {\r\n \"name\": \"编辑\",\r\n \"description\": \"请求修改日程信息\",\r\n \"examples\": \"将上午九点的会议改为十点;我想更新我的日程;重新安排我和卢斯的会议\"\r\n },\r\n {\r\n \"name\": \"查询\",\r\n \"description\": \"查询会议信息或日程安排\",\r\n \"examples\": \"告诉我周末的日程安排;查询我牙齿复查的日程安排.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"地点\",\r\n \"description\": \"日程事项的位置信息,包含城市、区域等地址信息\",\r\n \"examples\": \"纳什维尔健身房209;897煎饼屋;车库\"\r\n },\r\n {\r\n \"name\": \"主题\",\r\n \"description\": \"会议的主题信息\",\r\n \"examples\": \"牙齿复查日程;和朱莉吃午餐\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"通讯\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"通讯主题提供与电话、电子邮件和发送信息相关的意图和实体\",\r\n \"examples\": \"转接到我的语音信箱;记录这个号码,将联系人保存为罗琳;请将我的电话转接到3333号码\",\r\n \"intents\": [\r\n {\r\n \"name\": \"添加联系人\",\r\n \"description\": \"将新联系人添加到用户的联系人列表中\",\r\n \"examples\": \"添加新联系人;保存此号码并将其命名为Carol\"\r\n },\r\n {\r\n \"name\": \"添加更多信息\",\r\n \"description\": \"添加更多的电子邮件或文本,作为逐步的电子邮件或文本构成的一部分\",\r\n \"examples\": \"添加更多文字;添加更多到电子邮件正文\"\r\n },\r\n {\r\n \"name\": \"回复\",\r\n \"description\": \"接听电话\",\r\n \"examples\": \"接电话;回复他\"\r\n },\r\n {\r\n \"name\": \"编辑联系人姓名\",\r\n \"description\": \"为联系人分配昵称\",\r\n \"examples\": \"将何伟设置为爸爸;添加昵称卡罗尔·汉娜;编辑吉姆的昵称\"\r\n },\r\n {\r\n \"name\": \"拨打语音信箱\",\r\n \"description\": \"连接到用户的语音信箱\",\r\n \"examples\": \"将我连接到我的语音信箱;致电语音信箱;语音信箱\"\r\n },\r\n {\r\n \"name\": \"检查状态\",\r\n \"description\": \"在Skype中检查联系人的状态\",\r\n \"examples\": \"吉姆的在线状态是否脱离了?;卡罗尔可以聊天吗?\"\r\n },\r\n {\r\n \"name\": \"确认\",\r\n \"description\": \"确认指令\",\r\n \"examples\": \"是;好的;好吧;我确认我要发送这封电子邮件。\"\r\n },\r\n {\r\n \"name\": \"寻找联系人\",\r\n \"description\": \"按名称查找联系人信息\",\r\n \"examples\": \"查找卡罗尔的号码;告诉我卡罗的号码\"\r\n },\r\n {\r\n \"name\": \"关闭呼叫转移\",\r\n \"description\": \"关闭呼叫转移\",\r\n \"examples\": \"停止转发我的电话;关闭呼叫转移\"\r\n },\r\n {\r\n \"name\": \"开启呼叫转移\",\r\n \"description\": \"打开呼叫转移\",\r\n \"examples\": \"转发我的电话3333;切换呼叫转移到3333\"\r\n },\r\n {\r\n \"name\": \"呼叫转接状态\",\r\n \"description\": \"呼叫转移的状态\",\r\n \"examples\": \"是我的呼叫转移了吗?;告诉我通话状态是开或关 \"\r\n },\r\n {\r\n \"name\": \"回退\",\r\n \"description\": \"返回前一步\",\r\n \"examples\": \"回到必应搜索;回头一步;回去\"\r\n },\r\n {\r\n \"name\": \"忽略\",\r\n \"description\": \"忽略来电\",\r\n \"examples\": \"不要接听;忽略呼叫\"\r\n },\r\n {\r\n \"name\": \"忽略并回复\",\r\n \"description\": \"忽略来电和文本代替回答\",\r\n \"examples\": \"不要回答电话而是发送消息;忽略发送回来 \"\r\n },\r\n {\r\n \"name\": \"打电话\",\r\n \"description\": \"打电话\",\r\n \"examples\": \"打电话给吉姆;请拨311。 \"\r\n },\r\n {\r\n \"name\": \"按键\",\r\n \"description\": \"按键盘上的按钮或数\",\r\n \"examples\": \"拨星号;按1 2 3 \"\r\n },\r\n {\r\n \"name\": \"朗读\",\r\n \"description\": \"阅读邮件或电子邮件给用户\",\r\n \"examples\": \"阅读文本;她说什么的消息\"\r\n },\r\n {\r\n \"name\": \"重拨\",\r\n \"description\": \"重拨或拨打一个号码\",\r\n \"examples\": \"重拨;重拨我的最后一次通话\"\r\n },\r\n {\r\n \"name\": \"发送电子邮件\",\r\n \"description\": \"发送电子邮件。本文适用于邮件而不是短信\",\r\n \"examples\": \"电子邮件给麦克麦克晚餐上周精彩;发送一封电子邮件给鲍勃\"\r\n },\r\n {\r\n \"name\": \"发送信息\",\r\n \"description\": \"发送短信或即时消息\",\r\n \"examples\": \"发送文本给克里斯和凯罗尔\"\r\n },\r\n {\r\n \"name\": \"设置快速拨号\",\r\n \"description\": \"联系人的电话号码设置快速拨号快捷方式\",\r\n \"examples\": \"设置快速拨号给卡罗尔;妈妈设置快速拨号\"\r\n },\r\n {\r\n \"name\": \"显示下一项\",\r\n \"description\": \"看下一个项目,例如,在一个列表中的短信或邮件\",\r\n \"examples\": \"显示下一个;进入下一页\"\r\n },\r\n {\r\n \"name\": \"显示上一项\",\r\n \"description\": \"看到以前的项目,例如,在一个列表中的短信或邮件\",\r\n \"examples\": \"显示前一个;以前的;去之前\"\r\n },\r\n {\r\n \"name\": \"关闭扬声器\",\r\n \"description\": \"关掉扬声器电话\",\r\n \"examples\": \"关闭免提;关掉扬声器\"\r\n },\r\n {\r\n \"name\": \"开启扬声器\",\r\n \"description\": \"打开扬声器电话\",\r\n \"examples\": \"免提模式;放扬声器\"\r\n },\r\n {\r\n \"name\": \"查询快速拨号\",\r\n \"description\": \"查询快速拨号\",\r\n \"examples\": \"我的电话号码是多少?;我有速拨盘吗?;941 - 5555 - 333的拨号数是多少?\"\r\n },\r\n {\r\n \"name\": \"拒接\",\r\n \"description\": \"拒绝一个来电\",\r\n \"examples\": \"拒绝呼叫;不能回答现在;不是此刻和以后会回电话\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"联系人姓名\",\r\n \"description\": \"一个联系人或邮件收件人。\",\r\n \"examples\": \"卡罗尔;吉姆;克里斯\"\r\n },\r\n {\r\n \"name\": \"邮件主题\",\r\n \"description\": \"文本作为一个电子邮件的主题行\",\r\n \"examples\": \"回复: 有趣的故事\"\r\n },\r\n {\r\n \"name\": \"信息内容\",\r\n \"description\": \"消息发送电子邮件或文本\",\r\n \"examples\": \"今天很高兴见到你。很快再见到你!\"\r\n },\r\n {\r\n \"name\": \"类别\",\r\n \"description\": \"消息或邮件类别\",\r\n \"examples\": \"重要;高优先级\"\r\n },\r\n {\r\n \"name\": \"信息种类\",\r\n \"description\": \"信息搜索的类型\",\r\n \"examples\": \"文本;电子邮件\"\r\n },\r\n {\r\n \"name\": \"参照位置\",\r\n \"description\": \"序号或相关列表中的位置,确定一个项目检索。例如,在我发的最后一条消息是什么最后或最近的?\",\r\n \"examples\": \"上一个;最近的\"\r\n },\r\n {\r\n \"name\": \"音频设备种类\",\r\n \"description\": \"音频设备(扬声器,耳机,麦克风等\",\r\n \"examples\": \"耳机;免提;蓝牙\"\r\n },\r\n {\r\n \"name\": \"联系人属性\",\r\n \"description\": \"用户查询的联系的属性\",\r\n \"examples\": \"生日;地址;电话号码\"\r\n },\r\n {\r\n \"name\": \"线路\",\r\n \"description\": \"用户想使用打电话或发短信/电子邮件从线路\",\r\n \"examples\": \"工作线;英国线;Skype \"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"智能家居\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"智能家居主题提供控制灯光、家电等智能家居装置相关的意图和实体\",\r\n \"examples\": \"关闭灯光;把咖啡机打开;关闭车库门\",\r\n \"intents\": [\r\n {\r\n \"name\": \"关闭\",\r\n \"description\": \"关闭、关闭或解锁设备\",\r\n \"examples\": \"关灯;停止咖啡壶;关闭车库门\"\r\n },\r\n {\r\n \"name\": \"打开\",\r\n \"description\": \"打开设备或将设备设置为特定的设置或模式\",\r\n \"examples\": \"打开我的咖啡壶;你能打开我的咖啡壶吗?将恒温器设置为72度\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"装置\",\r\n \"description\": \"可以打开或关闭的一种设备\",\r\n \"examples\": \"咖啡壶;恒温器;灯\"\r\n },\r\n {\r\n \"name\": \"地点\",\r\n \"description\": \"设备所在的位置或房间\",\r\n \"examples\": \"客厅;卧室;厨房\"\r\n },\r\n {\r\n \"name\": \"操作\",\r\n \"description\": \"设备的当前状态\",\r\n \"examples\": \"锁;开放;关\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"音乐\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"音乐主题提供与音乐播放相关的主题和实体\",\r\n \"examples\": \"播放周杰伦的歌;增加音量;下一首音乐\",\r\n \"intents\": [\r\n {\r\n \"name\": \"减少音量\",\r\n \"description\": \"减少音量\",\r\n \"examples\": \"减少轨道音量;音量 \"\r\n },\r\n {\r\n \"name\": \"增加音量\",\r\n \"description\": \"增加音量\",\r\n \"examples\": \"增加轨道音量;音量 \"\r\n },\r\n {\r\n \"name\": \"播放音乐\",\r\n \"description\": \"在设备上播放音乐\",\r\n \"examples\": \"播放凯文杜兰特;播放游玩曲;播放阿黛勒的hello \"\r\n },\r\n {\r\n \"name\": \"下一首\",\r\n \"description\": \"跳过一个磁道\",\r\n \"examples\": \"跳到下一首歌曲;播放下一首歌曲\"\r\n },\r\n {\r\n \"name\": \"上一首\",\r\n \"description\": \"跳过轨道 \",\r\n \"examples\": \"播放上一首歌曲;回到以前的轨道\"\r\n },\r\n {\r\n \"name\": \"停止\",\r\n \"description\": \"停止有关音乐的播放动作\",\r\n \"examples\": \"停止播放这张专辑\"\r\n },\r\n {\r\n \"name\": \"解除静音\",\r\n \"description\": \"解除音乐播放静音状态\",\r\n \"examples\": \"解除静音\"\r\n },\r\n {\r\n \"name\": \"静音\",\r\n \"description\": \"音乐静音\",\r\n \"examples\": \"静音音乐;暂时让设备静音;乐曲静音\"\r\n },\r\n {\r\n \"name\": \"暂停\",\r\n \"description\": \"暂停音乐播放\",\r\n \"examples\": \"暂停;暂停音乐播放;暂停音乐轨道\"\r\n },\r\n {\r\n \"name\": \"继续\",\r\n \"description\": \"继续播放音乐\",\r\n \"examples\": \"继续音乐;再一次播放音乐;去除暂停\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"艺术家名\",\r\n \"description\": \"演员、导演、作家、音乐家等艺术家的名称\",\r\n \"examples\": \"爱丽丝;泰勒斯威夫特;阿黛尔;莫扎特\"\r\n },\r\n {\r\n \"name\": \"风格\",\r\n \"description\": \"音乐风格类型\",\r\n \"examples\": \"乡村音乐;百老汇经典;播放巴洛克古典音乐\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"笔记\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"笔记主题提供记录、查询和修改笔记相关的意图和实体\",\r\n \"examples\": \"在我的杂货笔记中加入生菜、番茄、面包和咖啡;从我的杂货单清除香蕉;从我的假期清单中删除所有项目\",\r\n \"intents\": [\r\n {\r\n \"name\": \"加入记录\",\r\n \"description\": \"在笔记中加入信息\",\r\n \"examples\": \"在我的杂货笔记中加入生菜、番茄、面包和咖啡;加入到我的待办事项;在我的愿望单中加入蛋糕\"\r\n },\r\n {\r\n \"name\": \"创建\",\r\n \"description\": \"创建新的笔记\",\r\n \"examples\": \"创建一个新的列表;记录提醒我杰克会在五月第一周来到城镇\"\r\n },\r\n {\r\n \"name\": \"删除\",\r\n \"description\": \"删除笔记\",\r\n \"examples\": \"删除假日笔记;删除我的杂货笔记\"\r\n },\r\n {\r\n \"name\": \"删除项目\",\r\n \"description\": \"删除笔记中的项目\",\r\n \"examples\": \"删除杂货笔记中的奶酪项;Remove pens from my school shopping list\"\r\n },\r\n {\r\n \"name\": \"朗读\",\r\n \"description\": \"朗读列表\",\r\n \"examples\": \"朗读第一个;朗读细节\"\r\n },\r\n {\r\n \"name\": \"显示下一项\",\r\n \"description\": \"显示笔记列表的下一项\",\r\n \"examples\": \"显示下一个;下一页;之后的一项\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"笔记文本\",\r\n \"description\": \"笔记文本内容\",\r\n \"examples\": \"运动之前进行拉伸;明天长跑\"\r\n },\r\n {\r\n \"name\": \"题目\",\r\n \"description\": \"笔记题目\",\r\n \"examples\": \"杂物;联系人列表;待办事项\"\r\n },\r\n {\r\n \"name\": \"笔记数据源\",\r\n \"description\": \"笔记所在位置\",\r\n \"examples\": \"微软笔记;谷歌文档;我的电脑\"\r\n },\r\n {\r\n \"name\": \"数据类型\",\r\n \"description\": \"文档类型\",\r\n \"examples\": \"演示文稿;电子表格;工作表\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"设备控制\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"设备控制主题包含控制设备的意图和实体\",\r\n \"examples\": \"关闭视频播放器;取消播放;能让显示器屏幕亮一些吗?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"在听吗\",\r\n \"description\": \"询问装置是否在线\",\r\n \"examples\": \"在线吗?;你在听吗?\"\r\n },\r\n {\r\n \"name\": \"关闭应用\",\r\n \"description\": \"关闭应用\",\r\n \"examples\": \"关闭视频播放器\"\r\n },\r\n {\r\n \"name\": \"回退\",\r\n \"description\": \"回退一个步骤或到之前状态\",\r\n \"examples\": \"回到上一个步骤\"\r\n },\r\n {\r\n \"name\": \"帮助\",\r\n \"description\": \"请求帮助\",\r\n \"examples\": \"请求帮助;你可以帮我做什么?;我需要帮助\"\r\n },\r\n {\r\n \"name\": \"定位设备\",\r\n \"description\": \"定位设备\",\r\n \"examples\": \"帮我定位我的手机;寻找托尼的iphone;寻找我的电话\"\r\n },\r\n {\r\n \"name\": \"登录\",\r\n \"description\": \"登录装置服务\",\r\n \"examples\": \"请登录;登陆脸谱网;登陆微软\"\r\n },\r\n {\r\n \"name\": \"登出\",\r\n \"description\": \"等处装置服务\",\r\n \"examples\": \"从手机中登出;登出\"\r\n },\r\n {\r\n \"name\": \"打开应用\",\r\n \"description\": \"从设备中打开应用\",\r\n \"examples\": \"请打开闹钟;打开照相机;运行日历应用\"\r\n },\r\n {\r\n \"name\": \"打开设置\",\r\n \"description\": \"打开设备设置\",\r\n \"examples\": \"打开网络设置\"\r\n },\r\n {\r\n \"name\": \"关机\",\r\n \"description\": \"关闭设备\",\r\n \"examples\": \"请帮我关闭电脑;关机;关闭手机\"\r\n },\r\n {\r\n \"name\": \"查询电量\",\r\n \"description\": \"获得电池信息\",\r\n \"examples\": \"告诉我现在电量\"\r\n },\r\n {\r\n \"name\": \"重启\",\r\n \"description\": \"重新启动设备\",\r\n \"examples\": \"请重启电脑\"\r\n },\r\n {\r\n \"name\": \"设备响铃\",\r\n \"description\": \"让设备响铃\",\r\n \"examples\": \"让我的电话响铃\"\r\n },\r\n {\r\n \"name\": \"显示上下文菜单\",\r\n \"description\": \"显示上下文菜单\",\r\n \"examples\": \"请显示上下文菜单;请为我显示上下文菜单\"\r\n },\r\n {\r\n \"name\": \"休眠\",\r\n \"description\": \"设备休眠\",\r\n \"examples\": \"休眠;电脑休眠\"\r\n },\r\n {\r\n \"name\": \"切换应用\",\r\n \"description\": \"切换设备应用\",\r\n \"examples\": \"切换到音乐播放器\"\r\n },\r\n {\r\n \"name\": \"降低亮度\",\r\n \"description\": \"降低设备亮度\",\r\n \"examples\": \"屏幕变暗\"\r\n },\r\n {\r\n \"name\": \"关闭设备\",\r\n \"description\": \"关闭设备\",\r\n \"examples\": \"关闭蓝牙;断开显示器\"\r\n },\r\n {\r\n \"name\": \"开启设备\",\r\n \"description\": \"使设置中的项目开启\",\r\n \"examples\": \"打开蓝牙;打开WIFI网络\"\r\n },\r\n {\r\n \"name\": \"增加亮度\",\r\n \"description\": \"增加设备亮度\",\r\n \"examples\": \"可以让显示器变亮点吗?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"应用名\",\r\n \"description\": \"应用的名称\",\r\n \"examples\": \"微信;支付宝\"\r\n },\r\n {\r\n \"name\": \"设备种类\",\r\n \"description\": \"设备种类\",\r\n \"examples\": \"电话;平板电脑;个人电脑\"\r\n },\r\n {\r\n \"name\": \"设置类别\",\r\n \"description\": \"设置类别\",\r\n \"examples\": \"无线网络;颜色种类;通知中心\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"地点\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"地点主题提供处理与企业机构、餐馆等公共场所地址相关的查询的意图\",\r\n \"examples\": \"收藏这个位置;假日酒店还有多远?;百货大厦什么时候关门?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"添加到收藏\",\r\n \"description\": \"加入到用户的收藏夹中\",\r\n \"examples\": \"将这个地点加入的我的收藏夹中\"\r\n },\r\n {\r\n \"name\": \"检查事故\",\r\n \"description\": \"询问地点是否有事故\",\r\n \"examples\": \"880路上有事故吗?\"\r\n },\r\n {\r\n \"name\": \"查询区域交通\",\r\n \"description\": \"检查地点交通状况\",\r\n \"examples\": \"西雅图交通状况\"\r\n },\r\n {\r\n \"name\": \"记录地点\",\r\n \"description\": \"记录地点\",\r\n \"examples\": \"记录当前我的位置\"\r\n },\r\n {\r\n \"name\": \"确认\",\r\n \"description\": \"确认地点相关的动作\",\r\n \"examples\": \"确认我预定的餐厅\"\r\n },\r\n {\r\n \"name\": \"查询地点\",\r\n \"description\": \"查询某一地点\",\r\n \"examples\": \"附近最近的餐厅是哪一家\"\r\n },\r\n {\r\n \"name\": \"查询地址\",\r\n \"description\": \"查询地点地址\",\r\n \"examples\": \"告诉我最近的星巴克地址\"\r\n },\r\n {\r\n \"name\": \"查询距离\",\r\n \"description\": \"查询到某一地点的距离\",\r\n \"examples\": \"请问到北大图书馆有多远?\"\r\n },\r\n {\r\n \"name\": \"查询运营时间\",\r\n \"description\": \"查询地点的运营时间\",\r\n \"examples\": \"请问地铁的营运时间是多少?\"\r\n },\r\n {\r\n \"name\": \"查询菜单\",\r\n \"description\": \"查询餐厅的菜单\",\r\n \"examples\": \"请告诉我全聚德的菜单\"\r\n },\r\n {\r\n \"name\": \"查询电话号码\",\r\n \"description\": \"查询地点的电话号码\",\r\n \"examples\": \"最近的星巴克电话号码是多少?\"\r\n },\r\n {\r\n \"name\": \"查询评论\",\r\n \"description\": \"查询地点的评论\",\r\n \"examples\": \"查询这家餐厅的评论\"\r\n },\r\n {\r\n \"name\": \"导航\",\r\n \"description\": \"查询地点的方向\",\r\n \"examples\": \"如何步行到天安门广场?\"\r\n },\r\n {\r\n \"name\": \"查询评级\",\r\n \"description\": \"查询地点评价分数\",\r\n \"examples\": \"请问这家餐厅的评分是多少?\"\r\n },\r\n {\r\n \"name\": \"查询公交\",\r\n \"description\": \"查询公交时刻\",\r\n \"examples\": \"请问下次公交什么时候到达?\"\r\n },\r\n {\r\n \"name\": \"查询出行时间\",\r\n \"description\": \"询问到指定地点的出行时间\",\r\n \"examples\": \"请问还有多久到达中关村?\"\r\n },\r\n {\r\n \"name\": \"打电话\",\r\n \"description\": \"打电话\",\r\n \"examples\": \"请给安娜打一个电话\"\r\n },\r\n {\r\n \"name\": \"预定位置\",\r\n \"description\": \"预定位置\",\r\n \"examples\": \"预定这家餐厅明晚的桌位\"\r\n },\r\n {\r\n \"name\": \"查询评分\",\r\n \"description\": \"查询某一地点的评分\",\r\n \"examples\": \"请问这家餐厅的推荐评分是多少?\"\r\n },\r\n {\r\n \"name\": \"朗读\",\r\n \"description\": \"朗读地点列表\",\r\n \"examples\": \"请为我朗读餐厅信息\"\r\n },\r\n {\r\n \"name\": \"选择项目\",\r\n \"description\": \"选择地点相关选项\",\r\n \"examples\": \"选择第一项\"\r\n },\r\n {\r\n \"name\": \"显示地图\",\r\n \"description\": \"显示区域地图\",\r\n \"examples\": \"显示北京地图\"\r\n },\r\n {\r\n \"name\": \"显示下一项\",\r\n \"description\": \"显示下一个选项\",\r\n \"examples\": \"显示下一页\"\r\n },\r\n {\r\n \"name\": \"重新开始\",\r\n \"description\": \"重新启动应用\",\r\n \"examples\": \"重启\"\r\n },\r\n {\r\n \"name\": \"预定餐厅查询\",\r\n \"description\": \"询问餐厅预定情况\",\r\n \"examples\": \"这家餐厅是否能够预定?\"\r\n },\r\n {\r\n \"name\": \"查询导航路线\",\r\n \"description\": \"查询导航路线\",\r\n \"examples\": \"告诉我怎么样去北京;如何去西雅图?\"\r\n },\r\n {\r\n \"name\": \"获得价格范围\",\r\n \"description\": \"获得价格范围\",\r\n \"examples\": \"必胜客很便宜吗?;今天全聚德有折扣吗?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"具体地址\",\r\n \"description\": \"地址信息\",\r\n \"examples\": \"丹棱街5号\"\r\n },\r\n {\r\n \"name\": \"目的地地址\",\r\n \"description\": \"目的地地址\",\r\n \"examples\": \"善缘街\"\r\n },\r\n {\r\n \"name\": \"目的地名称\",\r\n \"description\": \"目的地名称\",\r\n \"examples\": \"中关村地铁站\"\r\n },\r\n {\r\n \"name\": \"目的地类别\",\r\n \"description\": \"目的地类别 \",\r\n \"examples\": \"咖啡厅;电影院\"\r\n },\r\n {\r\n \"name\": \"餐点类别\",\r\n \"description\": \"餐点类别,如早餐、晚餐\",\r\n \"examples\": \"早餐;晚餐\"\r\n },\r\n {\r\n \"name\": \"营业状态\",\r\n \"description\": \"地点的运营状态\",\r\n \"examples\": \"开门;关闭\"\r\n },\r\n {\r\n \"name\": \"地点名称\",\r\n \"description\": \"地点名称\",\r\n \"examples\": \"必胜客;\"\r\n },\r\n {\r\n \"name\": \"地点类别\",\r\n \"description\": \"地点类别\",\r\n \"examples\": \"咖啡厅;电影院\"\r\n },\r\n {\r\n \"name\": \"交通类别\",\r\n \"description\": \"交通类别\",\r\n \"examples\": \"公交;火车\"\r\n },\r\n {\r\n \"name\": \"地点设施\",\r\n \"description\": \"地点的设施\",\r\n \"examples\": \"儿童座椅;停车位\"\r\n },\r\n {\r\n \"name\": \"地点环境\",\r\n \"description\": \"地点的环境.\",\r\n \"examples\": \"运动型场地;\"\r\n },\r\n {\r\n \"name\": \"地点美食\",\r\n \"description\": \"地点的美食\",\r\n \"examples\": \"意大利菜;火锅\"\r\n },\r\n {\r\n \"name\": \"地点距离\",\r\n \"description\": \"地点的距离\",\r\n \"examples\": \"15公里;200米\"\r\n },\r\n {\r\n \"name\": \"推荐线路\",\r\n \"description\": \"推荐线路\",\r\n \"examples\": \"三环\"\r\n },\r\n {\r\n \"name\": \"地点产品\",\r\n \"description\": \"地点提供的产品信息\",\r\n \"examples\": \"新鲜鱼类\"\r\n },\r\n {\r\n \"name\": \"公共交通路线\",\r\n \"description\": \"公共交通线路\",\r\n \"examples\": \"公交300\"\r\n },\r\n {\r\n \"name\": \"地点评级\",\r\n \"description\": \"地点评级\",\r\n \"examples\": \"3颗星\"\r\n },\r\n {\r\n \"name\": \"服务提供\",\r\n \"description\": \"地点所提供的服务\",\r\n \"examples\": \"理发;美容\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"提醒\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"提醒主题提供创建、修改和查询提醒的意图和实体\",\r\n \"examples\": \"把面试时间改成明早九点;提醒我回家时购买牛奶;检查下我是否有关于李斯生日的提醒\",\r\n \"intents\": [\r\n {\r\n \"name\": \"更改提醒\",\r\n \"description\": \"更改提醒\",\r\n \"examples\": \"更改我的面试到明早九点;移动这个提示到已完成\"\r\n },\r\n {\r\n \"name\": \"创建提醒\",\r\n \"description\": \"创建提醒\",\r\n \"examples\": \"创建一个提醒;提醒我购买牛奶;提醒我回家的时候给艾莉打电话\"\r\n },\r\n {\r\n \"name\": \"删除提醒\",\r\n \"description\": \"删除提醒\",\r\n \"examples\": \"删除我的图片提醒;删除这个提醒\"\r\n },\r\n {\r\n \"name\": \"查询提醒\",\r\n \"description\": \"查询提醒\",\r\n \"examples\": \"我有关于周年庆的提醒吗?;能够帮我查询关于克里斯生日的提醒吗?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"提醒文本\",\r\n \"description\": \"提醒描述文本\",\r\n \"examples\": \"将干洗店的衣服拿回来\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"餐厅\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"餐厅主题提供管理餐厅预定的意图和实体\",\r\n \"examples\": \"今晚保留卓卡餐厅的两人位置;预定一个明天北京餐厅的位置;预定保罗餐厅晚上七点的三人桌位\",\r\n \"intents\": [\r\n {\r\n \"name\": \"预定位置\",\r\n \"description\": \"预定位置\",\r\n \"examples\": \"预定这个餐厅明晚的位置;预定明天11点20人的餐位\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"具体地址\",\r\n \"description\": \"餐厅地址\",\r\n \"examples\": \"丹棱街五号;北京西\"\r\n },\r\n {\r\n \"name\": \"地点设施\",\r\n \"description\": \"餐厅场所的设施\",\r\n \"examples\": \"海景;无烟区\"\r\n },\r\n {\r\n \"name\": \"地点环境\",\r\n \"description\": \"餐厅环境信息\",\r\n \"examples\": \"浪漫的;适合团队聚餐\"\r\n },\r\n {\r\n \"name\": \"地点美食\",\r\n \"description\": \"餐厅美食种类\",\r\n \"examples\": \"川菜;西餐;意大利餐\"\r\n },\r\n {\r\n \"name\": \"餐点类别\",\r\n \"description\": \"餐品类别如早餐\",\r\n \"examples\": \"早餐;晚餐;\"\r\n },\r\n {\r\n \"name\": \"地点名称\",\r\n \"description\": \"地点名称\",\r\n \"examples\": \"必胜客;东来顺\"\r\n },\r\n {\r\n \"name\": \"地点类别\",\r\n \"description\": \"地点类别\",\r\n \"examples\": \"餐厅;饭店;歌剧院\"\r\n },\r\n {\r\n \"name\": \"地点评级\",\r\n \"description\": \"餐厅的评级\",\r\n \"examples\": \"5颗星\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"出租车\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"出租车主题提供创建和管理预定出租车服务的意图和实体\",\r\n \"examples\": \"帮我预定下午三点的出租车;我还要等待出租车多久?;取消优步预定\",\r\n \"intents\": [\r\n {\r\n \"name\": \"预定\",\r\n \"description\": \"预定出租车\",\r\n \"examples\": \"寻找一辆出租车;\"\r\n },\r\n {\r\n \"name\": \"取消\",\r\n \"description\": \"取消预订的出租车\",\r\n \"examples\": \"取消我的出租车\"\r\n },\r\n {\r\n \"name\": \"查询\",\r\n \"description\": \"查询出租车路线\",\r\n \"examples\": \"出租车距离我还有多远;我的出租车在哪?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"具体地址\",\r\n \"description\": \"目标地址\",\r\n \"examples\": \"丹棱街5号\"\r\n },\r\n {\r\n \"name\": \"目的地名称\",\r\n \"description\": \"目的地名称\",\r\n \"examples\": \"微软大厦;家乐福超市\"\r\n },\r\n {\r\n \"name\": \"地点名称\",\r\n \"description\": \"地点名称\",\r\n \"examples\": \"中央公园\"\r\n },\r\n {\r\n \"name\": \"地点类别\",\r\n \"description\": \"地点类别\",\r\n \"examples\": \"餐厅;剧院\"\r\n },\r\n {\r\n \"name\": \"交通公司\",\r\n \"description\": \"交通公司\",\r\n \"examples\": \"北京地铁\"\r\n },\r\n {\r\n \"name\": \"交通类别\",\r\n \"description\": \"交通类别\",\r\n \"examples\": \"公交;火车\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"翻译\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"翻译主题提供翻译语言相关的意图和实体\",\r\n \"examples\": \"翻译成法语;把你好翻译成德语;翻译这句话为英语\",\r\n \"intents\": [\r\n {\r\n \"name\": \"翻译\",\r\n \"description\": \"翻译到另一种语言\",\r\n \"examples\": \"翻译成法语;翻译成德语\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"目标语言\",\r\n \"description\": \"目标语言\",\r\n \"examples\": \"法语;德语;韩语\"\r\n },\r\n {\r\n \"name\": \"文本\",\r\n \"description\": \"翻译文本\",\r\n \"examples\": \"你好;早上好\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"天气\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"天气主题提供获取天气报告和预测信息\",\r\n \"examples\": \"九月份伦敦的天气怎么样?;告诉我这十天的天气预测信息;印度九月份的平均温度是多少?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"查询天气\",\r\n \"description\": \"查询历史天气\",\r\n \"examples\": \"九月份北京天气如何?\"\r\n },\r\n {\r\n \"name\": \"天气预测\",\r\n \"description\": \"获得未来天气预测\",\r\n \"examples\": \"周末的天气怎么样?;今天的天气如何?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"地点\",\r\n \"description\": \"天气涉及的地点信息\",\r\n \"examples\": \"北京;上海\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"网页导航\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"网页导航主题提供与网页导航相关的意图和实体\",\r\n \"examples\": \"导航到必应搜索;查看新浪微博;导航到www.bing.com\",\r\n \"intents\": [\r\n {\r\n \"name\": \"网页导航\",\r\n \"description\": \"导航到目标网站页面\",\r\n \"examples\": \"导航到必应搜索;导航到微博\"\r\n }\r\n ],\r\n \"entities\": []\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "64484" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "e7337eba-ab13-49f1-834b-ed82c9d1786f" + ], + "Request-Id": [ + "e7337eba-ab13-49f1-834b-ed82c9d1786f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListAvailableCustomPrebuiltDomainsForCulture.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListAvailableCustomPrebuiltDomainsForCulture.json new file mode 100644 index 000000000000..8831cbb30453 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListAvailableCustomPrebuiltDomainsForCulture.json @@ -0,0 +1,116 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/customprebuiltdomains/en-US", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jdXN0b21wcmVidWlsdGRvbWFpbnMvZW4tVVM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"name\": \"Calendar\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Calendar domain provides intents and entities related to calendar entries. The Calendar intents include adding, deleting or editing an appointment, checking availability, and finding information about a calendar entry or appointment.\",\r\n \"examples\": \"Make an appointment with Lisa at 2pm on Sunday; When is Jim available to meet?; Delete my 9 am meeting\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Add\",\r\n \"description\": \"Add a new one-time item to the calendar.\",\r\n \"examples\": \"Make an appointment with Lisa at 2pm on Sunday; I want to schedule a meeting ; I need to set up a meeting\"\r\n },\r\n {\r\n \"name\": \"CheckAvailability\",\r\n \"description\": \"Find availability for an appointment or meeting on the user's calendar or another person's calendar.\",\r\n \"examples\": \"When is Jim available to meet?; Show when Carol is available tomorrow; Is Chris free on Saturday?\"\r\n },\r\n {\r\n \"name\": \"Delete\",\r\n \"description\": \"Request to delete a calendar entry.\",\r\n \"examples\": \"Cancel my appointment with Carol; Delete my 9 am meeting\"\r\n },\r\n {\r\n \"name\": \"Edit\",\r\n \"description\": \"Request to change an existing meeting or calendar entry.\",\r\n \"examples\": \"Move my 9 am meeting to 10 am; I want to update my schedule; Reschdule my meeting with Ryan\"\r\n },\r\n {\r\n \"name\": \"Find\",\r\n \"description\": \"Request to view or find information about their calendar or any specific existing calendar entry.\",\r\n \"examples\": \"Display my weekly calendar; Show my calendar; Find the dentist review appointment.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Location\",\r\n \"description\": \"\\\"Location of calendar item, meeting or appointment. Addresses, cities, and regions are good examples of locations.\\\"\",\r\n \"examples\": \"209 Nashville Gym; 897 Pancake house; Garage\"\r\n },\r\n {\r\n \"name\": \"Subject\",\r\n \"description\": \"The title of a meeting or appointment.\",\r\n \"examples\": \"Dentist's appointment; Lunch with Julia; Doctor's appointment\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Camera\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Camera domain provides intents and entities related to using a camera. The intents cover capturing a photo, selfie, screenshot or video, and broadcasting video to an application.\",\r\n \"examples\": \"Capture the screen; Take a selfie; Start broadcasting to Facebook\",\r\n \"intents\": [\r\n {\r\n \"name\": \"CapturePhoto\",\r\n \"description\": \"Capture a photo.\",\r\n \"examples\": \"Take a photo; capture\"\r\n },\r\n {\r\n \"name\": \"CaptureScreenshot\",\r\n \"description\": \"Capture a screenshot.\",\r\n \"examples\": \"Take screen shot; capture the screen\"\r\n },\r\n {\r\n \"name\": \"CaptureSelfie\",\r\n \"description\": \"Capture a selfie.\",\r\n \"examples\": \"Take a selfie; take a picture of me\"\r\n },\r\n {\r\n \"name\": \"CaptureVideo\",\r\n \"description\": \"Start recording video.\",\r\n \"examples\": \"Start recording; Begin recording\"\r\n },\r\n {\r\n \"name\": \"StartBroadcasting\",\r\n \"description\": \"Start broadcasting video.\",\r\n \"examples\": \"Start broadcasting to Facebook\"\r\n },\r\n {\r\n \"name\": \"StopBroadcasting\",\r\n \"description\": \"Stop broadcasting video.\",\r\n \"examples\": \"Stop broadcasting\"\r\n },\r\n {\r\n \"name\": \"StopVideoRecording\",\r\n \"description\": \"Stop recording a video.\",\r\n \"examples\": \"That's enough; stop recording\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"The name of an application to broadcast video to.\",\r\n \"examples\": \"OneNote; Facebook; Skype\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Communication\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Communication domain provides intents and entities related to email, messages and phone calls.\",\r\n \"examples\": \"Connect me to my voicemail box; Save this number and put the name as Carol; Switch on call forwarding to 3333\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddContact\",\r\n \"description\": \"Add a new contact to the user's list of contacts.\",\r\n \"examples\": \"Add new contact; Save this number and put the name as Carol\"\r\n },\r\n {\r\n \"name\": \"AddMore\",\r\n \"description\": \"\\\"Add more to an email or text, as part of a step-wise email or text composition.\\\"\",\r\n \"examples\": \"Add more to text; Add more to email body\"\r\n },\r\n {\r\n \"name\": \"Answer\",\r\n \"description\": \"Answer an incoming phone call.\",\r\n \"examples\": \"Answer the call; Pick it up\"\r\n },\r\n {\r\n \"name\": \"AssignContactNickname\",\r\n \"description\": \"Assign a nickname to a contact.\",\r\n \"examples\": \"Change Isaac to dad; Add nickname to Carol Hanna; Edit Jim's nickname\"\r\n },\r\n {\r\n \"name\": \"CallVoiceMail\",\r\n \"description\": \"Connect to the user's voice mail.\",\r\n \"examples\": \"Connect me to my voicemail box; Call voicemail; Voice mail\"\r\n },\r\n {\r\n \"name\": \"CheckIMStatus\",\r\n \"description\": \"Check the status of a contact in Skype.\",\r\n \"examples\": \"Is Jim's online status set to away?; Is Carol available to chat with?\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action.\",\r\n \"examples\": \"Yes; Okay; All right; I confirm that I want to send this email.\"\r\n },\r\n {\r\n \"name\": \"FindContact\",\r\n \"description\": \"Find contact information by name.\",\r\n \"examples\": \"Find Carol's number; Show me Carol's number\"\r\n },\r\n {\r\n \"name\": \"TurnForwardingOff\",\r\n \"description\": \"Turn off call forwarding.\",\r\n \"examples\": \"Stop forwarding my calls; Switch off call forwarding\"\r\n },\r\n {\r\n \"name\": \"TurnForwardingOn\",\r\n \"description\": \"Turn on call forwarding.\",\r\n \"examples\": \"Forwarding my calls to 3333; Switch on call forwarding to 3333\"\r\n },\r\n {\r\n \"name\": \"GetForwardingsStatus\",\r\n \"description\": \"Get the current status of call forwarding.\",\r\n \"examples\": \"Is my call forwarding turned on?; Tell me if my call status is on or off\"\r\n },\r\n {\r\n \"name\": \"GoBack\",\r\n \"description\": \"Go back to the previous step.\",\r\n \"examples\": \"Go back to twitter; Go back a step; Go back\"\r\n },\r\n {\r\n \"name\": \"Ignore\",\r\n \"description\": \"Ignore an incoming call.\",\r\n \"examples\": \"Don't answer; Ignore call\"\r\n },\r\n {\r\n \"name\": \"IgnoreWithMessage\",\r\n \"description\": \"Ignore an incoming call and reply with text instead.\",\r\n \"examples\": \"Don't answer that call but send a message instead; Ignore and send a text back\"\r\n },\r\n {\r\n \"name\": \"Dial\",\r\n \"description\": \"Make a phone call.\",\r\n \"examples\": \"Call Jim; Please dial 311\"\r\n },\r\n {\r\n \"name\": \"PressKey\",\r\n \"description\": \"Press a button or number on the keypad.\",\r\n \"examples\": \"Dial star; Press the 1 2 3\"\r\n },\r\n {\r\n \"name\": \"ReadAloud\",\r\n \"description\": \"Read a message or email to the user.\",\r\n \"examples\": \"read text; what did she say in the message\"\r\n },\r\n {\r\n \"name\": \"Redial\",\r\n \"description\": \"Redial or call a number again.\",\r\n \"examples\": \"redial; redial my last call\"\r\n },\r\n {\r\n \"name\": \"SendEmail\",\r\n \"description\": \"Send an email. This intent applies to email but not text messages.\",\r\n \"examples\": \"email to mike waters mike that dinner last week was splendid; send an email to bob\"\r\n },\r\n {\r\n \"name\": \"SendMessage\",\r\n \"description\": \"Send a text message or an instant message.\",\r\n \"examples\": \"Send text to Chris and Carol\"\r\n },\r\n {\r\n \"name\": \"SetSpeedDial\",\r\n \"description\": \"Set a speed dial shortcut for a contact's phone number.\",\r\n \"examples\": \"Set speed dial one for Carol; setup speed dial for mom\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"\\\"See the next item, for example, in a list of text messages or emails.\\\"\",\r\n \"examples\": \"Show the next one; go to the next page\"\r\n },\r\n {\r\n \"name\": \"ShowPrevious\",\r\n \"description\": \"\\\"See the previous item, for example, in a list of text messages or emails.\\\"\",\r\n \"examples\": \"show the previous one; previous; go to previous\"\r\n },\r\n {\r\n \"name\": \"TurnSpeakerOff\",\r\n \"description\": \"Turn off the speaker phone.\",\r\n \"examples\": \"take me off speaker; turn off speakerphone\"\r\n },\r\n {\r\n \"name\": \"TurnSpeakerOn\",\r\n \"description\": \"Turn on the speaker phone.\",\r\n \"examples\": \"speakerphone mode; put speakerphone on\"\r\n },\r\n {\r\n \"name\": \"StartOver\",\r\n \"description\": \"Start the system over or start a new session.\",\r\n \"examples\": \"Start over; New session; restart\"\r\n },\r\n {\r\n \"name\": \"FindSpeedDial\",\r\n \"description\": \"Find the speedial number a phone number is set to and vice versa.\",\r\n \"examples\": \"What is my dial number 5?; Do I have speed dial set?; What is the dial number for 941-5555-333?\"\r\n },\r\n {\r\n \"name\": \"Reject\",\r\n \"description\": \"Reject an incoming call.\",\r\n \"examples\": \"Reject call; Can't answer now; Not available at the moment and will call back later\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ContactName\",\r\n \"description\": \"The name of a contact or message recipient.\",\r\n \"examples\": \"Carol; Jim; Chris\"\r\n },\r\n {\r\n \"name\": \"EmailSubject\",\r\n \"description\": \"The text used as the subject line for an email.\",\r\n \"examples\": \"RE: interesting story\"\r\n },\r\n {\r\n \"name\": \"SenderName\",\r\n \"description\": \"The name of the sender.\",\r\n \"examples\": \"Patti Owens\"\r\n },\r\n {\r\n \"name\": \"Message\",\r\n \"description\": \"The message to send as an email or text.\",\r\n \"examples\": \"It was great meeting you today. See you again soon!\"\r\n },\r\n {\r\n \"name\": \"Category\",\r\n \"description\": \"The category of a message or email.\",\r\n \"examples\": \"Important; High priority\"\r\n },\r\n {\r\n \"name\": \"MessageType\",\r\n \"description\": \"The type of message to search for.\",\r\n \"examples\": \"Text; Email\"\r\n },\r\n {\r\n \"name\": \"OrderReference\",\r\n \"description\": \"\\\"The ordinal or relative position in a list, identifying an item to retrieve. For example, last or recent in What was the last message I sent?.\\\"\",\r\n \"examples\": \"Last; Recent\"\r\n },\r\n {\r\n \"name\": \"AudioDeviceType\",\r\n \"description\": \"\\\"Type of audio device (speaker, headset, microphone, etc).\\\"\",\r\n \"examples\": \"Speaker; Hands-free; Bluetooth\"\r\n },\r\n {\r\n \"name\": \"ContactAttribute\",\r\n \"description\": \"The attribute of the contact the user inquires about.\",\r\n \"examples\": \"Birthdays; Address; Phone number\"\r\n },\r\n {\r\n \"name\": \"Line\",\r\n \"description\": \"The line the user wants to use to make a call or send a text/email from.\",\r\n \"examples\": \"Work line; British cell; Skype\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Entertainment\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Entertainment domain provides intents and entities related to searching for movies, music, games and TV shows.\",\r\n \"examples\": \"Search the store for Halo; Search for Avatar; Look for Comedies\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Search\",\r\n \"description\": \"\\\"Search for movies, music, apps, games and TV shows.\\\"\",\r\n \"examples\": \"Search the store for Halo; search for Avatar\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ContentRating\",\r\n \"description\": \"\\\"Media content rating like G, or R for movies.\\\"\",\r\n \"examples\": \"Kids video;PG rated\"\r\n },\r\n {\r\n \"name\": \"Genre\",\r\n \"description\": \"\\\"The genre of a movie, game, app or song.\\\"\",\r\n \"examples\": \"Comedies; Dramas; Funny\"\r\n },\r\n {\r\n \"name\": \"Language\",\r\n \"description\": \"\\\"The language of a movie, show, or music.\\\"\",\r\n \"examples\": \"French; English; Korean\"\r\n },\r\n {\r\n \"name\": \"Nationality\",\r\n \"description\": \"\\\"The country where a movie, show, or song was created.\\\"\",\r\n \"examples\": \"French; German; Korean\"\r\n },\r\n {\r\n \"name\": \"Person\",\r\n \"description\": \"\\\"The actor, director, producer, musician or artist associated with a movie, app, game or TV show.\\\"\",\r\n \"examples\": \"Madonna; Stanley Kubrick\"\r\n },\r\n {\r\n \"name\": \"Role\",\r\n \"description\": \"Role played by a person in the creation of media.\",\r\n \"examples\": \"Sings; Directed by; By\"\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"description\": \"\\\"The name of a movie, app, game, TV show, or song.\\\"\",\r\n \"examples\": \"Friends; Minecraft\"\r\n },\r\n {\r\n \"name\": \"Type\",\r\n \"description\": \"\\\"The type or media format of a movie, app, game, TV show, or song.\\\"\",\r\n \"examples\": \"Music; Movie; TV shows\"\r\n },\r\n {\r\n \"name\": \"UserRating\",\r\n \"description\": \"User user star or thumbs rating.\",\r\n \"examples\": \"5 stars; 3 stars; 4 stars\"\r\n },\r\n {\r\n \"name\": \"Keyword\",\r\n \"description\": \"A generic search keyword specifying an attribute the doesn't exist in the more specific media slots.\",\r\n \"examples\": \"Soundtracks; Moon River; Amelia Earhart\"\r\n },\r\n {\r\n \"name\": \"MediaSource\",\r\n \"description\": \"Mentions of the store/marketplace.\",\r\n \"examples\": \"Halo; Netflix; Prime\"\r\n },\r\n {\r\n \"name\": \"MediaSubTypes\",\r\n \"description\": \"Media types smaller than movies and games.\",\r\n \"examples\": \"Demos; Dlc; Trailers\"\r\n },\r\n {\r\n \"name\": \"MediaFormat\",\r\n \"description\": \"The additional special technical type in which the media is formatted.\",\r\n \"examples\": \"HD movies; 3D movies; Downloadable\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Events\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Events domain provides intents and entities related to booking tickets for events like concerts, festivals, sports games and comedy shows.\",\r\n \"examples\": \"I'd like to buy a ticket for the symphony this weekend; Get tickets for Shakespeare in the Park; Cancel my ticket order\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Book\",\r\n \"description\": \"Purchase tickets to an event.\",\r\n \"examples\": \"I'd like to buy a ticket for the symphony this weekend.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"Event location or address.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"Name\",\r\n \"description\": \"The name of an event.\",\r\n \"examples\": \"Shakespeare in the Park\"\r\n },\r\n {\r\n \"name\": \"Type\",\r\n \"description\": \"The type of an event.\",\r\n \"examples\": \"Concert; Sports game\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"The event location name.\",\r\n \"examples\": \"Louvre; Opera House; Broadway\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of the location the event will be held in.\",\r\n \"examples\": \"Cafe; Theatre; Library\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Fitness\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Fitness domain provides intents and entities related to tracking fitness activities. The intents include saving notes, remaining time or distance, or saving activity results.\",\r\n \"examples\": \"The difficulty of this run was 6/10; How much time till the next lap?; Log my Saturday morning walk\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddNote\",\r\n \"description\": \"Adds supplemental notes to a tracked activity.\",\r\n \"examples\": \"The difficulty of this run was 6/10; The terrain I am on running on is asphalt; I am using a 3 speed bike\"\r\n },\r\n {\r\n \"name\": \"GetRemaining\",\r\n \"description\": \"Gets the remaining time or distance for an activity.\",\r\n \"examples\": \"How much time till the next lap?; How many miles are remaining in my run? How much time for the split?\"\r\n },\r\n {\r\n \"name\": \"LogActivity\",\r\n \"description\": \"Save or log completed activity results.\",\r\n \"examples\": \"Save my last run; Log my Saturday morning walk; store my previous swim\"\r\n },\r\n {\r\n \"name\": \"LogWeight\",\r\n \"description\": \"Save or log the user's current weight.\",\r\n \"examples\": \"Save my current weight; log my weight now; store my current body weight\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ActivityType\",\r\n \"description\": \"The type of activity to track.\",\r\n \"examples\": \"Run; Walk; Swim; Cycle\"\r\n },\r\n {\r\n \"name\": \"Food\",\r\n \"description\": \"A type of food to track in a fitness app.\",\r\n \"examples\": \"Banana; Salmon; Protein Shake\"\r\n },\r\n {\r\n \"name\": \"MealType\",\r\n \"description\": \"The meal type to track in a health or fitness app.\",\r\n \"examples\": \"Breakfast; Dinner; Lunch; Supper\"\r\n },\r\n {\r\n \"name\": \"Measurement\",\r\n \"description\": \"\\\"A type of measurements for time, distance or weight, for use in a fitness or health app.\\\"\",\r\n \"examples\": \"Kilometers; Miles; Minutes; Kilograms\"\r\n },\r\n {\r\n \"name\": \"Number\",\r\n \"description\": \"A numeric quantity for use in a fitness or health app.\",\r\n \"examples\": \"19; three; 200; one\"\r\n },\r\n {\r\n \"name\": \"StatType\",\r\n \"description\": \"\\\"A statistic type on aggregated data, for use in a fitness or health app. For example, sum, average, maximum, minimum.\\\"\",\r\n \"examples\": \"Sum; Average; Maximum; Minimum\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Gaming\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Gaming domain provides intents and entities related to managing a game party in a multiplayer game.\",\r\n \"examples\": \"Join my clan; I'm leaving this party for another; should we start a clan tonight\",\r\n \"intents\": [\r\n {\r\n \"name\": \"InviteParty\",\r\n \"description\": \"Invite a contact to join a gaming party.\",\r\n \"examples\": \"Invite this player to my party; Come to my party; Join my clan\"\r\n },\r\n {\r\n \"name\": \"LeaveParty\",\r\n \"description\": \"Leave a gaming party in a multiplayer game.\",\r\n \"examples\": \"I'm out; I'm leaving this party for another; I am quitting\"\r\n },\r\n {\r\n \"name\": \"StartParty\",\r\n \"description\": \"Start a gaming party in a multiplayer game.\",\r\n \"examples\": \"Dude let's start a party; start a party; should we start a clan tonight\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Contact\",\r\n \"description\": \"A contact name to use in a multiplayer game.\",\r\n \"examples\": \"Carol; Jim; Chris\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"HomeAutomation\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Home Automation domain provides intents and entities related to controlling smart home devices like lights and appliances.\",\r\n \"examples\": \"Turn off the lights; Turn on my coffee maker; Close garage door\",\r\n \"intents\": [\r\n {\r\n \"name\": \"TurnOff\",\r\n \"description\": \"\\\"Turn off, close, or unlock a device.\\\"\",\r\n \"examples\": \"Turn off the lights; Stop the coffee maker; Close garage door\"\r\n },\r\n {\r\n \"name\": \"TurnOn\",\r\n \"description\": \"Turn on a device or set the device to a particular setting or mode.\",\r\n \"examples\": \"turn on my coffee maker; can you turn on my coffee maker?; Set the thermostat to 72 degrees.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Device\",\r\n \"description\": \"A type of device that can be turned on or off .\",\r\n \"examples\": \"coffee maker; thermostat; lights\"\r\n },\r\n {\r\n \"name\": \"Room\",\r\n \"description\": \"The location or room the device is in.\",\r\n \"examples\": \"living room; bedroom; kitchen\"\r\n },\r\n {\r\n \"name\": \"Operation\",\r\n \"description\": \"The current state of the device.\",\r\n \"examples\": \"lock; open; on; off\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MovieTickets\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Movie Tickets domain provides intents and entities related to booking tickets to movies at a movie theater.\",\r\n \"examples\": \"Book me two tickets for Captain Omar and the two Musketeers; Cancel tickets; When is Captain Omar showing?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Book\",\r\n \"description\": \"Purchase movie tickets.\",\r\n \"examples\": \"Book me two tickets for Captain Omar and the two musketeers; I want to buy a ticket for tomorrow's movie; I want a ticket for Captian Omar Part 2 next Wednesday\"\r\n },\r\n {\r\n \"name\": \"GetShowTime\",\r\n \"description\": \"Get the showtime of a movie.\",\r\n \"examples\": \"When is Captain Omar showing?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"The address of a movie theater.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"MovieTitle\",\r\n \"description\": \"The title of a movie.\",\r\n \"examples\": \"Life of Pi;Hunger Games;Inception\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"The name of a movie theater or cinema.\",\r\n \"examples\": \"Cinema Amir; Alexandria Theatre; New York Theater\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of location a movie is showing at.\",\r\n \"examples\": \"cinema; theater; IMAX cinema\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Music\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Music domain provides intents and entities related to playing music on a music player.\",\r\n \"examples\": \"play Kevin Durant; Increase track volume; Skip to the next song\",\r\n \"intents\": [\r\n {\r\n \"name\": \"DecreaseVolume\",\r\n \"description\": \"Decrease the device volume.\",\r\n \"examples\": \"increase track volume; volume up\"\r\n },\r\n {\r\n \"name\": \"IncreaseVolume\",\r\n \"description\": \"Increase the device volume.\",\r\n \"examples\": \"decrease track volume; volume down\"\r\n },\r\n {\r\n \"name\": \"PlayMusic\",\r\n \"description\": \"Play music on a device.\",\r\n \"examples\": \"play Kevin Durant; play Paradise by Coldplay; play Hello by Adele\"\r\n },\r\n {\r\n \"name\": \"SkipBack\",\r\n \"description\": \"Skip backwards a track.\",\r\n \"examples\": \"Skip to the next song; Play the next song\"\r\n },\r\n {\r\n \"name\": \"SkipForward\",\r\n \"description\": \"Skip forward a track.\",\r\n \"examples\": \"Play the previous song; Go back to the previous track\"\r\n },\r\n {\r\n \"name\": \"Stop\",\r\n \"description\": \"Stop an action relating to music playback.\",\r\n \"examples\": \"Stop playing this album\"\r\n },\r\n {\r\n \"name\": \"Unmute\",\r\n \"description\": \"Unmute a music playback device.\",\r\n \"examples\": \"Unmute.\"\r\n },\r\n {\r\n \"name\": \"Mute\",\r\n \"description\": \"Mute the playing music.\",\r\n \"examples\": \"Mute song; Put the track on mute; Mute music\"\r\n },\r\n {\r\n \"name\": \"Pause\",\r\n \"description\": \"Pause the playing music.\",\r\n \"examples\": \"Pause; Pause music; Pause track\"\r\n },\r\n {\r\n \"name\": \"Repeat\",\r\n \"description\": \"Repeat the playing music.\",\r\n \"examples\": \"Repeat song; Play the track gain; Repeat music\"\r\n },\r\n {\r\n \"name\": \"Resume\",\r\n \"description\": \"Resume the playing music.\",\r\n \"examples\": \"Resume song; Start music again; Unpause\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ArtistName\",\r\n \"description\": \"\\\"The actor, director, producer, writer, musician or artist associated with media to play on a device.\\\"\",\r\n \"examples\": \"Elvis Presley; Taylor Swift; Adele; Mozart\"\r\n },\r\n {\r\n \"name\": \"Genre\",\r\n \"description\": \"The genre of the music being requested.\",\r\n \"examples\": \"Country music; Broadway classics; Play my classical music from the Baroque period\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Note\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Note domain provides intents and entities related to finding, editing and creating notes.\",\r\n \"examples\": \"Add to my groceries note lettuce tomato bread coffee; Check off bananas from my grocery list; Remove all items from my vacation list\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddToNote\",\r\n \"description\": \"Add information to a note.\",\r\n \"examples\": \"Add to my groceries note lettuce tomato bread coffee; Add to my todo list; add cupcakes to my Wunderlist\"\r\n },\r\n {\r\n \"name\": \"CheckOffItem\",\r\n \"description\": \"Check off items from a pre-existing note.\",\r\n \"examples\": \"Check off bananas from my grocery list; Mark cheese cake on my holiday shopping list as done\"\r\n },\r\n {\r\n \"name\": \"Clear\",\r\n \"description\": \"Clear all items from a pre-existing note.\",\r\n \"examples\": \"Remove all items from my vacation list; Clear all from my reading list\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action relating to a note.\",\r\n \"examples\": \"It's okay by me;yes;I am confirming keeping all items on lists\"\r\n },\r\n {\r\n \"name\": \"Create\",\r\n \"description\": \"Create a new note.\",\r\n \"examples\": \"Create a list; Note to remind me that Jason is in town first week of May\"\r\n },\r\n {\r\n \"name\": \"Delete\",\r\n \"description\": \"Delete an entire note.\",\r\n \"examples\": \"Delete my vacation list; delete my groceries note\"\r\n },\r\n {\r\n \"name\": \"DeleteNoteItem\",\r\n \"description\": \"Delete items from a pre-existing note.\",\r\n \"examples\": \"Delete chips from my grocery list; Remove pens from my school shopping list\"\r\n },\r\n {\r\n \"name\": \"ReadAloud\",\r\n \"description\": \"Read a list out loud\",\r\n \"examples\": \"Read me the first one; Read me the details\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"See the next item in a list of notes.\",\r\n \"examples\": \"Show the next one; Next page; Next\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"The note-taking application name.\",\r\n \"examples\": \"Wunderlist; OneNote\"\r\n },\r\n {\r\n \"name\": \"ContactName\",\r\n \"description\": \"The name of a contact in a note.\",\r\n \"examples\": \"Carol; Jim; Chris\"\r\n },\r\n {\r\n \"name\": \"Text\",\r\n \"description\": \"The text of a note or reminder.\",\r\n \"examples\": \"stretch before walking; long run tomorrow\"\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"description\": \"Title of a note.\",\r\n \"examples\": \"groceries; people to call; to-do\"\r\n },\r\n {\r\n \"name\": \"DataSource\",\r\n \"description\": \"Location of notes.\",\r\n \"examples\": \"OneDrive; Google docs; my computer\"\r\n },\r\n {\r\n \"name\": \"DataType\",\r\n \"description\": \"The type of file or document, usually associated with particular software programs.\",\r\n \"examples\": \"Slides; Spreadsheet; Worksheet\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OnDevice\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The OnDevice domain provides intents and entities related to controlling the devices.\",\r\n \"examples\": \"Close video player; Cancel playback; Can you make the screen brighter?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AreYouListening\",\r\n \"description\": \"Ask if the device is listening.\",\r\n \"examples\": \"is this on?; are you listening?\"\r\n },\r\n {\r\n \"name\": \"CloseApplication\",\r\n \"description\": \"Close the device application.\",\r\n \"examples\": \"close video player\"\r\n },\r\n {\r\n \"name\": \"FileBug\",\r\n \"description\": \"File a bug on the device.\",\r\n \"examples\": \"file a bug please;Can you file a bug for me ?;Let me report this bug\"\r\n },\r\n {\r\n \"name\": \"GoBack\",\r\n \"description\": \"Ask to go back one step or return to the previous step.\",\r\n \"examples\": \"Go back please;Go to previous screen;Go back stop listening\"\r\n },\r\n {\r\n \"name\": \"Help\",\r\n \"description\": \"Request help.\",\r\n \"examples\": \"Help please;Hello; What can you do?;I need help\"\r\n },\r\n {\r\n \"name\": \"LocateDevice\",\r\n \"description\": \"Locate the device.\",\r\n \"examples\": \"Can you locate my phone;Find tom's iphone;Find my phone\"\r\n },\r\n {\r\n \"name\": \"LogIn\",\r\n \"description\": \"Log in to a service using the device.\",\r\n \"examples\": \"Login please;Facebook log in;Log into LinkedIn\"\r\n },\r\n {\r\n \"name\": \"LogOut\",\r\n \"description\": \"Log out of a service using the device.\",\r\n \"examples\": \"Log off my phone;Log on to twitter;Log out\"\r\n },\r\n {\r\n \"name\": \"MainMenu\",\r\n \"description\": \"View the main menu of a device.\",\r\n \"examples\": \"View menu.\"\r\n },\r\n {\r\n \"name\": \"OpenApplication\",\r\n \"description\": \"Open an application on the device.\",\r\n \"examples\": \"Open the alarm please;Turn on camera;Launch calendar\"\r\n },\r\n {\r\n \"name\": \"OpenSetting\",\r\n \"description\": \"Open a setting on the device.\",\r\n \"examples\": \"Open network settings.\"\r\n },\r\n {\r\n \"name\": \"PairDevice\",\r\n \"description\": \"Pair the device.\",\r\n \"examples\": \"Can you help me in pairing Bluetooth signal to phone;Turn the bluetooth on and pair it with laptop;Pair Bluetooth signal to my laptop\"\r\n },\r\n {\r\n \"name\": \"PowerOff\",\r\n \"description\": \"Turn off the device.\",\r\n \"examples\": \"Can you shut down my computer;Shutdown;Turn off my mobile\"\r\n },\r\n {\r\n \"name\": \"QueryBattery\",\r\n \"description\": \"Get information about battery life.\",\r\n \"examples\": \"Show me battery life.\"\r\n },\r\n {\r\n \"name\": \"QueryWifi\",\r\n \"description\": \"Get information about WiFi.\",\r\n \"examples\": \"What's my battery status;How much battery left now?;Show me battery\"\r\n },\r\n {\r\n \"name\": \"Restart\",\r\n \"description\": \"Restart the device.\",\r\n \"examples\": \"Please restart.\"\r\n },\r\n {\r\n \"name\": \"RingDevice\",\r\n \"description\": \"\\\"Ask the device to ring, in order to find it when it's lost.\\\"\",\r\n \"examples\": \"Ring my phone.\"\r\n },\r\n {\r\n \"name\": \"SetBrightness\",\r\n \"description\": \"Set the device brightness.\",\r\n \"examples\": \"Set brightness to medium;Set brightness to high;Set brightness to low\"\r\n },\r\n {\r\n \"name\": \"SetupDevice\",\r\n \"description\": \"Initiate device setup.\",\r\n \"examples\": \"I want to install OS setup;Setup please;Do setup for me\"\r\n },\r\n {\r\n \"name\": \"ShowAppBar\",\r\n \"description\": \"Show an app bar.\",\r\n \"examples\": \"Show me the application bar;Application bar please;Let me see the application bar\"\r\n },\r\n {\r\n \"name\": \"ShowContextMenu\",\r\n \"description\": \"Show a context menu.\",\r\n \"examples\": \"Let me see the context menu;Context menu please;Can you show me the context menu\"\r\n },\r\n {\r\n \"name\": \"Sleep\",\r\n \"description\": \"Put the device to sleep.\",\r\n \"examples\": \"Go to sleep;Sleep;My computer sleep\"\r\n },\r\n {\r\n \"name\": \"SwitchApplication\",\r\n \"description\": \"Switch the application to use on the device.\",\r\n \"examples\": \"Switch to my media player.\"\r\n },\r\n {\r\n \"name\": \"TurnDownBrightness\",\r\n \"description\": \"Turn down device brightness.\",\r\n \"examples\": \"Dim the screen.\"\r\n },\r\n {\r\n \"name\": \"TurnOffSetting\",\r\n \"description\": \"Turn off a device setting.\",\r\n \"examples\": \"Deactivate Bluetooth;Disable data;Disconnect bluetooth\"\r\n },\r\n {\r\n \"name\": \"TurnOnSetting\",\r\n \"description\": \"Turn on a device setting.\",\r\n \"examples\": \"On;Off\"\r\n },\r\n {\r\n \"name\": \"TurnUpBrightness\",\r\n \"description\": \"Turn up device brightness.\",\r\n \"examples\": \"Can you make the screen brighter?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"Name of an application on the device.\",\r\n \"examples\": \"SoundCloud; YouTube\"\r\n },\r\n {\r\n \"name\": \"BrightnessLevel\",\r\n \"description\": \"Set the brightness level on the device.\",\r\n \"examples\": \"One hundred percent;Fifty;40%\"\r\n },\r\n {\r\n \"name\": \"ContactName\",\r\n \"description\": \"The name of a contact on the device.\",\r\n \"examples\": \"Paul;Marlen Max\"\r\n },\r\n {\r\n \"name\": \"DeviceType\",\r\n \"description\": \"The type of device.\",\r\n \"examples\": \"Phone;kindle;Laptop\"\r\n },\r\n {\r\n \"name\": \"MediaType\",\r\n \"description\": \"The media type handled by the device.\",\r\n \"examples\": \"Music; Movie; TV shows\"\r\n },\r\n {\r\n \"name\": \"SettingType\",\r\n \"description\": \"A type of setting or settings panel that the user wants to edit.\",\r\n \"examples\": \"WiFi; Wireless Network; Color Scheme; Notification [Center]\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Places\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Places domain provides intents for handling queries related to places like businesses, institution, restaurants, public spaces and addresses.\",\r\n \"examples\": \"Save this location to my favorites; How far away is Holiday Inn?; At what time does Safeway close?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"AddFavoritePlace\",\r\n \"description\": \"Add a location to the the user's favorites list.\",\r\n \"examples\": \"Save this location to my favorites; Add this address to my favorites\"\r\n },\r\n {\r\n \"name\": \"CheckAccident\",\r\n \"description\": \"Ask whether there is an accident on a specified road.\",\r\n \"examples\": \"Is there an accident on 880?; Show me accident information\"\r\n },\r\n {\r\n \"name\": \"CheckAreaTraffic\",\r\n \"description\": \"\\\"Check the traffic for a general area or highway, not on a specified route.\\\"\",\r\n \"examples\": \"Traffic in Seattle; What's the traffic like in Seattle?\"\r\n },\r\n {\r\n \"name\": \"CheckIntoPlace\",\r\n \"description\": \"Check in to a place using social media.\",\r\n \"examples\": \"Check me in on Foursquare; Check in here\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action relating to a place.\",\r\n \"examples\": \"Confirm my restaurant reservation.\"\r\n },\r\n {\r\n \"name\": \"Exit\",\r\n \"description\": \"Action to exit a task relating to a place.\",\r\n \"examples\": \"Quit please;Quit giving me directions\"\r\n },\r\n {\r\n \"name\": \"FindPlace\",\r\n \"description\": \"\\\"Search for a place (business, institution, restaurant, public space, address).\\\"\",\r\n \"examples\": \"Where's the nearest library?; Find me a good Italian restaurant in Mountain View\"\r\n },\r\n {\r\n \"name\": \"GetAddress\",\r\n \"description\": \"Ask for the address of a place.\",\r\n \"examples\": \"Show me the address of Guu on Robson street; What is the address of the nearest Starbucks?\"\r\n },\r\n {\r\n \"name\": \"GetDistance\",\r\n \"description\": \"Ask about distance to a specific place.\",\r\n \"examples\": \"How far away is Holiday Inn?; how far is it to Bellevue square from here; what's the distance to Tahoe\"\r\n },\r\n {\r\n \"name\": \"GetHours\",\r\n \"description\": \"Ask about the operating hours for a place.\",\r\n \"examples\": \"At what time does Safeway close?; What are the hours for Home Depot?; Is Starbucks still open?\"\r\n },\r\n {\r\n \"name\": \"GetMenu\",\r\n \"description\": \"Ask for the menu items for a restaurant.\",\r\n \"examples\": \"Does Zucca serve anything vegan?; What's on the menu at Sizzler; Show me Applebee's menu\"\r\n },\r\n {\r\n \"name\": \"GetPhoneNumber\",\r\n \"description\": \"Ask for the phone number of a place.\",\r\n \"examples\": \"What is the phone number of the nearest Starbucks?; Give the number for Home Depot\"\r\n },\r\n {\r\n \"name\": \"GetReviews\",\r\n \"description\": \"Ask for reviews of a place.\",\r\n \"examples\": \"Show me reviews for Cheesecase Factory; Read Cineplex reviews in Yelp\"\r\n },\r\n {\r\n \"name\": \"GetRoute\",\r\n \"description\": \"Ask for directions to a place.\",\r\n \"examples\": \"How to walk to Bellevue square; Show me the shortest way to 8th and 59th from here; Get me directions to Mountain View CA\"\r\n },\r\n {\r\n \"name\": \"GetStarRating\",\r\n \"description\": \"Ask for the star rating of a place.\",\r\n \"examples\": \"How is Zucca rated according to Yelp?; How many stars does the French Laundry have?; Is the aquarium in Monterrey good?\"\r\n },\r\n {\r\n \"name\": \"GetTransportationSchedule\",\r\n \"description\": \"Get the bus schedule for a place.\",\r\n \"examples\": \"What time is the next bus to downtown?; Show me the buses in King County\"\r\n },\r\n {\r\n \"name\": \"GetTravelTime\",\r\n \"description\": \"Ask for the travel time to a specified destination.\",\r\n \"examples\": \"How long will it take to get to San Francisco from here; What's the driving time to Denver from SF\"\r\n },\r\n {\r\n \"name\": \"MakeCall\",\r\n \"description\": \"Make a phone call to a place.\",\r\n \"examples\": \"Call mom; I would like to place a Skype call to Anna; Call Jim\"\r\n },\r\n {\r\n \"name\": \"MakeReservation\",\r\n \"description\": \"Request a reservation for a restaurant or other business.\",\r\n \"examples\": \"Reserve at Zucca for two for tonight; Book a table for tomorrow; Table for 3 in Palo Alto at 8\"\r\n },\r\n {\r\n \"name\": \"MapQuestions\",\r\n \"description\": \"Request information about directions or whether a specified road goes to a destination.\",\r\n \"examples\": \"Does 13 pass through downtown?; Can I take 880 to Oakland?\"\r\n },\r\n {\r\n \"name\": \"Rating\",\r\n \"description\": \"Get the rating description of a restaurant or place.\",\r\n \"examples\": \"How many stars does the Contoso Inn have?\"\r\n },\r\n {\r\n \"name\": \"ReadAloud\",\r\n \"description\": \"Read a list of places out loud.\",\r\n \"examples\": \"Read me the first one; Read me the details\"\r\n },\r\n {\r\n \"name\": \"SelectItem\",\r\n \"description\": \"Choose an item from a list of choices relating to a place or places.\",\r\n \"examples\": \"Pick the second one; Select the first\"\r\n },\r\n {\r\n \"name\": \"ShowMap\",\r\n \"description\": \"Show a map of an area.\",\r\n \"examples\": \"Show a map for the second one ; Show map; Find San Francisco on the map\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"Show the next item in a series.\",\r\n \"examples\": \"Show the next one; go to the next page\"\r\n },\r\n {\r\n \"name\": \"ShowPrevious\",\r\n \"description\": \"Show the previous item in a series.\",\r\n \"examples\": \"show previous one; previous; go to previous\"\r\n },\r\n {\r\n \"name\": \"StartOver\",\r\n \"description\": \"Restart the app or start a new session.\",\r\n \"examples\": \"Start over; New session; restart\"\r\n },\r\n {\r\n \"name\": \"TakesReservations\",\r\n \"description\": \"Ask whether a place accepts reservations.\",\r\n \"examples\": \"Does the art gallery accept reservations; Is it possible to make a reservation at the Olive Garden\"\r\n },\r\n {\r\n \"name\": \"CheckRouteTraffic\",\r\n \"description\": \"Check the traffic of a specific route specified by the user.\",\r\n \"examples\": \"How is the traffic to Mashiko?; Show me the traffice to Kirkland; How is the traffic to Seattle?\"\r\n },\r\n {\r\n \"name\": \"GetPriceRange\",\r\n \"description\": \"User asks for the price range of a place.\",\r\n \"examples\": \"Is Zucca cheap?; Is the Cineplex half price on Wednesdays?; How much does a whole lobster dinner cost at Sizzler?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AbsoluteLocation\",\r\n \"description\": \"The location or address of a place.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationAddress\",\r\n \"description\": \"A destination location or address.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceName\",\r\n \"description\": \"\\\"The name of a destination that is a business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"central park; safeway; walmart\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceType\",\r\n \"description\": \"\\\"The type of a destination that is a business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Cafe; Theatre; Library\"\r\n },\r\n {\r\n \"name\": \"MealType\",\r\n \"description\": \"Type of meal like breakfast or lunch.\",\r\n \"examples\": \"breakfast; dinner; lunch; supper\"\r\n },\r\n {\r\n \"name\": \"OpenStatus\",\r\n \"description\": \"Indicates whether a place is open or closed.\",\r\n \"examples\": \"Open; closed; opening\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"The name of a place.\",\r\n \"examples\": \"Cheesecake Factory;\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of a place.\",\r\n \"examples\": \"Cafe; Theatre; Library\"\r\n },\r\n {\r\n \"name\": \"TransportationCompany\",\r\n \"description\": \"The name of a public transport provider.\",\r\n \"examples\": \"Amtrack; Acela; Greyhound\"\r\n },\r\n {\r\n \"name\": \"TransportationType\",\r\n \"description\": \"A type of transportation.\",\r\n \"examples\": \"Bus; Train; Driving\"\r\n },\r\n {\r\n \"name\": \"Amenities\",\r\n \"description\": \"The objective characteristics/benefits of a place.\",\r\n \"examples\": \"kids eat free; waterfront; free parking\"\r\n },\r\n {\r\n \"name\": \"Atmosphere\",\r\n \"description\": \"The atmosphere of a place.\",\r\n \"examples\": \"kid-friendly; casual restaurant; sporty\"\r\n },\r\n {\r\n \"name\": \"RouteAvoidanceCriteria\",\r\n \"description\": \"\\\"Criteria for avoiding specific routes like avoiding accidents, constructions or tolls.\\\"\",\r\n \"examples\": \"Tolls; Constructions; Route 11\"\r\n },\r\n {\r\n \"name\": \"Cuisine\",\r\n \"description\": \"The cuisine of a place.\",\r\n \"examples\": \"Mediterranean; Italian; Indian\"\r\n },\r\n {\r\n \"name\": \"Distance\",\r\n \"description\": \"The distance to a place.\",\r\n \"examples\": \"15 miles; 5 miles; 10 miles away\"\r\n },\r\n {\r\n \"name\": \"PreferredRoute\",\r\n \"description\": \"The preferred route specified by the user.\",\r\n \"examples\": \"101; 202; Route 401\"\r\n },\r\n {\r\n \"name\": \"Product\",\r\n \"description\": \"The product offered by a place.\",\r\n \"examples\": \"Clothes; Digital ASR Cameras; Fresh fish\"\r\n },\r\n {\r\n \"name\": \"PublicTransportationRoute\",\r\n \"description\": \"The name of the public transportation route that the user is searching for.\",\r\n \"examples\": \"Northeast corridor train; Bus route 3X\"\r\n },\r\n {\r\n \"name\": \"Rating\",\r\n \"description\": \"The rating of a place.\",\r\n \"examples\": \"5 stars; 3 stars; 4 stars\"\r\n },\r\n {\r\n \"name\": \"ServiceProvided\",\r\n \"description\": \"\\\"This is the service provided by a business or place such as haircut, snow plowing, landscaping.\\\"\",\r\n \"examples\": \"haircut; mechanic; plumber\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Reminder\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The reminder domain provides intents and entities for creating, editing, and finding reminders.\",\r\n \"examples\": \"Change my interview to 9 am tomorrow; Remind me to buy milk on my way back home; Can you check if I have a reminder about Christine's birthday?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Change\",\r\n \"description\": \"Change a reminder.\",\r\n \"examples\": \"Change my interview to 9 am tomorrow ; Move my assignment reminder to tomorrow\"\r\n },\r\n {\r\n \"name\": \"Create\",\r\n \"description\": \"Create a new reminder.\",\r\n \"examples\": \"Create a reminder; Remind me to buy milk; I want to remember to call Rebecca when I'm at home\"\r\n },\r\n {\r\n \"name\": \"Delete\",\r\n \"description\": \"Delete a reminder.\",\r\n \"examples\": \"Delete my picture reminder; Delete this reminder\"\r\n },\r\n {\r\n \"name\": \"Find\",\r\n \"description\": \"Find a reminder.\",\r\n \"examples\": \"Do I have a reminder about my anniversary?; Can you check if I have a reminder about Christine's birthday?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Text\",\r\n \"description\": \"The text description of a reminder.\",\r\n \"examples\": \"pick up dry cleaning; dropping my car off at the service center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"RestaurantReservation\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Reservation domain provides intents and entities related to managing restaurant reservations.\",\r\n \"examples\": \"Reserve at Zucca for two for tonight; Book a table at BJ's for tomorrow; Table for 3 in Palo Alto at 7\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Reserve\",\r\n \"description\": \"Request a reservation for a restaurant.\",\r\n \"examples\": \"Reserve at Zucca for two for tonight; Book a table for tomorrow; Table for 3 in Palo Alto at 7\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"An event location or address for a reservation.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"Amenities\",\r\n \"description\": \"An attribute describing the amenities of a place.\",\r\n \"examples\": \"ocean view; non smoking;\"\r\n },\r\n {\r\n \"name\": \"AppName\",\r\n \"description\": \"The name of an application for making reservations.\",\r\n \"examples\": \"OpenTable; Yelp; TripAdvisor\"\r\n },\r\n {\r\n \"name\": \"Atmosphere\",\r\n \"description\": \"A description of the atmosphere of a restaurant or other place.\",\r\n \"examples\": \"romantic; casual; good for groups\"\r\n },\r\n {\r\n \"name\": \"Cuisine\",\r\n \"description\": \"\\\"A type of food, cuisine or cuisine nationality.\\\"\",\r\n \"examples\": \"Chinese; Italian; Mexican\"\r\n },\r\n {\r\n \"name\": \"MealType\",\r\n \"description\": \"A meal type associated with a reservation.\",\r\n \"examples\": \"breakfast; dinner; lunch; supper\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"\\\"The name of a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"IHOP; Cheesecake Factory; Louvre\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"\\\"The type of a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"restaurant; opera; cinema\"\r\n },\r\n {\r\n \"name\": \"Rating\",\r\n \"description\": \"The rating of a place or restaurant.\",\r\n \"examples\": \"5 stars; 3 stars; 4 stars\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Taxi\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Taxi domain provides intents and entities for creating and managing taxi bookings.\",\r\n \"examples\": \"Get me a cab at 3 pm; How much longer do I have to wait for my taxi?; Cancel my Uber\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Book\",\r\n \"description\": \"Call a taxi.\",\r\n \"examples\": \"Get me a cab; Find a taxi; Book me an uber x\"\r\n },\r\n {\r\n \"name\": \"Cancel\",\r\n \"description\": \"Cancel an action relating to booking a taxi.\",\r\n \"examples\": \"Cancel my taxi; Cancel my Uber\"\r\n },\r\n {\r\n \"name\": \"Track\",\r\n \"description\": \"Track a taxi route.\",\r\n \"examples\": \"How much longer do I have to wait for my taxi?; Where is my Uber?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Address\",\r\n \"description\": \"The address associated with booking a taxi.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationAddress\",\r\n \"description\": \"A destination location or address.\",\r\n \"examples\": \"Palo Alto; 300 112th Ave SE; Seattle\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceName\",\r\n \"description\": \"\\\"The name of a destination that is a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Central Park; Safeway; Walmart\"\r\n },\r\n {\r\n \"name\": \"DestinationPlaceType\",\r\n \"description\": \"\\\"The type of a destination that is a local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Restaurant; Opera; Cinema\"\r\n },\r\n {\r\n \"name\": \"PlaceName\",\r\n \"description\": \"\\\"Name of local business, restaurant, public attraction, or institution. \\\"\",\r\n \"examples\": \"Central Park; Safeway; Walmart\"\r\n },\r\n {\r\n \"name\": \"PlaceType\",\r\n \"description\": \"The type of place in a request to book a taxi.\",\r\n \"examples\": \"Restaurant; Opera; Cinema\"\r\n },\r\n {\r\n \"name\": \"TransportationCompany\",\r\n \"description\": \"The name of a transport provider.\",\r\n \"examples\": \"Amtrack; Acela; Greyhound\"\r\n },\r\n {\r\n \"name\": \"TransportationType\",\r\n \"description\": \"The transportation type.\",\r\n \"examples\": \"Bus; Train; Driving\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Translate\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Translate domain provides intents and entities related to translating text to a target language.\",\r\n \"examples\": \"Translate to French; Translate hello to German; Translate this sentence to English\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Translate\",\r\n \"description\": \"Translate text to another language.\",\r\n \"examples\": \"Translate to French; Translate hello to German\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"TargetLanguage\",\r\n \"description\": \"The target language of a translation.\",\r\n \"examples\": \"French; German; Korean\"\r\n },\r\n {\r\n \"name\": \"Text\",\r\n \"description\": \"The text to translate.\",\r\n \"examples\": \"Hello World;Good morning;Good evening\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TV\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The TV domain provides intents and entities for controlling TVs.\",\r\n \"examples\": \"Switch channel to BBC; Show TV guide; Watch National Geographic\",\r\n \"intents\": [\r\n {\r\n \"name\": \"ChangeChannel\",\r\n \"description\": \"Change a channel on a TV.\",\r\n \"examples\": \"Change channel to CNN; Switch channel to BBC; Go to channel 4\"\r\n },\r\n {\r\n \"name\": \"ShowGuide\",\r\n \"description\": \"Show the TV guide.\",\r\n \"examples\": \"Show TV guide; what is on movie channel now?; show my program list\"\r\n },\r\n {\r\n \"name\": \"WatchTV\",\r\n \"description\": \"Ask to watch a TV channel.\",\r\n \"examples\": \"I want to watch the Disney channel; go to TV please; Watch National Geographic\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"ChannelName\",\r\n \"description\": \"The name of a TV channel.\",\r\n \"examples\": \"CNN; BBC; Movie channel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Utilities\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Utilities domain provides intents for tasks that are common to many tasks, such as greetings, cancellation, confirmation, help, repetition, navigation, starting and stopping.\",\r\n \"examples\": \"Go back to Twitter; Please help; Repeat last question please\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Cancel\",\r\n \"description\": \"Cancel an action.\",\r\n \"examples\": \"Cancel the message; I don't want to send the email anymore\"\r\n },\r\n {\r\n \"name\": \"Confirm\",\r\n \"description\": \"Confirm an action.\",\r\n \"examples\": \"Yeah ohh I confirm;Good I am confirming;Okay I am confirming\"\r\n },\r\n {\r\n \"name\": \"GoBack\",\r\n \"description\": \"Go back one step or return to a previous step.\",\r\n \"examples\": \"Go back to Twitter; Go back a step; Go back\"\r\n },\r\n {\r\n \"name\": \"Help\",\r\n \"description\": \"Request for help.\",\r\n \"examples\": \"Please help; open help; help\"\r\n },\r\n {\r\n \"name\": \"Repeat\",\r\n \"description\": \"Repeat an action.\",\r\n \"examples\": \"Repeat last question please; repeat last song\"\r\n },\r\n {\r\n \"name\": \"ShowNext\",\r\n \"description\": \"Show the next item in a series.\",\r\n \"examples\": \"Show the next one; go to the next page\"\r\n },\r\n {\r\n \"name\": \"ShowPrevious\",\r\n \"description\": \"Show the previous item in a series.\",\r\n \"examples\": \"show previous one\"\r\n },\r\n {\r\n \"name\": \"StartOver\",\r\n \"description\": \"Restart the app or start a new session.\",\r\n \"examples\": \"Start over; New session; restart\"\r\n },\r\n {\r\n \"name\": \"Stop\",\r\n \"description\": \"Stop an action.\",\r\n \"examples\": \"Stop saying this please;Shut up;Stop please\"\r\n },\r\n {\r\n \"name\": \"FinishTask\",\r\n \"description\": \"Finish a task the user started.\",\r\n \"examples\": \"I am done; I am finished; It is done\"\r\n }\r\n ],\r\n \"entities\": []\r\n },\r\n {\r\n \"name\": \"Weather\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Weather domain provides intents and entities for getting weather reports and forecasts\",\r\n \"examples\": \"weather in London in september; What's the 10 day forecast?; What's the average temperature in India in september?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"GetCondition\",\r\n \"description\": \"Get historic facts related to weather.\",\r\n \"examples\": \"weather in London in september; what's the average temperature in India in september\"\r\n },\r\n {\r\n \"name\": \"GetForecast\",\r\n \"description\": \"Get the current weather and forecast for the next few days.\",\r\n \"examples\": \"How is the weather today?; What's the 10 day forecast; How will the weather be this weekend\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Location\",\r\n \"description\": \"The absolute location for a weather request.\",\r\n \"examples\": \"Seattle; Paris; Palo Alto\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Web\",\r\n \"culture\": \"en-us\",\r\n \"description\": \"The Web domain provides intents and entities for navigating to a website.\",\r\n \"examples\": \"Navigate to facebook.com; Go to www.twitter.com; Navigate to www.bing.com\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Navigate\",\r\n \"description\": \"A request to navigate to a specified website.\",\r\n \"examples\": \"Navigate to facebook.com; Go to www.twitter.com\"\r\n }\r\n ],\r\n \"entities\": []\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "42207" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6ea2ec1f-f6aa-4aa0-9225-4f12d5451d30" + ], + "Request-Id": [ + "6ea2ec1f-f6aa-4aa0-9225-4f12d5451d30" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/customprebuiltdomains/zh-CN", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jdXN0b21wcmVidWlsdGRvbWFpbnMvemgtQ04=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"name\": \"日程\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"日程主题提供与日程规划相关的意图和实体,包括添加、删除和编辑日程待办事项,查询信息等意图。\",\r\n \"examples\": \"在周日下午2点与莉莉约会;阿明什么时候有空参加会议;取消我上午九点的会议\",\r\n \"intents\": [\r\n {\r\n \"name\": \"添加日程\",\r\n \"description\": \"增加一个新的日程事项\",\r\n \"examples\": \"周日下午两点与莉莉约会;我想安排一个会议;我需要指定一个会议日程\"\r\n },\r\n {\r\n \"name\": \"核查\",\r\n \"description\": \"核查用户日程,寻找适宜的会议时间\",\r\n \"examples\": \"阿明什么时候有空参加会议;查看罗琳明天什么时候有空;李斯周六有空吗?\"\r\n },\r\n {\r\n \"name\": \"删除\",\r\n \"description\": \"请求删除日程事项\",\r\n \"examples\": \"取消我和罗琳的约会;删除我九点的会议日程\"\r\n },\r\n {\r\n \"name\": \"编辑\",\r\n \"description\": \"请求修改日程信息\",\r\n \"examples\": \"将上午九点的会议改为十点;我想更新我的日程;重新安排我和卢斯的会议\"\r\n },\r\n {\r\n \"name\": \"查询\",\r\n \"description\": \"查询会议信息或日程安排\",\r\n \"examples\": \"告诉我周末的日程安排;查询我牙齿复查的日程安排.\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"地点\",\r\n \"description\": \"日程事项的位置信息,包含城市、区域等地址信息\",\r\n \"examples\": \"纳什维尔健身房209;897煎饼屋;车库\"\r\n },\r\n {\r\n \"name\": \"主题\",\r\n \"description\": \"会议的主题信息\",\r\n \"examples\": \"牙齿复查日程;和朱莉吃午餐\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"通讯\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"通讯主题提供与电话、电子邮件和发送信息相关的意图和实体\",\r\n \"examples\": \"转接到我的语音信箱;记录这个号码,将联系人保存为罗琳;请将我的电话转接到3333号码\",\r\n \"intents\": [\r\n {\r\n \"name\": \"添加联系人\",\r\n \"description\": \"将新联系人添加到用户的联系人列表中\",\r\n \"examples\": \"添加新联系人;保存此号码并将其命名为Carol\"\r\n },\r\n {\r\n \"name\": \"添加更多信息\",\r\n \"description\": \"添加更多的电子邮件或文本,作为逐步的电子邮件或文本构成的一部分\",\r\n \"examples\": \"添加更多文字;添加更多到电子邮件正文\"\r\n },\r\n {\r\n \"name\": \"回复\",\r\n \"description\": \"接听电话\",\r\n \"examples\": \"接电话;回复他\"\r\n },\r\n {\r\n \"name\": \"编辑联系人姓名\",\r\n \"description\": \"为联系人分配昵称\",\r\n \"examples\": \"将何伟设置为爸爸;添加昵称卡罗尔·汉娜;编辑吉姆的昵称\"\r\n },\r\n {\r\n \"name\": \"拨打语音信箱\",\r\n \"description\": \"连接到用户的语音信箱\",\r\n \"examples\": \"将我连接到我的语音信箱;致电语音信箱;语音信箱\"\r\n },\r\n {\r\n \"name\": \"检查状态\",\r\n \"description\": \"在Skype中检查联系人的状态\",\r\n \"examples\": \"吉姆的在线状态是否脱离了?;卡罗尔可以聊天吗?\"\r\n },\r\n {\r\n \"name\": \"确认\",\r\n \"description\": \"确认指令\",\r\n \"examples\": \"是;好的;好吧;我确认我要发送这封电子邮件。\"\r\n },\r\n {\r\n \"name\": \"寻找联系人\",\r\n \"description\": \"按名称查找联系人信息\",\r\n \"examples\": \"查找卡罗尔的号码;告诉我卡罗的号码\"\r\n },\r\n {\r\n \"name\": \"关闭呼叫转移\",\r\n \"description\": \"关闭呼叫转移\",\r\n \"examples\": \"停止转发我的电话;关闭呼叫转移\"\r\n },\r\n {\r\n \"name\": \"开启呼叫转移\",\r\n \"description\": \"打开呼叫转移\",\r\n \"examples\": \"转发我的电话3333;切换呼叫转移到3333\"\r\n },\r\n {\r\n \"name\": \"呼叫转接状态\",\r\n \"description\": \"呼叫转移的状态\",\r\n \"examples\": \"是我的呼叫转移了吗?;告诉我通话状态是开或关 \"\r\n },\r\n {\r\n \"name\": \"回退\",\r\n \"description\": \"返回前一步\",\r\n \"examples\": \"回到必应搜索;回头一步;回去\"\r\n },\r\n {\r\n \"name\": \"忽略\",\r\n \"description\": \"忽略来电\",\r\n \"examples\": \"不要接听;忽略呼叫\"\r\n },\r\n {\r\n \"name\": \"忽略并回复\",\r\n \"description\": \"忽略来电和文本代替回答\",\r\n \"examples\": \"不要回答电话而是发送消息;忽略发送回来 \"\r\n },\r\n {\r\n \"name\": \"打电话\",\r\n \"description\": \"打电话\",\r\n \"examples\": \"打电话给吉姆;请拨311。 \"\r\n },\r\n {\r\n \"name\": \"按键\",\r\n \"description\": \"按键盘上的按钮或数\",\r\n \"examples\": \"拨星号;按1 2 3 \"\r\n },\r\n {\r\n \"name\": \"朗读\",\r\n \"description\": \"阅读邮件或电子邮件给用户\",\r\n \"examples\": \"阅读文本;她说什么的消息\"\r\n },\r\n {\r\n \"name\": \"重拨\",\r\n \"description\": \"重拨或拨打一个号码\",\r\n \"examples\": \"重拨;重拨我的最后一次通话\"\r\n },\r\n {\r\n \"name\": \"发送电子邮件\",\r\n \"description\": \"发送电子邮件。本文适用于邮件而不是短信\",\r\n \"examples\": \"电子邮件给麦克麦克晚餐上周精彩;发送一封电子邮件给鲍勃\"\r\n },\r\n {\r\n \"name\": \"发送信息\",\r\n \"description\": \"发送短信或即时消息\",\r\n \"examples\": \"发送文本给克里斯和凯罗尔\"\r\n },\r\n {\r\n \"name\": \"设置快速拨号\",\r\n \"description\": \"联系人的电话号码设置快速拨号快捷方式\",\r\n \"examples\": \"设置快速拨号给卡罗尔;妈妈设置快速拨号\"\r\n },\r\n {\r\n \"name\": \"显示下一项\",\r\n \"description\": \"看下一个项目,例如,在一个列表中的短信或邮件\",\r\n \"examples\": \"显示下一个;进入下一页\"\r\n },\r\n {\r\n \"name\": \"显示上一项\",\r\n \"description\": \"看到以前的项目,例如,在一个列表中的短信或邮件\",\r\n \"examples\": \"显示前一个;以前的;去之前\"\r\n },\r\n {\r\n \"name\": \"关闭扬声器\",\r\n \"description\": \"关掉扬声器电话\",\r\n \"examples\": \"关闭免提;关掉扬声器\"\r\n },\r\n {\r\n \"name\": \"开启扬声器\",\r\n \"description\": \"打开扬声器电话\",\r\n \"examples\": \"免提模式;放扬声器\"\r\n },\r\n {\r\n \"name\": \"查询快速拨号\",\r\n \"description\": \"查询快速拨号\",\r\n \"examples\": \"我的电话号码是多少?;我有速拨盘吗?;941 - 5555 - 333的拨号数是多少?\"\r\n },\r\n {\r\n \"name\": \"拒接\",\r\n \"description\": \"拒绝一个来电\",\r\n \"examples\": \"拒绝呼叫;不能回答现在;不是此刻和以后会回电话\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"联系人姓名\",\r\n \"description\": \"一个联系人或邮件收件人。\",\r\n \"examples\": \"卡罗尔;吉姆;克里斯\"\r\n },\r\n {\r\n \"name\": \"邮件主题\",\r\n \"description\": \"文本作为一个电子邮件的主题行\",\r\n \"examples\": \"回复: 有趣的故事\"\r\n },\r\n {\r\n \"name\": \"信息内容\",\r\n \"description\": \"消息发送电子邮件或文本\",\r\n \"examples\": \"今天很高兴见到你。很快再见到你!\"\r\n },\r\n {\r\n \"name\": \"类别\",\r\n \"description\": \"消息或邮件类别\",\r\n \"examples\": \"重要;高优先级\"\r\n },\r\n {\r\n \"name\": \"信息种类\",\r\n \"description\": \"信息搜索的类型\",\r\n \"examples\": \"文本;电子邮件\"\r\n },\r\n {\r\n \"name\": \"参照位置\",\r\n \"description\": \"序号或相关列表中的位置,确定一个项目检索。例如,在我发的最后一条消息是什么最后或最近的?\",\r\n \"examples\": \"上一个;最近的\"\r\n },\r\n {\r\n \"name\": \"音频设备种类\",\r\n \"description\": \"音频设备(扬声器,耳机,麦克风等\",\r\n \"examples\": \"耳机;免提;蓝牙\"\r\n },\r\n {\r\n \"name\": \"联系人属性\",\r\n \"description\": \"用户查询的联系的属性\",\r\n \"examples\": \"生日;地址;电话号码\"\r\n },\r\n {\r\n \"name\": \"线路\",\r\n \"description\": \"用户想使用打电话或发短信/电子邮件从线路\",\r\n \"examples\": \"工作线;英国线;Skype \"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"智能家居\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"智能家居主题提供控制灯光、家电等智能家居装置相关的意图和实体\",\r\n \"examples\": \"关闭灯光;把咖啡机打开;关闭车库门\",\r\n \"intents\": [\r\n {\r\n \"name\": \"关闭\",\r\n \"description\": \"关闭、关闭或解锁设备\",\r\n \"examples\": \"关灯;停止咖啡壶;关闭车库门\"\r\n },\r\n {\r\n \"name\": \"打开\",\r\n \"description\": \"打开设备或将设备设置为特定的设置或模式\",\r\n \"examples\": \"打开我的咖啡壶;你能打开我的咖啡壶吗?将恒温器设置为72度\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"装置\",\r\n \"description\": \"可以打开或关闭的一种设备\",\r\n \"examples\": \"咖啡壶;恒温器;灯\"\r\n },\r\n {\r\n \"name\": \"地点\",\r\n \"description\": \"设备所在的位置或房间\",\r\n \"examples\": \"客厅;卧室;厨房\"\r\n },\r\n {\r\n \"name\": \"操作\",\r\n \"description\": \"设备的当前状态\",\r\n \"examples\": \"锁;开放;关\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"音乐\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"音乐主题提供与音乐播放相关的主题和实体\",\r\n \"examples\": \"播放周杰伦的歌;增加音量;下一首音乐\",\r\n \"intents\": [\r\n {\r\n \"name\": \"减少音量\",\r\n \"description\": \"减少音量\",\r\n \"examples\": \"减少轨道音量;音量 \"\r\n },\r\n {\r\n \"name\": \"增加音量\",\r\n \"description\": \"增加音量\",\r\n \"examples\": \"增加轨道音量;音量 \"\r\n },\r\n {\r\n \"name\": \"播放音乐\",\r\n \"description\": \"在设备上播放音乐\",\r\n \"examples\": \"播放凯文杜兰特;播放游玩曲;播放阿黛勒的hello \"\r\n },\r\n {\r\n \"name\": \"下一首\",\r\n \"description\": \"跳过一个磁道\",\r\n \"examples\": \"跳到下一首歌曲;播放下一首歌曲\"\r\n },\r\n {\r\n \"name\": \"上一首\",\r\n \"description\": \"跳过轨道 \",\r\n \"examples\": \"播放上一首歌曲;回到以前的轨道\"\r\n },\r\n {\r\n \"name\": \"停止\",\r\n \"description\": \"停止有关音乐的播放动作\",\r\n \"examples\": \"停止播放这张专辑\"\r\n },\r\n {\r\n \"name\": \"解除静音\",\r\n \"description\": \"解除音乐播放静音状态\",\r\n \"examples\": \"解除静音\"\r\n },\r\n {\r\n \"name\": \"静音\",\r\n \"description\": \"音乐静音\",\r\n \"examples\": \"静音音乐;暂时让设备静音;乐曲静音\"\r\n },\r\n {\r\n \"name\": \"暂停\",\r\n \"description\": \"暂停音乐播放\",\r\n \"examples\": \"暂停;暂停音乐播放;暂停音乐轨道\"\r\n },\r\n {\r\n \"name\": \"继续\",\r\n \"description\": \"继续播放音乐\",\r\n \"examples\": \"继续音乐;再一次播放音乐;去除暂停\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"艺术家名\",\r\n \"description\": \"演员、导演、作家、音乐家等艺术家的名称\",\r\n \"examples\": \"爱丽丝;泰勒斯威夫特;阿黛尔;莫扎特\"\r\n },\r\n {\r\n \"name\": \"风格\",\r\n \"description\": \"音乐风格类型\",\r\n \"examples\": \"乡村音乐;百老汇经典;播放巴洛克古典音乐\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"笔记\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"笔记主题提供记录、查询和修改笔记相关的意图和实体\",\r\n \"examples\": \"在我的杂货笔记中加入生菜、番茄、面包和咖啡;从我的杂货单清除香蕉;从我的假期清单中删除所有项目\",\r\n \"intents\": [\r\n {\r\n \"name\": \"加入记录\",\r\n \"description\": \"在笔记中加入信息\",\r\n \"examples\": \"在我的杂货笔记中加入生菜、番茄、面包和咖啡;加入到我的待办事项;在我的愿望单中加入蛋糕\"\r\n },\r\n {\r\n \"name\": \"创建\",\r\n \"description\": \"创建新的笔记\",\r\n \"examples\": \"创建一个新的列表;记录提醒我杰克会在五月第一周来到城镇\"\r\n },\r\n {\r\n \"name\": \"删除\",\r\n \"description\": \"删除笔记\",\r\n \"examples\": \"删除假日笔记;删除我的杂货笔记\"\r\n },\r\n {\r\n \"name\": \"删除项目\",\r\n \"description\": \"删除笔记中的项目\",\r\n \"examples\": \"删除杂货笔记中的奶酪项;Remove pens from my school shopping list\"\r\n },\r\n {\r\n \"name\": \"朗读\",\r\n \"description\": \"朗读列表\",\r\n \"examples\": \"朗读第一个;朗读细节\"\r\n },\r\n {\r\n \"name\": \"显示下一项\",\r\n \"description\": \"显示笔记列表的下一项\",\r\n \"examples\": \"显示下一个;下一页;之后的一项\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"笔记文本\",\r\n \"description\": \"笔记文本内容\",\r\n \"examples\": \"运动之前进行拉伸;明天长跑\"\r\n },\r\n {\r\n \"name\": \"题目\",\r\n \"description\": \"笔记题目\",\r\n \"examples\": \"杂物;联系人列表;待办事项\"\r\n },\r\n {\r\n \"name\": \"笔记数据源\",\r\n \"description\": \"笔记所在位置\",\r\n \"examples\": \"微软笔记;谷歌文档;我的电脑\"\r\n },\r\n {\r\n \"name\": \"数据类型\",\r\n \"description\": \"文档类型\",\r\n \"examples\": \"演示文稿;电子表格;工作表\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"设备控制\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"设备控制主题包含控制设备的意图和实体\",\r\n \"examples\": \"关闭视频播放器;取消播放;能让显示器屏幕亮一些吗?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"在听吗\",\r\n \"description\": \"询问装置是否在线\",\r\n \"examples\": \"在线吗?;你在听吗?\"\r\n },\r\n {\r\n \"name\": \"关闭应用\",\r\n \"description\": \"关闭应用\",\r\n \"examples\": \"关闭视频播放器\"\r\n },\r\n {\r\n \"name\": \"回退\",\r\n \"description\": \"回退一个步骤或到之前状态\",\r\n \"examples\": \"回到上一个步骤\"\r\n },\r\n {\r\n \"name\": \"帮助\",\r\n \"description\": \"请求帮助\",\r\n \"examples\": \"请求帮助;你可以帮我做什么?;我需要帮助\"\r\n },\r\n {\r\n \"name\": \"定位设备\",\r\n \"description\": \"定位设备\",\r\n \"examples\": \"帮我定位我的手机;寻找托尼的iphone;寻找我的电话\"\r\n },\r\n {\r\n \"name\": \"登录\",\r\n \"description\": \"登录装置服务\",\r\n \"examples\": \"请登录;登陆脸谱网;登陆微软\"\r\n },\r\n {\r\n \"name\": \"登出\",\r\n \"description\": \"等处装置服务\",\r\n \"examples\": \"从手机中登出;登出\"\r\n },\r\n {\r\n \"name\": \"打开应用\",\r\n \"description\": \"从设备中打开应用\",\r\n \"examples\": \"请打开闹钟;打开照相机;运行日历应用\"\r\n },\r\n {\r\n \"name\": \"打开设置\",\r\n \"description\": \"打开设备设置\",\r\n \"examples\": \"打开网络设置\"\r\n },\r\n {\r\n \"name\": \"关机\",\r\n \"description\": \"关闭设备\",\r\n \"examples\": \"请帮我关闭电脑;关机;关闭手机\"\r\n },\r\n {\r\n \"name\": \"查询电量\",\r\n \"description\": \"获得电池信息\",\r\n \"examples\": \"告诉我现在电量\"\r\n },\r\n {\r\n \"name\": \"重启\",\r\n \"description\": \"重新启动设备\",\r\n \"examples\": \"请重启电脑\"\r\n },\r\n {\r\n \"name\": \"设备响铃\",\r\n \"description\": \"让设备响铃\",\r\n \"examples\": \"让我的电话响铃\"\r\n },\r\n {\r\n \"name\": \"显示上下文菜单\",\r\n \"description\": \"显示上下文菜单\",\r\n \"examples\": \"请显示上下文菜单;请为我显示上下文菜单\"\r\n },\r\n {\r\n \"name\": \"休眠\",\r\n \"description\": \"设备休眠\",\r\n \"examples\": \"休眠;电脑休眠\"\r\n },\r\n {\r\n \"name\": \"切换应用\",\r\n \"description\": \"切换设备应用\",\r\n \"examples\": \"切换到音乐播放器\"\r\n },\r\n {\r\n \"name\": \"降低亮度\",\r\n \"description\": \"降低设备亮度\",\r\n \"examples\": \"屏幕变暗\"\r\n },\r\n {\r\n \"name\": \"关闭设备\",\r\n \"description\": \"关闭设备\",\r\n \"examples\": \"关闭蓝牙;断开显示器\"\r\n },\r\n {\r\n \"name\": \"开启设备\",\r\n \"description\": \"使设置中的项目开启\",\r\n \"examples\": \"打开蓝牙;打开WIFI网络\"\r\n },\r\n {\r\n \"name\": \"增加亮度\",\r\n \"description\": \"增加设备亮度\",\r\n \"examples\": \"可以让显示器变亮点吗?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"应用名\",\r\n \"description\": \"应用的名称\",\r\n \"examples\": \"微信;支付宝\"\r\n },\r\n {\r\n \"name\": \"设备种类\",\r\n \"description\": \"设备种类\",\r\n \"examples\": \"电话;平板电脑;个人电脑\"\r\n },\r\n {\r\n \"name\": \"设置类别\",\r\n \"description\": \"设置类别\",\r\n \"examples\": \"无线网络;颜色种类;通知中心\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"地点\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"地点主题提供处理与企业机构、餐馆等公共场所地址相关的查询的意图\",\r\n \"examples\": \"收藏这个位置;假日酒店还有多远?;百货大厦什么时候关门?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"添加到收藏\",\r\n \"description\": \"加入到用户的收藏夹中\",\r\n \"examples\": \"将这个地点加入的我的收藏夹中\"\r\n },\r\n {\r\n \"name\": \"检查事故\",\r\n \"description\": \"询问地点是否有事故\",\r\n \"examples\": \"880路上有事故吗?\"\r\n },\r\n {\r\n \"name\": \"查询区域交通\",\r\n \"description\": \"检查地点交通状况\",\r\n \"examples\": \"西雅图交通状况\"\r\n },\r\n {\r\n \"name\": \"记录地点\",\r\n \"description\": \"记录地点\",\r\n \"examples\": \"记录当前我的位置\"\r\n },\r\n {\r\n \"name\": \"确认\",\r\n \"description\": \"确认地点相关的动作\",\r\n \"examples\": \"确认我预定的餐厅\"\r\n },\r\n {\r\n \"name\": \"查询地点\",\r\n \"description\": \"查询某一地点\",\r\n \"examples\": \"附近最近的餐厅是哪一家\"\r\n },\r\n {\r\n \"name\": \"查询地址\",\r\n \"description\": \"查询地点地址\",\r\n \"examples\": \"告诉我最近的星巴克地址\"\r\n },\r\n {\r\n \"name\": \"查询距离\",\r\n \"description\": \"查询到某一地点的距离\",\r\n \"examples\": \"请问到北大图书馆有多远?\"\r\n },\r\n {\r\n \"name\": \"查询运营时间\",\r\n \"description\": \"查询地点的运营时间\",\r\n \"examples\": \"请问地铁的营运时间是多少?\"\r\n },\r\n {\r\n \"name\": \"查询菜单\",\r\n \"description\": \"查询餐厅的菜单\",\r\n \"examples\": \"请告诉我全聚德的菜单\"\r\n },\r\n {\r\n \"name\": \"查询电话号码\",\r\n \"description\": \"查询地点的电话号码\",\r\n \"examples\": \"最近的星巴克电话号码是多少?\"\r\n },\r\n {\r\n \"name\": \"查询评论\",\r\n \"description\": \"查询地点的评论\",\r\n \"examples\": \"查询这家餐厅的评论\"\r\n },\r\n {\r\n \"name\": \"导航\",\r\n \"description\": \"查询地点的方向\",\r\n \"examples\": \"如何步行到天安门广场?\"\r\n },\r\n {\r\n \"name\": \"查询评级\",\r\n \"description\": \"查询地点评价分数\",\r\n \"examples\": \"请问这家餐厅的评分是多少?\"\r\n },\r\n {\r\n \"name\": \"查询公交\",\r\n \"description\": \"查询公交时刻\",\r\n \"examples\": \"请问下次公交什么时候到达?\"\r\n },\r\n {\r\n \"name\": \"查询出行时间\",\r\n \"description\": \"询问到指定地点的出行时间\",\r\n \"examples\": \"请问还有多久到达中关村?\"\r\n },\r\n {\r\n \"name\": \"打电话\",\r\n \"description\": \"打电话\",\r\n \"examples\": \"请给安娜打一个电话\"\r\n },\r\n {\r\n \"name\": \"预定位置\",\r\n \"description\": \"预定位置\",\r\n \"examples\": \"预定这家餐厅明晚的桌位\"\r\n },\r\n {\r\n \"name\": \"查询评分\",\r\n \"description\": \"查询某一地点的评分\",\r\n \"examples\": \"请问这家餐厅的推荐评分是多少?\"\r\n },\r\n {\r\n \"name\": \"朗读\",\r\n \"description\": \"朗读地点列表\",\r\n \"examples\": \"请为我朗读餐厅信息\"\r\n },\r\n {\r\n \"name\": \"选择项目\",\r\n \"description\": \"选择地点相关选项\",\r\n \"examples\": \"选择第一项\"\r\n },\r\n {\r\n \"name\": \"显示地图\",\r\n \"description\": \"显示区域地图\",\r\n \"examples\": \"显示北京地图\"\r\n },\r\n {\r\n \"name\": \"显示下一项\",\r\n \"description\": \"显示下一个选项\",\r\n \"examples\": \"显示下一页\"\r\n },\r\n {\r\n \"name\": \"重新开始\",\r\n \"description\": \"重新启动应用\",\r\n \"examples\": \"重启\"\r\n },\r\n {\r\n \"name\": \"预定餐厅查询\",\r\n \"description\": \"询问餐厅预定情况\",\r\n \"examples\": \"这家餐厅是否能够预定?\"\r\n },\r\n {\r\n \"name\": \"查询导航路线\",\r\n \"description\": \"查询导航路线\",\r\n \"examples\": \"告诉我怎么样去北京;如何去西雅图?\"\r\n },\r\n {\r\n \"name\": \"获得价格范围\",\r\n \"description\": \"获得价格范围\",\r\n \"examples\": \"必胜客很便宜吗?;今天全聚德有折扣吗?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"具体地址\",\r\n \"description\": \"地址信息\",\r\n \"examples\": \"丹棱街5号\"\r\n },\r\n {\r\n \"name\": \"目的地地址\",\r\n \"description\": \"目的地地址\",\r\n \"examples\": \"善缘街\"\r\n },\r\n {\r\n \"name\": \"目的地名称\",\r\n \"description\": \"目的地名称\",\r\n \"examples\": \"中关村地铁站\"\r\n },\r\n {\r\n \"name\": \"目的地类别\",\r\n \"description\": \"目的地类别 \",\r\n \"examples\": \"咖啡厅;电影院\"\r\n },\r\n {\r\n \"name\": \"餐点类别\",\r\n \"description\": \"餐点类别,如早餐、晚餐\",\r\n \"examples\": \"早餐;晚餐\"\r\n },\r\n {\r\n \"name\": \"营业状态\",\r\n \"description\": \"地点的运营状态\",\r\n \"examples\": \"开门;关闭\"\r\n },\r\n {\r\n \"name\": \"地点名称\",\r\n \"description\": \"地点名称\",\r\n \"examples\": \"必胜客;\"\r\n },\r\n {\r\n \"name\": \"地点类别\",\r\n \"description\": \"地点类别\",\r\n \"examples\": \"咖啡厅;电影院\"\r\n },\r\n {\r\n \"name\": \"交通类别\",\r\n \"description\": \"交通类别\",\r\n \"examples\": \"公交;火车\"\r\n },\r\n {\r\n \"name\": \"地点设施\",\r\n \"description\": \"地点的设施\",\r\n \"examples\": \"儿童座椅;停车位\"\r\n },\r\n {\r\n \"name\": \"地点环境\",\r\n \"description\": \"地点的环境.\",\r\n \"examples\": \"运动型场地;\"\r\n },\r\n {\r\n \"name\": \"地点美食\",\r\n \"description\": \"地点的美食\",\r\n \"examples\": \"意大利菜;火锅\"\r\n },\r\n {\r\n \"name\": \"地点距离\",\r\n \"description\": \"地点的距离\",\r\n \"examples\": \"15公里;200米\"\r\n },\r\n {\r\n \"name\": \"推荐线路\",\r\n \"description\": \"推荐线路\",\r\n \"examples\": \"三环\"\r\n },\r\n {\r\n \"name\": \"地点产品\",\r\n \"description\": \"地点提供的产品信息\",\r\n \"examples\": \"新鲜鱼类\"\r\n },\r\n {\r\n \"name\": \"公共交通路线\",\r\n \"description\": \"公共交通线路\",\r\n \"examples\": \"公交300\"\r\n },\r\n {\r\n \"name\": \"地点评级\",\r\n \"description\": \"地点评级\",\r\n \"examples\": \"3颗星\"\r\n },\r\n {\r\n \"name\": \"服务提供\",\r\n \"description\": \"地点所提供的服务\",\r\n \"examples\": \"理发;美容\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"提醒\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"提醒主题提供创建、修改和查询提醒的意图和实体\",\r\n \"examples\": \"把面试时间改成明早九点;提醒我回家时购买牛奶;检查下我是否有关于李斯生日的提醒\",\r\n \"intents\": [\r\n {\r\n \"name\": \"更改提醒\",\r\n \"description\": \"更改提醒\",\r\n \"examples\": \"更改我的面试到明早九点;移动这个提示到已完成\"\r\n },\r\n {\r\n \"name\": \"创建提醒\",\r\n \"description\": \"创建提醒\",\r\n \"examples\": \"创建一个提醒;提醒我购买牛奶;提醒我回家的时候给艾莉打电话\"\r\n },\r\n {\r\n \"name\": \"删除提醒\",\r\n \"description\": \"删除提醒\",\r\n \"examples\": \"删除我的图片提醒;删除这个提醒\"\r\n },\r\n {\r\n \"name\": \"查询提醒\",\r\n \"description\": \"查询提醒\",\r\n \"examples\": \"我有关于周年庆的提醒吗?;能够帮我查询关于克里斯生日的提醒吗?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"提醒文本\",\r\n \"description\": \"提醒描述文本\",\r\n \"examples\": \"将干洗店的衣服拿回来\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"餐厅\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"餐厅主题提供管理餐厅预定的意图和实体\",\r\n \"examples\": \"今晚保留卓卡餐厅的两人位置;预定一个明天北京餐厅的位置;预定保罗餐厅晚上七点的三人桌位\",\r\n \"intents\": [\r\n {\r\n \"name\": \"预定位置\",\r\n \"description\": \"预定位置\",\r\n \"examples\": \"预定这个餐厅明晚的位置;预定明天11点20人的餐位\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"具体地址\",\r\n \"description\": \"餐厅地址\",\r\n \"examples\": \"丹棱街五号;北京西\"\r\n },\r\n {\r\n \"name\": \"地点设施\",\r\n \"description\": \"餐厅场所的设施\",\r\n \"examples\": \"海景;无烟区\"\r\n },\r\n {\r\n \"name\": \"地点环境\",\r\n \"description\": \"餐厅环境信息\",\r\n \"examples\": \"浪漫的;适合团队聚餐\"\r\n },\r\n {\r\n \"name\": \"地点美食\",\r\n \"description\": \"餐厅美食种类\",\r\n \"examples\": \"川菜;西餐;意大利餐\"\r\n },\r\n {\r\n \"name\": \"餐点类别\",\r\n \"description\": \"餐品类别如早餐\",\r\n \"examples\": \"早餐;晚餐;\"\r\n },\r\n {\r\n \"name\": \"地点名称\",\r\n \"description\": \"地点名称\",\r\n \"examples\": \"必胜客;东来顺\"\r\n },\r\n {\r\n \"name\": \"地点类别\",\r\n \"description\": \"地点类别\",\r\n \"examples\": \"餐厅;饭店;歌剧院\"\r\n },\r\n {\r\n \"name\": \"地点评级\",\r\n \"description\": \"餐厅的评级\",\r\n \"examples\": \"5颗星\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"出租车\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"出租车主题提供创建和管理预定出租车服务的意图和实体\",\r\n \"examples\": \"帮我预定下午三点的出租车;我还要等待出租车多久?;取消优步预定\",\r\n \"intents\": [\r\n {\r\n \"name\": \"预定\",\r\n \"description\": \"预定出租车\",\r\n \"examples\": \"寻找一辆出租车;\"\r\n },\r\n {\r\n \"name\": \"取消\",\r\n \"description\": \"取消预订的出租车\",\r\n \"examples\": \"取消我的出租车\"\r\n },\r\n {\r\n \"name\": \"查询\",\r\n \"description\": \"查询出租车路线\",\r\n \"examples\": \"出租车距离我还有多远;我的出租车在哪?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"具体地址\",\r\n \"description\": \"目标地址\",\r\n \"examples\": \"丹棱街5号\"\r\n },\r\n {\r\n \"name\": \"目的地名称\",\r\n \"description\": \"目的地名称\",\r\n \"examples\": \"微软大厦;家乐福超市\"\r\n },\r\n {\r\n \"name\": \"地点名称\",\r\n \"description\": \"地点名称\",\r\n \"examples\": \"中央公园\"\r\n },\r\n {\r\n \"name\": \"地点类别\",\r\n \"description\": \"地点类别\",\r\n \"examples\": \"餐厅;剧院\"\r\n },\r\n {\r\n \"name\": \"交通公司\",\r\n \"description\": \"交通公司\",\r\n \"examples\": \"北京地铁\"\r\n },\r\n {\r\n \"name\": \"交通类别\",\r\n \"description\": \"交通类别\",\r\n \"examples\": \"公交;火车\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"翻译\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"翻译主题提供翻译语言相关的意图和实体\",\r\n \"examples\": \"翻译成法语;把你好翻译成德语;翻译这句话为英语\",\r\n \"intents\": [\r\n {\r\n \"name\": \"翻译\",\r\n \"description\": \"翻译到另一种语言\",\r\n \"examples\": \"翻译成法语;翻译成德语\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"目标语言\",\r\n \"description\": \"目标语言\",\r\n \"examples\": \"法语;德语;韩语\"\r\n },\r\n {\r\n \"name\": \"文本\",\r\n \"description\": \"翻译文本\",\r\n \"examples\": \"你好;早上好\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"天气\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"天气主题提供获取天气报告和预测信息\",\r\n \"examples\": \"九月份伦敦的天气怎么样?;告诉我这十天的天气预测信息;印度九月份的平均温度是多少?\",\r\n \"intents\": [\r\n {\r\n \"name\": \"查询天气\",\r\n \"description\": \"查询历史天气\",\r\n \"examples\": \"九月份北京天气如何?\"\r\n },\r\n {\r\n \"name\": \"天气预测\",\r\n \"description\": \"获得未来天气预测\",\r\n \"examples\": \"周末的天气怎么样?;今天的天气如何?\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"地点\",\r\n \"description\": \"天气涉及的地点信息\",\r\n \"examples\": \"北京;上海\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"网页导航\",\r\n \"culture\": \"zh-cn\",\r\n \"description\": \"网页导航主题提供与网页导航相关的意图和实体\",\r\n \"examples\": \"导航到必应搜索;查看新浪微博;导航到www.bing.com\",\r\n \"intents\": [\r\n {\r\n \"name\": \"网页导航\",\r\n \"description\": \"导航到目标网站页面\",\r\n \"examples\": \"导航到必应搜索;导航到微博\"\r\n }\r\n ],\r\n \"entities\": []\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "22278" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a3b81af2-eba9-4560-867f-08288c526e4a" + ], + "Request-Id": [ + "a3b81af2-eba9-4560-867f-08288c526e4a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListCortanaEndpoints.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListCortanaEndpoints.json new file mode 100644 index 000000000000..acb8e496ebbf --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListCortanaEndpoints.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/assistants", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9hc3Npc3RhbnRz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"endpointKeys\": [\r\n \"08890aa0c33a46788d5e85de465aba35\"\r\n ],\r\n \"endpointUrls\": {\r\n \"English\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/c413b2ef-382c-45bd-8ff0-f76d60e2a821\",\r\n \"Chinese\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/c27c4af7-d44a-436f-a081-841bb834fa29\",\r\n \"French\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/0355ead1-2d08-4955-ab95-e263766e8392\",\r\n \"Spanish\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/cb2675e5-fbea-4f8b-8951-f071e9fc7b38\",\r\n \"Italian\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/30a0fddc-36f4-4488-b022-03de084c1633\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "604" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "19857938-8a82-47d1-83ec-e03a32a1f026" + ], + "Request-Id": [ + "19857938-8a82-47d1-83ec-e03a32a1f026" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListDomains.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListDomains.json new file mode 100644 index 000000000000..7b2eedd1aa94 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListDomains.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/domains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9kb21haW5z", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n \"Booking & Reference\",\r\n \"Business\",\r\n \"Comics\",\r\n \"Communication\",\r\n \"Education\",\r\n \"Entertainment\",\r\n \"Finance\",\r\n \"Food & Nutrition\",\r\n \"Gaming\",\r\n \"Health & Fitness\",\r\n \"Home Automation\",\r\n \"Media & Video\",\r\n \"Medical\",\r\n \"Music & Audio\",\r\n \"Navigation & Maps\",\r\n \"News & Magazines\",\r\n \"Personalization\",\r\n \"Productivity\",\r\n \"Real Estate\",\r\n \"Scheduler\",\r\n \"Shopping\",\r\n \"Social Network\",\r\n \"Sports\",\r\n \"Telecom\",\r\n \"Tools\",\r\n \"Transportation\",\r\n \"Translation\",\r\n \"Travel & Local\",\r\n \"Weather\",\r\n \"Others\"\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "424" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3fb4bc1d-c90b-4511-a23e-509f7ab783b6" + ], + "Request-Id": [ + "3fb4bc1d-c90b-4511-a23e-509f7ab783b6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListEndpoints.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListEndpoints.json new file mode 100644 index 000000000000..a87deacc2bb5 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListEndpoints.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"LUIS App for endpoint test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "151" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"f8f445c0-5a59-44dd-895b-399c227ae145\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145" + ], + "Apim-Request-Id": [ + "ccd7780b-f969-4287-b83f-60105d691817" + ], + "Request-Id": [ + "ccd7780b-f969-4287-b83f-60105d691817" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145/endpoints", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9mOGY0NDVjMC01YTU5LTQ0ZGQtODk1Yi0zOTljMjI3YWUxNDUvZW5kcG9pbnRz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"westus\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"eastus2\": \"https://eastus2.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"westcentralus\": \"https://westcentralus.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"southeastasia\": \"https://southeastasia.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"southcentralus\": \"https://southcentralus.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"westus2\": \"https://westus2.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"eastus\": \"https://eastus.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"eastasia\": \"https://eastasia.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\",\r\n \"brazilsouth\": \"https://brazilsouth.api.cognitive.microsoft.com/luis/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1017" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c27e4958-af63-4ad3-9752-9a0bd0867f2e" + ], + "Request-Id": [ + "c27e4958-af63-4ad3-9752-9a0bd0867f2e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/f8f445c0-5a59-44dd-895b-399c227ae145", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9mOGY0NDVjMC01YTU5LTQ0ZGQtODk1Yi0zOTljMjI3YWUxNDU=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a4851b9d-0961-4533-927a-76750f86d395" + ], + "Request-Id": [ + "a4851b9d-0961-4533-927a-76750f86d395" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListSupportedCultures.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListSupportedCultures.json new file mode 100644 index 000000000000..463cee1f0e13 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListSupportedCultures.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/cultures", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jdWx0dXJlcw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"name\": \"English\",\r\n \"code\": \"en-us\"\r\n },\r\n {\r\n \"name\": \"Chinese\",\r\n \"code\": \"zh-cn\"\r\n },\r\n {\r\n \"name\": \"French\",\r\n \"code\": \"fr-fr\"\r\n },\r\n {\r\n \"name\": \"French Canadian\",\r\n \"code\": \"fr-ca\"\r\n },\r\n {\r\n \"name\": \"Spanish\",\r\n \"code\": \"es-es\"\r\n },\r\n {\r\n \"name\": \"Spanish Mexican\",\r\n \"code\": \"es-mx\"\r\n },\r\n {\r\n \"name\": \"Italian\",\r\n \"code\": \"it-it\"\r\n },\r\n {\r\n \"name\": \"German\",\r\n \"code\": \"de-de\"\r\n },\r\n {\r\n \"name\": \"Japanese\",\r\n \"code\": \"ja-jp\"\r\n },\r\n {\r\n \"name\": \"Brazilian Portuguese\",\r\n \"code\": \"pt-br\"\r\n },\r\n {\r\n \"name\": \"Korean\",\r\n \"code\": \"ko-kr\"\r\n },\r\n {\r\n \"name\": \"Dutch\",\r\n \"code\": \"nl-nl\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "434" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:53:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f13664b5-502b-4bf7-88a3-3f029ab3ce79" + ], + "Request-Id": [ + "f13664b5-502b-4bf7-88a3-3f029ab3ce79" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListUsageScenarios.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListUsageScenarios.json new file mode 100644 index 000000000000..af40c52db124 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/ListUsageScenarios.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/usagescenarios", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy91c2FnZXNjZW5hcmlvcw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n \"IoT\",\r\n \"Bot\",\r\n \"Mobile Application\",\r\n \"Other\"\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "42" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0c98cf8b-bf62-487a-b9f3-6c8e20e62c8b" + ], + "Request-Id": [ + "0c98cf8b-bf62-487a-b9f3-6c8e20e62c8b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/PublishApplication.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/PublishApplication.json new file mode 100644 index 000000000000..c0490b2a9843 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/PublishApplication.json @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/publish", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvcHVibGlzaA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"versionId\": \"0.1\",\r\n \"isStaging\": false,\r\n \"region\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "72" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"versionId\": null,\r\n \"isStaging\": false,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"region\": null,\r\n \"assignedEndpointKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"endpointRegion\": \"westus\",\r\n \"publishedDateTime\": \"2017-12-12T21:59:40Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "287" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:59:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "86f38670-f2cd-4b45-979d-d9f058f4c4d5" + ], + "Request-Id": [ + "86f38670-f2cd-4b45-979d-d9f058f4c4d5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/UpdateApplication.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/UpdateApplication.json new file mode 100644 index 000000000000..f2bfde2ffd3a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/UpdateApplication.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"LUIS App to be renamed\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "147" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"df7a7cde-329b-43dc-bda3-48f277575756\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/df7a7cde-329b-43dc-bda3-48f277575756" + ], + "Apim-Request-Id": [ + "8387168a-e9c7-4855-b996-3c778f7ded38" + ], + "Request-Id": [ + "8387168a-e9c7-4855-b996-3c778f7ded38" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/df7a7cde-329b-43dc-bda3-48f277575756" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/df7a7cde-329b-43dc-bda3-48f277575756", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9kZjdhN2NkZS0zMjliLTQzZGMtYmRhMy00OGYyNzc1NzU3NTY=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"LUIS App name updated\",\r\n \"description\": \"LUIS App description updated\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "89" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ca75ed1d-4649-44f1-b0cb-b18a177f2d93" + ], + "Request-Id": [ + "ca75ed1d-4649-44f1-b0cb-b18a177f2d93" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/df7a7cde-329b-43dc-bda3-48f277575756", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9kZjdhN2NkZS0zMjliLTQzZGMtYmRhMy00OGYyNzc1NzU3NTY=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"df7a7cde-329b-43dc-bda3-48f277575756\",\r\n \"name\": \"LUIS App name updated\",\r\n \"description\": \"LUIS App description updated\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"IoT\",\r\n \"domain\": \"Comics\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-12T21:54:25Z\",\r\n \"endpoints\": {},\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "297" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "973bf818-f094-4317-a759-2db7815e02e1" + ], + "Request-Id": [ + "973bf818-f094-4317-a759-2db7815e02e1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/df7a7cde-329b-43dc-bda3-48f277575756", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9kZjdhN2NkZS0zMjliLTQzZGMtYmRhMy00OGYyNzc1NzU3NTY=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3347f6da-b9df-4ae1-be5e-e7345b5b0dd4" + ], + "Request-Id": [ + "3347f6da-b9df-4ae1-be5e-e7345b5b0dd4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/UpdateSettings.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/UpdateSettings.json new file mode 100644 index 000000000000..8991c9c009c4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.AppsTests/UpdateSettings.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"LUIS App for Settings test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "151" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"c6bfb3bc-74be-4d3e-bb88-6c844a8756d5\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/c6bfb3bc-74be-4d3e-bb88-6c844a8756d5" + ], + "Apim-Request-Id": [ + "290df625-d3e6-4c44-b93f-fb44f085aa03" + ], + "Request-Id": [ + "290df625-d3e6-4c44-b93f-fb44f085aa03" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/c6bfb3bc-74be-4d3e-bb88-6c844a8756d5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/c6bfb3bc-74be-4d3e-bb88-6c844a8756d5/settings", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jNmJmYjNiYy03NGJlLTRkM2UtYmI4OC02Yzg0NGE4NzU2ZDUvc2V0dGluZ3M=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"public\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "22" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6a387d2c-12d1-4b22-a66d-70dac3b64ba1" + ], + "Request-Id": [ + "6a387d2c-12d1-4b22-a66d-70dac3b64ba1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/c6bfb3bc-74be-4d3e-bb88-6c844a8756d5/settings", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jNmJmYjNiYy03NGJlLTRkM2UtYmI4OC02Yzg0NGE4NzU2ZDUvc2V0dGluZ3M=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"c6bfb3bc-74be-4d3e-bb88-6c844a8756d5\",\r\n \"public\": true\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "59" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "347a6243-50e4-4074-a435-d30fdb18b3ad" + ], + "Request-Id": [ + "347a6243-50e4-4074-a435-d30fdb18b3ad" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/c6bfb3bc-74be-4d3e-bb88-6c844a8756d5", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9jNmJmYjNiYy03NGJlLTRkM2UtYmI4OC02Yzg0NGE4NzU2ZDU=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 12 Dec 2017 21:54:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "cf8e7486-3b47-4f4e-8305-a5ce80602e17" + ], + "Request-Id": [ + "cf8e7486-3b47-4f4e-8305-a5ce80602e17" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExample.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExample.json new file mode 100644 index 000000000000..881fc2fba7a8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExample.json @@ -0,0 +1,323 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Examples Test App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"8cd05bac-9729-4725-95fe-7e32f7961a76\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76" + ], + "Apim-Request-Id": [ + "0f61acfc-74f0-4be5-acef-f71ea72c291a" + ], + "Request-Id": [ + "0f61acfc-74f0-4be5-acef-f71ea72c291a" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84Y2QwNWJhYy05NzI5LTQ3MjUtOTVmZS03ZTMyZjc5NjFhNzYvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"WeatherInPlace\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"e93e8496-fb2b-4781-a280-4db66da2a9ce\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/intents/e93e8496-fb2b-4781-a280-4db66da2a9ce" + ], + "Apim-Request-Id": [ + "b9145e04-9663-4b5d-b239-7e488c571014" + ], + "Request-Id": [ + "b9145e04-9663-4b5d-b239-7e488c571014" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/intents/e93e8496-fb2b-4781-a280-4db66da2a9ce" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84Y2QwNWJhYy05NzI5LTQ3MjUtOTVmZS03ZTMyZjc5NjFhNzYvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Place\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "23" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"71fe937a-d879-4f99-9ba7-d8181f9a71a3\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/entities/71fe937a-d879-4f99-9ba7-d8181f9a71a3" + ], + "Apim-Request-Id": [ + "9e4bfa99-8503-4416-bf4a-3f50c5815a6e" + ], + "Request-Id": [ + "9e4bfa99-8503-4416-bf4a-3f50c5815a6e" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/entities/71fe937a-d879-4f99-9ba7-d8181f9a71a3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76/versions/0.1/example", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84Y2QwNWJhYy05NzI5LTQ3MjUtOTVmZS03ZTMyZjc5NjFhNzYvdmVyc2lvbnMvMC4xL2V4YW1wbGU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"text\": \"whats the weather in buenos aires?\",\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Place\",\r\n \"startCharIndex\": 21,\r\n \"endCharIndex\": 34\r\n }\r\n ],\r\n \"intentName\": \"WeatherInPlace\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "213" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"UtteranceText\": \"whats the weather in buenos aires?\",\r\n \"ExampleId\": -5313943\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a225e4e3-d729-4e43-ba24-4aec867f1b7e" + ], + "Request-Id": [ + "a225e4e3-d729-4e43-ba24-4aec867f1b7e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/8cd05bac-9729-4725-95fe-7e32f7961a76", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84Y2QwNWJhYy05NzI5LTQ3MjUtOTVmZS03ZTMyZjc5NjFhNzY=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "28ba35a1-101c-4d2b-8ade-6b82d33d01c4" + ], + "Request-Id": [ + "28ba35a1-101c-4d2b-8ade-6b82d33d01c4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExamplesInBatch.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExamplesInBatch.json new file mode 100644 index 000000000000..822055eb0653 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExamplesInBatch.json @@ -0,0 +1,323 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Examples Test App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"b980a9d1-e535-4a4f-ba36-e0dc8b6275e7\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7" + ], + "Apim-Request-Id": [ + "58c5b221-722f-4d15-9355-042c42037401" + ], + "Request-Id": [ + "58c5b221-722f-4d15-9355-042c42037401" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9iOTgwYTlkMS1lNTM1LTRhNGYtYmEzNi1lMGRjOGI2Mjc1ZTcvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"WeatherInPlace\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"c23f0def-5c1b-46ea-a175-35ad559157b3\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/intents/c23f0def-5c1b-46ea-a175-35ad559157b3" + ], + "Apim-Request-Id": [ + "fe183fe0-448c-4861-8d74-4deb0dd7a3f0" + ], + "Request-Id": [ + "fe183fe0-448c-4861-8d74-4deb0dd7a3f0" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/intents/c23f0def-5c1b-46ea-a175-35ad559157b3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9iOTgwYTlkMS1lNTM1LTRhNGYtYmEzNi1lMGRjOGI2Mjc1ZTcvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Place\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "23" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"d4a7d38f-2a5e-40b6-8230-b97251c4b0bb\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/entities/d4a7d38f-2a5e-40b6-8230-b97251c4b0bb" + ], + "Apim-Request-Id": [ + "d8771b98-050d-48bf-9e1b-6f5c39ce01d1" + ], + "Request-Id": [ + "d8771b98-050d-48bf-9e1b-6f5c39ce01d1" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/entities/d4a7d38f-2a5e-40b6-8230-b97251c4b0bb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7/versions/0.1/examples", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9iOTgwYTlkMS1lNTM1LTRhNGYtYmEzNi1lMGRjOGI2Mjc1ZTcvdmVyc2lvbnMvMC4xL2V4YW1wbGVz", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"text\": \"whats the weather in seattle?\",\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Place\",\r\n \"startCharIndex\": 21,\r\n \"endCharIndex\": 29\r\n }\r\n ],\r\n \"intentName\": \"WeatherInPlace\"\r\n },\r\n {\r\n \"text\": \"whats the weather in buenos aires?\",\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Place\",\r\n \"startCharIndex\": 21,\r\n \"endCharIndex\": 34\r\n }\r\n ],\r\n \"intentName\": \"WeatherInPlace\"\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "474" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"value\": {\r\n \"UtteranceText\": \"whats the weather in seattle?\",\r\n \"ExampleId\": -728104\r\n },\r\n \"hasError\": false\r\n },\r\n {\r\n \"value\": {\r\n \"UtteranceText\": \"whats the weather in buenos aires?\",\r\n \"ExampleId\": -5313943\r\n },\r\n \"hasError\": false\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "201" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b4c84063-16d8-4502-a2ef-b041060e98f5" + ], + "Request-Id": [ + "b4c84063-16d8-4502-a2ef-b041060e98f5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/b980a9d1-e535-4a4f-ba36-e0dc8b6275e7", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9iOTgwYTlkMS1lNTM1LTRhNGYtYmEzNi1lMGRjOGI2Mjc1ZTc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c50dc70e-166d-4276-9a92-b621c249877b" + ], + "Request-Id": [ + "c50dc70e-166d-4276-9a92-b621c249877b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExamplesInBatch_SomeInvalidExamples_ReturnsSomeErrors.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExamplesInBatch_SomeInvalidExamples_ReturnsSomeErrors.json new file mode 100644 index 000000000000..4a72f196351e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/AddExamplesInBatch_SomeInvalidExamples_ReturnsSomeErrors.json @@ -0,0 +1,323 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Examples Test App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"4a6bca31-8787-472e-b3e3-45d4d2ed4d3b\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 16:51:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b" + ], + "Apim-Request-Id": [ + "37116426-fc55-4e33-9414-dbae782d5a1a" + ], + "Request-Id": [ + "37116426-fc55-4e33-9414-dbae782d5a1a" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80YTZiY2EzMS04Nzg3LTQ3MmUtYjNlMy00NWQ0ZDJlZDRkM2IvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"WeatherInPlace\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"fd1996f8-6c7c-49e1-a5bd-89dd74f11fbf\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 16:51:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/intents/fd1996f8-6c7c-49e1-a5bd-89dd74f11fbf" + ], + "Apim-Request-Id": [ + "3a4402b2-872a-496c-a4d7-2d039f4c878b" + ], + "Request-Id": [ + "3a4402b2-872a-496c-a4d7-2d039f4c878b" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/intents/fd1996f8-6c7c-49e1-a5bd-89dd74f11fbf" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80YTZiY2EzMS04Nzg3LTQ3MmUtYjNlMy00NWQ0ZDJlZDRkM2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Place\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "23" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"f53c7768-39c4-4b31-aad4-343bebb9f1c7\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 16:51:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/entities/f53c7768-39c4-4b31-aad4-343bebb9f1c7" + ], + "Apim-Request-Id": [ + "51842f6f-38ce-4bd6-bdaa-74168164a3db" + ], + "Request-Id": [ + "51842f6f-38ce-4bd6-bdaa-74168164a3db" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/entities/f53c7768-39c4-4b31-aad4-343bebb9f1c7" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b/versions/0.1/examples", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80YTZiY2EzMS04Nzg3LTQ3MmUtYjNlMy00NWQ0ZDJlZDRkM2IvdmVyc2lvbnMvMC4xL2V4YW1wbGVz", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"text\": \"whats the weather in seattle?\",\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Place\",\r\n \"startCharIndex\": 21,\r\n \"endCharIndex\": 29\r\n }\r\n ],\r\n \"intentName\": \"InvalidIntent\"\r\n },\r\n {\r\n \"text\": \"whats the weather in buenos aires?\",\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Place\",\r\n \"startCharIndex\": 21,\r\n \"endCharIndex\": 34\r\n }\r\n ],\r\n \"intentName\": \"IntentDoesNotExist\"\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "477" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"value\": null,\r\n \"hasError\": true,\r\n \"error\": {\r\n \"code\": \"FAILED\",\r\n \"message\": \"whats the weather in seattle?. Error: The intent classifier InvalidIntent does not exist in the selected application\"\r\n }\r\n },\r\n {\r\n \"value\": null,\r\n \"hasError\": true,\r\n \"error\": {\r\n \"code\": \"FAILED\",\r\n \"message\": \"whats the weather in buenos aires?. Error: The intent classifier IntentDoesNotExist does not exist in the selected application\"\r\n }\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "383" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 16:51:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "79532a22-2fa6-40be-adda-311492e9376c" + ], + "Request-Id": [ + "79532a22-2fa6-40be-adda-311492e9376c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 207 + }, + { + "RequestUri": "/luis/api/v2.0/apps/4a6bca31-8787-472e-b3e3-45d4d2ed4d3b", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy80YTZiY2EzMS04Nzg3LTQ3MmUtYjNlMy00NWQ0ZDJlZDRkM2I=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 16:51:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7a2087ee-5123-4d94-8624-64e76e124021" + ], + "Request-Id": [ + "7a2087ee-5123-4d94-8624-64e76e124021" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/DeleteExample.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/DeleteExample.json new file mode 100644 index 000000000000..7403c128c812 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/DeleteExample.json @@ -0,0 +1,116 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/examples/-5313926", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2V4YW1wbGVzLy01MzEzOTI2", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "93f81d2f-ff41-4c8e-9ac7-e30a265b65f0" + ], + "Request-Id": [ + "93f81d2f-ff41-4c8e-9ac7-e30a265b65f0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/examples?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2V4YW1wbGVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": -8384471,\r\n \"text\": \"add to tuesday ' s calender visting milos bar tequila\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"to\",\r\n \"tuesday\",\r\n \"'\",\r\n \"s\",\r\n \"calender\",\r\n \"visting\",\r\n \"milos\",\r\n \"bar\",\r\n \"tequila\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 9\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"tuesday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"milos bar tequila\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8384470,\r\n \"text\": \"dsw shoes 7804 on monday 3 : 00 pm\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"dsw\",\r\n \"shoes\",\r\n \"7804\",\r\n \"on\",\r\n \"monday\",\r\n \"3\",\r\n \":\",\r\n \"00\",\r\n \"pm\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"dsw shoes 7804\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"monday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"3 : 00 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8384469,\r\n \"text\": \"897 pancake house on tuesday 1 : 00 pm please\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"897\",\r\n \"pancake\",\r\n \"house\",\r\n \"on\",\r\n \"tuesday\",\r\n \"1\",\r\n \":\",\r\n \"00\",\r\n \"pm\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"897 pancake house\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"00 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8352978,\r\n \"text\": \"change the meeting with chris to 9 : 00 am\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"meeting\",\r\n \"with\",\r\n \"chris\",\r\n \"to\",\r\n \"9\",\r\n \":\",\r\n \"00\",\r\n \"am\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.95\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"the meeting with chris\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"9 : 00 am\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8343634,\r\n \"text\": \"delete helen fred ' s birthday\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"delete\",\r\n \"helen\",\r\n \"fred\",\r\n \"'\",\r\n \"s\",\r\n \"birthday\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"helen fred ' s birthday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8334846,\r\n \"text\": \"set an event on edwardsville pa gym today\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"set\",\r\n \"an\",\r\n \"event\",\r\n \"on\",\r\n \"edwardsville\",\r\n \"pa\",\r\n \"gym\",\r\n \"today\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"edwardsville pa gym\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8334845,\r\n \"text\": \"add an event to read about adam lambert news\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"an\",\r\n \"event\",\r\n \"to\",\r\n \"read\",\r\n \"about\",\r\n \"adam\",\r\n \"lambert\",\r\n \"news\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 8\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"read about adam lambert news\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8328480,\r\n \"text\": \"am i free to be with friends saturday ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"am\",\r\n \"i\",\r\n \"free\",\r\n \"to\",\r\n \"be\",\r\n \"with\",\r\n \"friends\",\r\n \"saturday\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"be with friends\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"saturday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8325863,\r\n \"text\": \"make dinner plans at restaurant at 8pm .\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"make\",\r\n \"dinner\",\r\n \"plans\",\r\n \"at\",\r\n \"restaurant\",\r\n \"at\",\r\n \"8pm\",\r\n \".\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"restaurant\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8322659,\r\n \"text\": \"change today ' s course time to 11 pm\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"today\",\r\n \"'\",\r\n \"s\",\r\n \"course\",\r\n \"time\",\r\n \"to\",\r\n \"11\",\r\n \"pm\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.9\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"11 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286623,\r\n \"text\": \"meet kiel at hallmark cards 405 saturday 2 : 00 pm\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"meet\",\r\n \"kiel\",\r\n \"at\",\r\n \"hallmark\",\r\n \"cards\",\r\n \"405\",\r\n \"saturday\",\r\n \"2\",\r\n \":\",\r\n \"00\",\r\n \"pm\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"hallmark cards 405\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"405 saturday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"2 : 00 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286606,\r\n \"text\": \"check lee ' s calender\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"check\",\r\n \"lee\",\r\n \"'\",\r\n \"s\",\r\n \"calender\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.89\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.17\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8286605,\r\n \"text\": \"is keil available tomorrow ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"is\",\r\n \"keil\",\r\n \"available\",\r\n \"tomorrow\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286604,\r\n \"text\": \"show me samuel ' s availability for tuesday morning\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"samuel\",\r\n \"'\",\r\n \"s\",\r\n \"availability\",\r\n \"for\",\r\n \"tuesday\",\r\n \"morning\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"tuesday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"morning\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286603,\r\n \"text\": \"when is paul available ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"when\",\r\n \"is\",\r\n \"paul\",\r\n \"available\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8286602,\r\n \"text\": \"how soon will jack be free ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"soon\",\r\n \"will\",\r\n \"jack\",\r\n \"be\",\r\n \"free\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8283125,\r\n \"text\": \"call dad mike\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"call\",\r\n \"dad\",\r\n \"mike\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.85\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"call dad mike\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283124,\r\n \"text\": \"the workshop will last for 10 hours\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"the\",\r\n \"workshop\",\r\n \"will\",\r\n \"last\",\r\n \"for\",\r\n \"10\",\r\n \"hours\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.77\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"the workshop\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"10 hours\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283123,\r\n \"text\": \"email cloney john\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"email\",\r\n \"cloney\",\r\n \"john\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"email cloney john\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283102,\r\n \"text\": \"edit the meeting to be 7 : 30 not 8 : 30\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"edit\",\r\n \"the\",\r\n \"meeting\",\r\n \"to\",\r\n \"be\",\r\n \"7\",\r\n \":\",\r\n \"30\",\r\n \"not\",\r\n \"8\",\r\n \":\",\r\n \"30\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"7 : 30\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"30\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283101,\r\n \"text\": \"i want to reschedule tomorrow ' s meeting\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"i\",\r\n \"want\",\r\n \"to\",\r\n \"reschedule\",\r\n \"tomorrow\",\r\n \"'\",\r\n \"s\",\r\n \"meeting\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283100,\r\n \"text\": \"reschedule the remaing time to self study\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"reschedule\",\r\n \"the\",\r\n \"remaing\",\r\n \"time\",\r\n \"to\",\r\n \"self\",\r\n \"study\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.92\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8283098,\r\n \"text\": \"can you delete my events this saturday ?\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"can\",\r\n \"you\",\r\n \"delete\",\r\n \"my\",\r\n \"events\",\r\n \"this\",\r\n \"saturday\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"this saturday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283097,\r\n \"text\": \"cancel tomorrow ' s appointment\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"cancel\",\r\n \"tomorrow\",\r\n \"'\",\r\n \"s\",\r\n \"appointment\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283054,\r\n \"text\": \"add a new event on 27 - apr\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"a\",\r\n \"new\",\r\n \"event\",\r\n \"on\",\r\n \"27\",\r\n \"-\",\r\n \"apr\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"27 - apr\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8276925,\r\n \"text\": \"do i have anything on wednesday ?\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"do\",\r\n \"i\",\r\n \"have\",\r\n \"anything\",\r\n \"on\",\r\n \"wednesday\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.62\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"wednesday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8276924,\r\n \"text\": \"how many days are there between march 13th 2015 and today ?\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"many\",\r\n \"days\",\r\n \"are\",\r\n \"there\",\r\n \"between\",\r\n \"march\",\r\n \"13th\",\r\n \"2015\",\r\n \"and\",\r\n \"today\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.47\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"march 13th 2015\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8224329,\r\n \"text\": \"show me tomorrow ' s wedding party time\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"tomorrow\",\r\n \"'\",\r\n \"s\",\r\n \"wedding\",\r\n \"party\",\r\n \"time\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.57\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8224314,\r\n \"text\": \"calendar i ' ll be at the garage from 8 till 3 this saturday\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"calendar\",\r\n \"i\",\r\n \"'\",\r\n \"ll\",\r\n \"be\",\r\n \"at\",\r\n \"the\",\r\n \"garage\",\r\n \"from\",\r\n \"8\",\r\n \"till\",\r\n \"3\",\r\n \"this\",\r\n \"saturday\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"garage\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"8\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"3\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"3\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 13,\r\n \"phrase\": \"saturday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8140273,\r\n \"text\": \"help me in rescheduling my calender\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"help\",\r\n \"me\",\r\n \"in\",\r\n \"rescheduling\",\r\n \"my\",\r\n \"calender\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.72\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140272,\r\n \"text\": \"marketing meetings on tuesdays will now be every wednesday please change on my calendar\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"marketing\",\r\n \"meetings\",\r\n \"on\",\r\n \"tuesdays\",\r\n \"will\",\r\n \"now\",\r\n \"be\",\r\n \"every\",\r\n \"wednesday\",\r\n \"please\",\r\n \"change\",\r\n \"on\",\r\n \"my\",\r\n \"calendar\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.93\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.1\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"marketing meetings\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tuesdays\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"every wednesday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8140271,\r\n \"text\": \"extend lunch meeting 30 minutes extra\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"extend\",\r\n \"lunch\",\r\n \"meeting\",\r\n \"30\",\r\n \"minutes\",\r\n \"extra\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.93\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"lunch meeting\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"30 minutes extra\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8140270,\r\n \"text\": \"meeting adjustment\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"meeting\",\r\n \"adjustment\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.9\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140269,\r\n \"text\": \"appointment extension request\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"appointment\",\r\n \"extension\",\r\n \"request\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.91\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140267,\r\n \"text\": \"view tom chros availability\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"view\",\r\n \"tom\",\r\n \"chros\",\r\n \"availability\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140262,\r\n \"text\": \"meeting my manager\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"meeting\",\r\n \"my\",\r\n \"manager\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"meeting my manager\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8101545,\r\n \"text\": \"appointment with johnson needs to be next week\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"appointment\",\r\n \"with\",\r\n \"johnson\",\r\n \"needs\",\r\n \"to\",\r\n \"be\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.76\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"appointment with johnson\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"next week\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085866,\r\n \"text\": \"free time this afternoon please\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"free\",\r\n \"time\",\r\n \"this\",\r\n \"afternoon\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.91\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"this afternoon\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085864,\r\n \"text\": \"check friday at 9 am\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"check\",\r\n \"friday\",\r\n \"at\",\r\n \"9\",\r\n \"am\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.89\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"9 am\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085862,\r\n \"text\": \"check if i have time for a meeting tonight\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"check\",\r\n \"if\",\r\n \"i\",\r\n \"have\",\r\n \"time\",\r\n \"for\",\r\n \"a\",\r\n \"meeting\",\r\n \"tonight\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.23\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"tonight\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085014,\r\n \"text\": \"pull up my appointment find out how much time i have before my next appointment\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"pull\",\r\n \"up\",\r\n \"my\",\r\n \"appointment\",\r\n \"find\",\r\n \"out\",\r\n \"how\",\r\n \"much\",\r\n \"time\",\r\n \"i\",\r\n \"have\",\r\n \"before\",\r\n \"my\",\r\n \"next\",\r\n \"appointment\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.46\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084928,\r\n \"text\": \"calendar cancel friday with eddy\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"calendar\",\r\n \"cancel\",\r\n \"friday\",\r\n \"with\",\r\n \"eddy\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084926,\r\n \"text\": \"cancel an event on the calendar\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"cancel\",\r\n \"an\",\r\n \"event\",\r\n \"on\",\r\n \"the\",\r\n \"calendar\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084924,\r\n \"text\": \"remove a calendar entry\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"remove\",\r\n \"a\",\r\n \"calendar\",\r\n \"entry\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084923,\r\n \"text\": \"please just delete my meeting\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"please\",\r\n \"just\",\r\n \"delete\",\r\n \"my\",\r\n \"meeting\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"my meeting\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084911,\r\n \"text\": \"calendar for november 1948\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"calendar\",\r\n \"for\",\r\n \"november\",\r\n \"1948\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.59\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"november 1948\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084910,\r\n \"text\": \"display weekend plans\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"display\",\r\n \"weekend\",\r\n \"plans\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.58\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"weekend\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084908,\r\n \"text\": \"search for meetings with chris\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"meetings\",\r\n \"with\",\r\n \"chris\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.55\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"meetings with chris\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084907,\r\n \"text\": \"tell me the event details\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"tell\",\r\n \"me\",\r\n \"the\",\r\n \"event\",\r\n \"details\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.57\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084886,\r\n \"text\": \"the meeting will last for one hour\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"the\",\r\n \"meeting\",\r\n \"will\",\r\n \"last\",\r\n \"for\",\r\n \"one\",\r\n \"hour\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"one hour\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084885,\r\n \"text\": \"add imax theater to my upcoming events\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"imax\",\r\n \"theater\",\r\n \"to\",\r\n \"my\",\r\n \"upcoming\",\r\n \"events\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"imax theater\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8017886,\r\n \"text\": \"add an event to visit 209 nashville gym\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"an\",\r\n \"event\",\r\n \"to\",\r\n \"visit\",\r\n \"209\",\r\n \"nashville\",\r\n \"gym\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"209 nashville gym\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011414,\r\n \"text\": \"dunmore pa sonic sounds friday morning please\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"dunmore\",\r\n \"pa\",\r\n \"sonic\",\r\n \"sounds\",\r\n \"friday\",\r\n \"morning\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"dunmore pa sonic sounds\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"morning\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011408,\r\n \"text\": \"visit 209 nashville gym tomorrow morning\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"visit\",\r\n \"209\",\r\n \"nashville\",\r\n \"gym\",\r\n \"tomorrow\",\r\n \"morning\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"nashville gym\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"morning\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011407,\r\n \"text\": \"add to my calender daddy daughter dance at meadowbrook\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"to\",\r\n \"my\",\r\n \"calender\",\r\n \"daddy\",\r\n \"daughter\",\r\n \"dance\",\r\n \"at\",\r\n \"meadowbrook\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"meadowbrook\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011405,\r\n \"text\": \"i want to reschedule the meeting at the air force club\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"i\",\r\n \"want\",\r\n \"to\",\r\n \"reschedule\",\r\n \"the\",\r\n \"meeting\",\r\n \"at\",\r\n \"the\",\r\n \"air\",\r\n \"force\",\r\n \"club\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 10\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"meeting at the air force club\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011404,\r\n \"text\": \"add a new task finish assignment\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"a\",\r\n \"new\",\r\n \"task\",\r\n \"finish\",\r\n \"assignment\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"finish assignment\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8006196,\r\n \"text\": \"move the bbq party to friday\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"move\",\r\n \"the\",\r\n \"bbq\",\r\n \"party\",\r\n \"to\",\r\n \"friday\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.77\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"bbq party\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7977821,\r\n \"text\": \"voice activated reading of appointments this week\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"voice\",\r\n \"activated\",\r\n \"reading\",\r\n \"of\",\r\n \"appointments\",\r\n \"this\",\r\n \"week\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"this week\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7977802,\r\n \"text\": \"stop any new appointments\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"stop\",\r\n \"any\",\r\n \"new\",\r\n \"appointments\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.95\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -7977780,\r\n \"text\": \"schedule appointment for tomorrow please\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"schedule\",\r\n \"appointment\",\r\n \"for\",\r\n \"tomorrow\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"appointment\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7977779,\r\n \"text\": \"save the date may 17 pictures party\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"save\",\r\n \"the\",\r\n \"date\",\r\n \"may\",\r\n \"17\",\r\n \"pictures\",\r\n \"party\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"may 17\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"pictures party\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7030506,\r\n \"text\": \"find a deluxe room in a 3 stars hotel in barcelona\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7030502,\r\n \"text\": \"find me a deluxe room in a 3 stars hotel in barcelona please\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029692,\r\n \"text\": \"i wanna change the location to san francisco\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"i\",\r\n \"wanna\",\r\n \"change\",\r\n \"the\",\r\n \"location\",\r\n \"to\",\r\n \"san\",\r\n \"francisco\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"san francisco\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"san francisco\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029680,\r\n \"text\": \"change the hotel location to miami\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"miami\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.29\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029678,\r\n \"text\": \"change location to buenos aires\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.1\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029677,\r\n \"text\": \"change the location to london\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"location\",\r\n \"to\",\r\n \"london\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.42\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.11\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"london\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"london\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313947,\r\n \"text\": \"find hotel from today till tomorrow\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"from\",\r\n \"today\",\r\n \"till\",\r\n \"tomorrow\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313945,\r\n \"text\": \"find aiport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"aiport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313943,\r\n \"text\": \"whats the weather in buenos aires?\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313942,\r\n \"text\": \"fint airport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"fint\",\r\n \"airport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313940,\r\n \"text\": \"find airport pmw\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"pmw\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"pmw\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313930,\r\n \"text\": \"find airport oww\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"oww\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"oww\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313924,\r\n \"text\": \"what is the airport with dme code?\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"is\",\r\n \"the\",\r\n \"airport\",\r\n \"with\",\r\n \"dme\",\r\n \"code\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313921,\r\n \"text\": \"find airport with code pmv\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"pmv\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"pmv\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313919,\r\n \"text\": \"locate airport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"locate\",\r\n \"airport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313918,\r\n \"text\": \"what is the time in miami/\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"is\",\r\n \"the\",\r\n \"time\",\r\n \"in\",\r\n \"miami\",\r\n \"/\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313917,\r\n \"text\": \"airport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"airport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313916,\r\n \"text\": \"location of sfo airport?\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"sfo\",\r\n \"airport\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"sfo\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313914,\r\n \"text\": \"this is a test1\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"this\",\r\n \"is\",\r\n \"a\",\r\n \"test1\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.84\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -5313907,\r\n \"text\": \"find airport kss\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"kss\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"kss\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313905,\r\n \"text\": \"location of seatac airport\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"seatac\",\r\n \"airport\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -5313903,\r\n \"text\": \"fso\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"fso\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"fso\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313900,\r\n \"text\": \"location of sea airport\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"sea\",\r\n \"airport\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"sea\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313897,\r\n \"text\": \"find hotels in madrid from 02/12 to 02/15\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotels\",\r\n \"in\",\r\n \"madrid\",\r\n \"from\",\r\n \"02\",\r\n \"/\",\r\n \"12\",\r\n \"to\",\r\n \"02\",\r\n \"/\",\r\n \"15\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"02 / 12\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"02/12\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02 / 15\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02/15\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313895,\r\n \"text\": \"alooo?\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"alooo\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.91\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.85\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -5313894,\r\n \"text\": \"find airport dmv\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"dmv\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"dmv\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313892,\r\n \"text\": \"whats is the weather in buenos aires?\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"is\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313789,\r\n \"text\": \"time in caracas\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"caracas\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"caracas\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313788,\r\n \"text\": \"what time is it in buenos aires?\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"time\",\r\n \"is\",\r\n \"it\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313786,\r\n \"text\": \"whats the weather in madrid?\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"madrid\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313785,\r\n \"text\": \"location of fso airport?\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"fso\",\r\n \"airport\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"fso\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313783,\r\n \"text\": \"time in barcelona\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313782,\r\n \"text\": \"find 3 stars standard rooms in buenos aires from 02/24 to 02/26\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"3\",\r\n \"stars\",\r\n \"standard\",\r\n \"rooms\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"from\",\r\n \"02\",\r\n \"/\",\r\n \"24\",\r\n \"to\",\r\n \"02\",\r\n \"/\",\r\n \"26\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"standard\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02 / 24\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02/24\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"02 / 26\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"02/26\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313780,\r\n \"text\": \"weather in aisjj3o9f2\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"weather\",\r\n \"in\",\r\n \"aisjj3o9f2\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"aisjj3o9f2\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301785,\r\n \"text\": \"find hotel in miami for today\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"miami\",\r\n \"for\",\r\n \"today\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301783,\r\n \"text\": \"find hotels in vienna from 03/11 to 03/16\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotels\",\r\n \"in\",\r\n \"vienna\",\r\n \"from\",\r\n \"03\",\r\n \"/\",\r\n \"11\",\r\n \"to\",\r\n \"03\",\r\n \"/\",\r\n \"16\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"vienna\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"03 / 11\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"03/11\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"03 / 16\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"03/16\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301763,\r\n \"text\": \"location of eze airport\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"eze\",\r\n \"airport\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301762,\r\n \"text\": \"search for 5 stars hotels with deluxe rooms in barcelona from tomorrow till monday next week\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"stars\",\r\n \"hotels\",\r\n \"with\",\r\n \"deluxe\",\r\n \"rooms\",\r\n \"in\",\r\n \"barcelona\",\r\n \"from\",\r\n \"tomorrow\",\r\n \"till\",\r\n \"monday\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 9\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "85975" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6010eddc-6849-494e-9741-823195731525" + ], + "Request-Id": [ + "6010eddc-6849-494e-9741-823195731525" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/ListExamples.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/ListExamples.json new file mode 100644 index 000000000000..06bc6c92fd75 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/ListExamples.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/examples?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2V4YW1wbGVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": -8384471,\r\n \"text\": \"add to tuesday ' s calender visting milos bar tequila\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"to\",\r\n \"tuesday\",\r\n \"'\",\r\n \"s\",\r\n \"calender\",\r\n \"visting\",\r\n \"milos\",\r\n \"bar\",\r\n \"tequila\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 9\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"tuesday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"milos bar tequila\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8384470,\r\n \"text\": \"dsw shoes 7804 on monday 3 : 00 pm\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"dsw\",\r\n \"shoes\",\r\n \"7804\",\r\n \"on\",\r\n \"monday\",\r\n \"3\",\r\n \":\",\r\n \"00\",\r\n \"pm\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"dsw shoes 7804\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"monday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"3 : 00 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8384469,\r\n \"text\": \"897 pancake house on tuesday 1 : 00 pm please\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"897\",\r\n \"pancake\",\r\n \"house\",\r\n \"on\",\r\n \"tuesday\",\r\n \"1\",\r\n \":\",\r\n \"00\",\r\n \"pm\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"897 pancake house\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"00 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8352978,\r\n \"text\": \"change the meeting with chris to 9 : 00 am\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"meeting\",\r\n \"with\",\r\n \"chris\",\r\n \"to\",\r\n \"9\",\r\n \":\",\r\n \"00\",\r\n \"am\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.95\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"the meeting with chris\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"9 : 00 am\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8343634,\r\n \"text\": \"delete helen fred ' s birthday\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"delete\",\r\n \"helen\",\r\n \"fred\",\r\n \"'\",\r\n \"s\",\r\n \"birthday\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"helen fred ' s birthday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8334846,\r\n \"text\": \"set an event on edwardsville pa gym today\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"set\",\r\n \"an\",\r\n \"event\",\r\n \"on\",\r\n \"edwardsville\",\r\n \"pa\",\r\n \"gym\",\r\n \"today\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"edwardsville pa gym\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8334845,\r\n \"text\": \"add an event to read about adam lambert news\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"an\",\r\n \"event\",\r\n \"to\",\r\n \"read\",\r\n \"about\",\r\n \"adam\",\r\n \"lambert\",\r\n \"news\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 8\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"read about adam lambert news\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8328480,\r\n \"text\": \"am i free to be with friends saturday ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"am\",\r\n \"i\",\r\n \"free\",\r\n \"to\",\r\n \"be\",\r\n \"with\",\r\n \"friends\",\r\n \"saturday\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"be with friends\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"saturday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8325863,\r\n \"text\": \"make dinner plans at restaurant at 8pm .\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"make\",\r\n \"dinner\",\r\n \"plans\",\r\n \"at\",\r\n \"restaurant\",\r\n \"at\",\r\n \"8pm\",\r\n \".\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"restaurant\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8322659,\r\n \"text\": \"change today ' s course time to 11 pm\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"today\",\r\n \"'\",\r\n \"s\",\r\n \"course\",\r\n \"time\",\r\n \"to\",\r\n \"11\",\r\n \"pm\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.9\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"11 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286623,\r\n \"text\": \"meet kiel at hallmark cards 405 saturday 2 : 00 pm\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"meet\",\r\n \"kiel\",\r\n \"at\",\r\n \"hallmark\",\r\n \"cards\",\r\n \"405\",\r\n \"saturday\",\r\n \"2\",\r\n \":\",\r\n \"00\",\r\n \"pm\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"hallmark cards 405\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"405 saturday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"2 : 00 pm\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286606,\r\n \"text\": \"check lee ' s calender\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"check\",\r\n \"lee\",\r\n \"'\",\r\n \"s\",\r\n \"calender\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.89\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.17\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8286605,\r\n \"text\": \"is keil available tomorrow ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"is\",\r\n \"keil\",\r\n \"available\",\r\n \"tomorrow\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286604,\r\n \"text\": \"show me samuel ' s availability for tuesday morning\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"samuel\",\r\n \"'\",\r\n \"s\",\r\n \"availability\",\r\n \"for\",\r\n \"tuesday\",\r\n \"morning\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"tuesday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"morning\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8286603,\r\n \"text\": \"when is paul available ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"when\",\r\n \"is\",\r\n \"paul\",\r\n \"available\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8286602,\r\n \"text\": \"how soon will jack be free ?\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"soon\",\r\n \"will\",\r\n \"jack\",\r\n \"be\",\r\n \"free\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8283125,\r\n \"text\": \"call dad mike\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"call\",\r\n \"dad\",\r\n \"mike\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.85\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"call dad mike\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283124,\r\n \"text\": \"the workshop will last for 10 hours\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"the\",\r\n \"workshop\",\r\n \"will\",\r\n \"last\",\r\n \"for\",\r\n \"10\",\r\n \"hours\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.77\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"the workshop\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"10 hours\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283123,\r\n \"text\": \"email cloney john\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"email\",\r\n \"cloney\",\r\n \"john\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"email cloney john\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283102,\r\n \"text\": \"edit the meeting to be 7 : 30 not 8 : 30\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"edit\",\r\n \"the\",\r\n \"meeting\",\r\n \"to\",\r\n \"be\",\r\n \"7\",\r\n \":\",\r\n \"30\",\r\n \"not\",\r\n \"8\",\r\n \":\",\r\n \"30\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"7 : 30\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"30\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283101,\r\n \"text\": \"i want to reschedule tomorrow ' s meeting\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"i\",\r\n \"want\",\r\n \"to\",\r\n \"reschedule\",\r\n \"tomorrow\",\r\n \"'\",\r\n \"s\",\r\n \"meeting\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283100,\r\n \"text\": \"reschedule the remaing time to self study\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"reschedule\",\r\n \"the\",\r\n \"remaing\",\r\n \"time\",\r\n \"to\",\r\n \"self\",\r\n \"study\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.92\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8283098,\r\n \"text\": \"can you delete my events this saturday ?\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"can\",\r\n \"you\",\r\n \"delete\",\r\n \"my\",\r\n \"events\",\r\n \"this\",\r\n \"saturday\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"this saturday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283097,\r\n \"text\": \"cancel tomorrow ' s appointment\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"cancel\",\r\n \"tomorrow\",\r\n \"'\",\r\n \"s\",\r\n \"appointment\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8283054,\r\n \"text\": \"add a new event on 27 - apr\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"a\",\r\n \"new\",\r\n \"event\",\r\n \"on\",\r\n \"27\",\r\n \"-\",\r\n \"apr\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"27 - apr\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8276925,\r\n \"text\": \"do i have anything on wednesday ?\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"do\",\r\n \"i\",\r\n \"have\",\r\n \"anything\",\r\n \"on\",\r\n \"wednesday\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.62\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"wednesday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8276924,\r\n \"text\": \"how many days are there between march 13th 2015 and today ?\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"many\",\r\n \"days\",\r\n \"are\",\r\n \"there\",\r\n \"between\",\r\n \"march\",\r\n \"13th\",\r\n \"2015\",\r\n \"and\",\r\n \"today\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.47\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"march 13th 2015\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8224329,\r\n \"text\": \"show me tomorrow ' s wedding party time\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"tomorrow\",\r\n \"'\",\r\n \"s\",\r\n \"wedding\",\r\n \"party\",\r\n \"time\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.57\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8224314,\r\n \"text\": \"calendar i ' ll be at the garage from 8 till 3 this saturday\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"calendar\",\r\n \"i\",\r\n \"'\",\r\n \"ll\",\r\n \"be\",\r\n \"at\",\r\n \"the\",\r\n \"garage\",\r\n \"from\",\r\n \"8\",\r\n \"till\",\r\n \"3\",\r\n \"this\",\r\n \"saturday\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"garage\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"8\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"3\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"3\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 13,\r\n \"phrase\": \"saturday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8140273,\r\n \"text\": \"help me in rescheduling my calender\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"help\",\r\n \"me\",\r\n \"in\",\r\n \"rescheduling\",\r\n \"my\",\r\n \"calender\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.72\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140272,\r\n \"text\": \"marketing meetings on tuesdays will now be every wednesday please change on my calendar\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"marketing\",\r\n \"meetings\",\r\n \"on\",\r\n \"tuesdays\",\r\n \"will\",\r\n \"now\",\r\n \"be\",\r\n \"every\",\r\n \"wednesday\",\r\n \"please\",\r\n \"change\",\r\n \"on\",\r\n \"my\",\r\n \"calendar\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.93\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.1\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"marketing meetings\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tuesdays\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"every wednesday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8140271,\r\n \"text\": \"extend lunch meeting 30 minutes extra\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"extend\",\r\n \"lunch\",\r\n \"meeting\",\r\n \"30\",\r\n \"minutes\",\r\n \"extra\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.93\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"lunch meeting\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"30 minutes extra\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8140270,\r\n \"text\": \"meeting adjustment\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"meeting\",\r\n \"adjustment\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.9\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140269,\r\n \"text\": \"appointment extension request\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"appointment\",\r\n \"extension\",\r\n \"request\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.91\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140267,\r\n \"text\": \"view tom chros availability\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"view\",\r\n \"tom\",\r\n \"chros\",\r\n \"availability\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8140262,\r\n \"text\": \"meeting my manager\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"meeting\",\r\n \"my\",\r\n \"manager\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"meeting my manager\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8101545,\r\n \"text\": \"appointment with johnson needs to be next week\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"appointment\",\r\n \"with\",\r\n \"johnson\",\r\n \"needs\",\r\n \"to\",\r\n \"be\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.76\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"appointment with johnson\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"next week\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085866,\r\n \"text\": \"free time this afternoon please\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"free\",\r\n \"time\",\r\n \"this\",\r\n \"afternoon\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.91\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"this afternoon\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085864,\r\n \"text\": \"check friday at 9 am\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"check\",\r\n \"friday\",\r\n \"at\",\r\n \"9\",\r\n \"am\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.89\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"9 am\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085862,\r\n \"text\": \"check if i have time for a meeting tonight\",\r\n \"intentLabel\": \"Calendar.CheckAvailability\",\r\n \"tokenizedText\": [\r\n \"check\",\r\n \"if\",\r\n \"i\",\r\n \"have\",\r\n \"time\",\r\n \"for\",\r\n \"a\",\r\n \"meeting\",\r\n \"tonight\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.23\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"tonight\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8085014,\r\n \"text\": \"pull up my appointment find out how much time i have before my next appointment\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"pull\",\r\n \"up\",\r\n \"my\",\r\n \"appointment\",\r\n \"find\",\r\n \"out\",\r\n \"how\",\r\n \"much\",\r\n \"time\",\r\n \"i\",\r\n \"have\",\r\n \"before\",\r\n \"my\",\r\n \"next\",\r\n \"appointment\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.46\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084928,\r\n \"text\": \"calendar cancel friday with eddy\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"calendar\",\r\n \"cancel\",\r\n \"friday\",\r\n \"with\",\r\n \"eddy\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084926,\r\n \"text\": \"cancel an event on the calendar\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"cancel\",\r\n \"an\",\r\n \"event\",\r\n \"on\",\r\n \"the\",\r\n \"calendar\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084924,\r\n \"text\": \"remove a calendar entry\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"remove\",\r\n \"a\",\r\n \"calendar\",\r\n \"entry\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084923,\r\n \"text\": \"please just delete my meeting\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"please\",\r\n \"just\",\r\n \"delete\",\r\n \"my\",\r\n \"meeting\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"my meeting\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084911,\r\n \"text\": \"calendar for november 1948\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"calendar\",\r\n \"for\",\r\n \"november\",\r\n \"1948\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.59\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"november 1948\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084910,\r\n \"text\": \"display weekend plans\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"display\",\r\n \"weekend\",\r\n \"plans\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.58\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"weekend\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084908,\r\n \"text\": \"search for meetings with chris\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"meetings\",\r\n \"with\",\r\n \"chris\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.55\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"meetings with chris\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084907,\r\n \"text\": \"tell me the event details\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"tell\",\r\n \"me\",\r\n \"the\",\r\n \"event\",\r\n \"details\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.57\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -8084886,\r\n \"text\": \"the meeting will last for one hour\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"the\",\r\n \"meeting\",\r\n \"will\",\r\n \"last\",\r\n \"for\",\r\n \"one\",\r\n \"hour\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"one hour\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8084885,\r\n \"text\": \"add imax theater to my upcoming events\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"imax\",\r\n \"theater\",\r\n \"to\",\r\n \"my\",\r\n \"upcoming\",\r\n \"events\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"imax theater\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8017886,\r\n \"text\": \"add an event to visit 209 nashville gym\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"an\",\r\n \"event\",\r\n \"to\",\r\n \"visit\",\r\n \"209\",\r\n \"nashville\",\r\n \"gym\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"209 nashville gym\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011414,\r\n \"text\": \"dunmore pa sonic sounds friday morning please\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"dunmore\",\r\n \"pa\",\r\n \"sonic\",\r\n \"sounds\",\r\n \"friday\",\r\n \"morning\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"dunmore pa sonic sounds\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"morning\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011408,\r\n \"text\": \"visit 209 nashville gym tomorrow morning\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"visit\",\r\n \"209\",\r\n \"nashville\",\r\n \"gym\",\r\n \"tomorrow\",\r\n \"morning\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"nashville gym\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"morning\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011407,\r\n \"text\": \"add to my calender daddy daughter dance at meadowbrook\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"to\",\r\n \"my\",\r\n \"calender\",\r\n \"daddy\",\r\n \"daughter\",\r\n \"dance\",\r\n \"at\",\r\n \"meadowbrook\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Location\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"meadowbrook\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011405,\r\n \"text\": \"i want to reschedule the meeting at the air force club\",\r\n \"intentLabel\": \"Calendar.Edit\",\r\n \"tokenizedText\": [\r\n \"i\",\r\n \"want\",\r\n \"to\",\r\n \"reschedule\",\r\n \"the\",\r\n \"meeting\",\r\n \"at\",\r\n \"the\",\r\n \"air\",\r\n \"force\",\r\n \"club\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 10\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"meeting at the air force club\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8011404,\r\n \"text\": \"add a new task finish assignment\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"add\",\r\n \"a\",\r\n \"new\",\r\n \"task\",\r\n \"finish\",\r\n \"assignment\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"finish assignment\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -8006196,\r\n \"text\": \"move the bbq party to friday\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"move\",\r\n \"the\",\r\n \"bbq\",\r\n \"party\",\r\n \"to\",\r\n \"friday\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.77\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"bbq party\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"friday\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7977821,\r\n \"text\": \"voice activated reading of appointments this week\",\r\n \"intentLabel\": \"Calendar.Find\",\r\n \"tokenizedText\": [\r\n \"voice\",\r\n \"activated\",\r\n \"reading\",\r\n \"of\",\r\n \"appointments\",\r\n \"this\",\r\n \"week\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"this week\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7977802,\r\n \"text\": \"stop any new appointments\",\r\n \"intentLabel\": \"Calendar.Delete\",\r\n \"tokenizedText\": [\r\n \"stop\",\r\n \"any\",\r\n \"new\",\r\n \"appointments\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.95\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -7977780,\r\n \"text\": \"schedule appointment for tomorrow please\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"schedule\",\r\n \"appointment\",\r\n \"for\",\r\n \"tomorrow\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"appointment\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7977779,\r\n \"text\": \"save the date may 17 pictures party\",\r\n \"intentLabel\": \"Calendar.Add\",\r\n \"tokenizedText\": [\r\n \"save\",\r\n \"the\",\r\n \"date\",\r\n \"may\",\r\n \"17\",\r\n \"pictures\",\r\n \"party\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"may 17\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Calendar.Subject\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"pictures party\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7030506,\r\n \"text\": \"find a deluxe room in a 3 stars hotel in barcelona\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7030502,\r\n \"text\": \"find me a deluxe room in a 3 stars hotel in barcelona please\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"please\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029692,\r\n \"text\": \"i wanna change the location to san francisco\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"i\",\r\n \"wanna\",\r\n \"change\",\r\n \"the\",\r\n \"location\",\r\n \"to\",\r\n \"san\",\r\n \"francisco\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"san francisco\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"san francisco\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029680,\r\n \"text\": \"change the hotel location to miami\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"miami\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.29\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029678,\r\n \"text\": \"change location to buenos aires\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.1\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -7029677,\r\n \"text\": \"change the location to london\",\r\n \"intentLabel\": \"FindHotels-ChangeLocation\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"location\",\r\n \"to\",\r\n \"london\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.42\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.11\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"london\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"london\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313947,\r\n \"text\": \"find hotel from today till tomorrow\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"from\",\r\n \"today\",\r\n \"till\",\r\n \"tomorrow\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313945,\r\n \"text\": \"find aiport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"aiport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313943,\r\n \"text\": \"whats the weather in buenos aires?\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313942,\r\n \"text\": \"fint airport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"fint\",\r\n \"airport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313940,\r\n \"text\": \"find airport pmw\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"pmw\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"pmw\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313930,\r\n \"text\": \"find airport oww\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"oww\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"oww\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313924,\r\n \"text\": \"what is the airport with dme code?\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"is\",\r\n \"the\",\r\n \"airport\",\r\n \"with\",\r\n \"dme\",\r\n \"code\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313921,\r\n \"text\": \"find airport with code pmv\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"pmv\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"pmv\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313919,\r\n \"text\": \"locate airport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"locate\",\r\n \"airport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313918,\r\n \"text\": \"what is the time in miami/\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"is\",\r\n \"the\",\r\n \"time\",\r\n \"in\",\r\n \"miami\",\r\n \"/\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313917,\r\n \"text\": \"airport eze\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"airport\",\r\n \"eze\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313916,\r\n \"text\": \"location of sfo airport?\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"sfo\",\r\n \"airport\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"sfo\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313914,\r\n \"text\": \"this is a test1\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"this\",\r\n \"is\",\r\n \"a\",\r\n \"test1\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.84\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -5313907,\r\n \"text\": \"find airport kss\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"kss\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"kss\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313905,\r\n \"text\": \"location of seatac airport\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"seatac\",\r\n \"airport\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -5313903,\r\n \"text\": \"fso\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"fso\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"fso\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313900,\r\n \"text\": \"location of sea airport\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"sea\",\r\n \"airport\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"sea\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313897,\r\n \"text\": \"find hotels in madrid from 02/12 to 02/15\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotels\",\r\n \"in\",\r\n \"madrid\",\r\n \"from\",\r\n \"02\",\r\n \"/\",\r\n \"12\",\r\n \"to\",\r\n \"02\",\r\n \"/\",\r\n \"15\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"02 / 12\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"02/12\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02 / 15\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02/15\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313895,\r\n \"text\": \"alooo?\",\r\n \"intentLabel\": \"None\",\r\n \"tokenizedText\": [\r\n \"alooo\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.91\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.85\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"id\": -5313894,\r\n \"text\": \"find airport dmv\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"dmv\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"dmv\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313892,\r\n \"text\": \"whats is the weather in buenos aires?\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"is\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313789,\r\n \"text\": \"time in caracas\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"caracas\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"caracas\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313788,\r\n \"text\": \"what time is it in buenos aires?\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"time\",\r\n \"is\",\r\n \"it\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313786,\r\n \"text\": \"whats the weather in madrid?\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"madrid\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313785,\r\n \"text\": \"location of fso airport?\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"fso\",\r\n \"airport\",\r\n \"?\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"fso\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313783,\r\n \"text\": \"time in barcelona\",\r\n \"intentLabel\": \"TimeInPlace\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313782,\r\n \"text\": \"find 3 stars standard rooms in buenos aires from 02/24 to 02/26\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"3\",\r\n \"stars\",\r\n \"standard\",\r\n \"rooms\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"from\",\r\n \"02\",\r\n \"/\",\r\n \"24\",\r\n \"to\",\r\n \"02\",\r\n \"/\",\r\n \"26\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"standard\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02 / 24\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"02/24\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"02 / 26\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"02/26\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5313780,\r\n \"text\": \"weather in aisjj3o9f2\",\r\n \"intentLabel\": \"WeatherInPlace\",\r\n \"tokenizedText\": [\r\n \"weather\",\r\n \"in\",\r\n \"aisjj3o9f2\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"aisjj3o9f2\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301785,\r\n \"text\": \"find hotel in miami for today\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"miami\",\r\n \"for\",\r\n \"today\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301783,\r\n \"text\": \"find hotels in vienna from 03/11 to 03/16\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotels\",\r\n \"in\",\r\n \"vienna\",\r\n \"from\",\r\n \"03\",\r\n \"/\",\r\n \"11\",\r\n \"to\",\r\n \"03\",\r\n \"/\",\r\n \"16\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"vienna\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"03 / 11\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"03/11\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"03 / 16\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"03/16\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301763,\r\n \"text\": \"location of eze airport\",\r\n \"intentLabel\": \"FindAirportByCode\",\r\n \"tokenizedText\": [\r\n \"location\",\r\n \"of\",\r\n \"eze\",\r\n \"airport\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": -5301762,\r\n \"text\": \"search for 5 stars hotels with deluxe rooms in barcelona from tomorrow till monday next week\",\r\n \"intentLabel\": \"FindHotels\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"stars\",\r\n \"hotels\",\r\n \"with\",\r\n \"deluxe\",\r\n \"rooms\",\r\n \"in\",\r\n \"barcelona\",\r\n \"from\",\r\n \"tomorrow\",\r\n \"till\",\r\n \"monday\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"entityLabels\": [\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 9\r\n },\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15\r\n }\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 stars\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 9,\r\n \"endTokenIndex\": 9,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 0\r\n },\r\n {\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 13,\r\n \"endTokenIndex\": 15,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 0\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "85975" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3ebcfb0c-7779-4a85-be1d-d7d4915a2804" + ], + "Request-Id": [ + "3ebcfb0c-7779-4a85-be1d-d7d4915a2804" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/ListExamples_ForEmptyApplication_ReturnsEmpty.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/ListExamples_ForEmptyApplication_ReturnsEmpty.json new file mode 100644 index 000000000000..3a25ec010e0a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ExamplesTests/ListExamples_ForEmptyApplication_ReturnsEmpty.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Examples Test App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"d2f9c7c6-a75e-4ab0-ba71-d15f3955aba9\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/d2f9c7c6-a75e-4ab0-ba71-d15f3955aba9" + ], + "Apim-Request-Id": [ + "836b35b5-68ae-4659-b71a-a90feaf2e406" + ], + "Request-Id": [ + "836b35b5-68ae-4659-b71a-a90feaf2e406" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/d2f9c7c6-a75e-4ab0-ba71-d15f3955aba9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/d2f9c7c6-a75e-4ab0-ba71-d15f3955aba9/versions/0.1/examples?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9kMmY5YzdjNi1hNzVlLTRhYjAtYmE3MS1kMTVmMzk1NWFiYTkvdmVyc2lvbnMvMC4xL2V4YW1wbGVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "aa3ae302-49a3-4056-928c-2a0178fee413" + ], + "Request-Id": [ + "aa3ae302-49a3-4056-928c-2a0178fee413" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/d2f9c7c6-a75e-4ab0-ba71-d15f3955aba9", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9kMmY5YzdjNi1hNzVlLTRhYjAtYmE3MS1kMTVmMzk1NWFiYTk=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 15:32:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a9c4cd98-1649-41af-94e4-a1bf1d6561ad" + ], + "Request-Id": [ + "a9c4cd98-1649-41af-94e4-a1bf1d6561ad" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/AddPhraseList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/AddPhraseList.json new file mode 100644 index 000000000000..aa922f956180 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/AddPhraseList.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"name\": \"DayOfWeek\",\r\n \"isExchangeable\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "128" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "648649", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "42aefddc-b515-4960-ac5d-780069d1cb86" + ], + "Request-Id": [ + "42aefddc-b515-4960-ac5d-780069d1cb86" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648649", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0OQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": 648649,\r\n \"name\": \"DayOfWeek\",\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"isExchangeable\": true,\r\n \"isActive\": true\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "139" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "53a81f7e-c35a-43b6-b796-426796080031" + ], + "Request-Id": [ + "53a81f7e-c35a-43b6-b796-426796080031" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648649", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0OQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "73770a02-4641-4210-b02e-1a4c533ca2f9" + ], + "Request-Id": [ + "73770a02-4641-4210-b02e-1a4c533ca2f9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/DeletePhraseList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/DeletePhraseList.json new file mode 100644 index 000000000000..6829a9a17d87 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/DeletePhraseList.json @@ -0,0 +1,232 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"name\": \"DayOfWeek\",\r\n \"isExchangeable\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "128" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "648647", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a2eb257e-076a-417c-9d28-7a93063621e6" + ], + "Request-Id": [ + "a2eb257e-076a-417c-9d28-7a93063621e6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648647", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0Nw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": 648647,\r\n \"name\": \"DayOfWeek\",\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"isExchangeable\": true,\r\n \"isActive\": true\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "139" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b483eee3-fbf2-4102-bfd7-bd3f32101daa" + ], + "Request-Id": [ + "b483eee3-fbf2-4102-bfd7-bd3f32101daa" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648647", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0Nw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1b34b738-3c7a-493c-a0fa-5b7783851412" + ], + "Request-Id": [ + "1b34b738-3c7a-493c-a0fa-5b7783851412" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "17632cfe-4ce2-4376-a0a7-8f932bd22ed6" + ], + "Request-Id": [ + "17632cfe-4ce2-4376-a0a7-8f932bd22ed6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/GetPhraseList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/GetPhraseList.json new file mode 100644 index 000000000000..7ad120d77d66 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/GetPhraseList.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"name\": \"DayOfWeek\",\r\n \"isExchangeable\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "128" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "648645", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "485579d1-c8ce-4e2b-9f33-2752dbf57f3c" + ], + "Request-Id": [ + "485579d1-c8ce-4e2b-9f33-2752dbf57f3c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648645", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0NQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": 648645,\r\n \"name\": \"DayOfWeek\",\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"isExchangeable\": true,\r\n \"isActive\": true\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "139" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "dd605c5a-fe5c-4f46-89af-fe041d7e9e5d" + ], + "Request-Id": [ + "dd605c5a-fe5c-4f46-89af-fe041d7e9e5d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648645", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0NQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "e961f5d7-76e2-432b-9d56-e12982dccaeb" + ], + "Request-Id": [ + "e961f5d7-76e2-432b-9d56-e12982dccaeb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/ListPhraseLists.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/ListPhraseLists.json new file mode 100644 index 000000000000..3bca2ab25c76 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/ListPhraseLists.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"name\": \"DayOfWeek\",\r\n \"isExchangeable\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "128" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "648646", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b566b9be-837a-4ab0-bb70-43f7eb38ec8c" + ], + "Request-Id": [ + "b566b9be-837a-4ab0-bb70-43f7eb38ec8c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": 648646,\r\n \"name\": \"DayOfWeek\",\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"isExchangeable\": true,\r\n \"isActive\": true\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "141" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "612860e2-6ef6-4a1e-86b3-27b62a423611" + ], + "Request-Id": [ + "612860e2-6ef6-4a1e-86b3-27b62a423611" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648646", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0Ng==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b9475d40-2946-4189-b612-9a6962812c6a" + ], + "Request-Id": [ + "b9475d40-2946-4189-b612-9a6962812c6a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/UpdatePhraseList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/UpdatePhraseList.json new file mode 100644 index 000000000000..ac73fac5fc0b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesPhraseListsTests/UpdatePhraseList.json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"phrases\": \"monday,tuesday,wednesday,thursday,friday,saturday,sunday\",\r\n \"name\": \"DayOfWeek\",\r\n \"isExchangeable\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "128" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "648648", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "792b3616-1a71-4500-8b99-334de84dec56" + ], + "Request-Id": [ + "792b3616-1a71-4500-8b99-334de84dec56" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648648", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0OA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"phrases\": \"january,february,march,april,may,june,july,august,september,october,november,december\",\r\n \"name\": \"Month\",\r\n \"isActive\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "148" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "43bf310e-3d6d-40d8-a5cb-2725654f7341" + ], + "Request-Id": [ + "43bf310e-3d6d-40d8-a5cb-2725654f7341" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648648", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0OA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": 648648,\r\n \"name\": \"Month\",\r\n \"phrases\": \"january,february,march,april,may,june,july,august,september,october,november,december\",\r\n \"isExchangeable\": true,\r\n \"isActive\": false\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "79880530-46f1-4bd7-9895-c52f485191c3" + ], + "Request-Id": [ + "79880530-46f1-4bd7-9895-c52f485191c3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/648648", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3BocmFzZWxpc3RzLzY0ODY0OA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:05:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7a0e3a3a-9f2f-4530-b5b8-9b6363ab28a3" + ], + "Request-Id": [ + "7a0e3a3a-9f2f-4530-b5b8-9b6363ab28a3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesTests/ListFeatures.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesTests/ListFeatures.json new file mode 100644 index 000000000000..931adc7de5cc --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.FeaturesTests/ListFeatures.json @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/features?skip=0&take=100", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"phraselistFeatures\": [\r\n {\r\n \"id\": 603121,\r\n \"name\": \"Cities\",\r\n \"phrases\": \"Seattle,Paris,Moscow,New York\",\r\n \"isExchangeable\": true,\r\n \"isActive\": true\r\n }\r\n ],\r\n \"patternFeatures\": [\r\n {\r\n \"id\": 601765,\r\n \"name\": \"PatternIP\",\r\n \"pattern\": \"\\\\b\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\b\",\r\n \"isActive\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "263" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Fri, 01 Dec 2017 13:41:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0b42592b-dc3a-4a4f-8de2-b4cd3f003bb4" + ], + "Request-Id": [ + "0b42592b-dc3a-4a4f-8de2-b4cd3f003bb4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ExportVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ExportVersion.json new file mode 100644 index 000000000000..e444ea49fec1 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ExportVersion.json @@ -0,0 +1,64 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/export", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2V4cG9ydA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"luis_schema_version\": \"2.1.0\",\r\n \"versionId\": \"0.1\",\r\n \"name\": \"LUIS BOT\",\r\n \"desc\": \"LUIS BOT\",\r\n \"culture\": \"en-us\",\r\n \"intents\": [\r\n {\r\n \"name\": \"Calendar.Add\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Add\"\r\n }\r\n },\r\n {\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"CheckAvailability\"\r\n }\r\n },\r\n {\r\n \"name\": \"Calendar.Delete\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"Calendar.Edit\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Edit\"\r\n }\r\n },\r\n {\r\n \"name\": \"Calendar.Find\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Find\"\r\n }\r\n },\r\n {\r\n \"name\": \"FindAirportByCode\"\r\n },\r\n {\r\n \"name\": \"FindHotels\"\r\n },\r\n {\r\n \"name\": \"FindHotels-ChangeLocation\"\r\n },\r\n {\r\n \"name\": \"None\"\r\n },\r\n {\r\n \"name\": \"TimeInPlace\"\r\n },\r\n {\r\n \"name\": \"WeatherInPlace\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"Calendar.Location\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Location\"\r\n }\r\n },\r\n {\r\n \"name\": \"Calendar.Subject\",\r\n \"inherits\": {\r\n \"domain_name\": \"Calendar\",\r\n \"model_name\": \"Subject\"\r\n }\r\n },\r\n {\r\n \"name\": \"Category\"\r\n },\r\n {\r\n \"name\": \"Code\"\r\n },\r\n {\r\n \"name\": \"RoomType\"\r\n }\r\n ],\r\n \"composites\": [\r\n {\r\n \"name\": \"Checkin\",\r\n \"children\": [\r\n \"datetime\"\r\n ]\r\n },\r\n {\r\n \"name\": \"Checkout\",\r\n \"children\": [\r\n \"datetime\"\r\n ]\r\n },\r\n {\r\n \"name\": \"Renamed Entity\",\r\n \"children\": [\r\n \"datetime\"\r\n ]\r\n }\r\n ],\r\n \"closedLists\": [\r\n {\r\n \"name\": \"States\",\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New Yorkers\",\r\n \"list\": [\r\n \"NYC\",\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"bing_entities\": [\r\n \"datetime\",\r\n \"geography\"\r\n ],\r\n \"model_features\": [],\r\n \"regex_features\": [\r\n {\r\n \"name\": \"Airport code\",\r\n \"pattern\": \"[a-z]{3,3}\",\r\n \"activated\": true\r\n }\r\n ],\r\n \"utterances\": [\r\n {\r\n \"text\": \"hello\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"hi\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"seattle\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the weather in seattle\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"ok\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what time is it?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what's the time?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"asd\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what's the weather like?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"exit\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather in london\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find hotels in seattle\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 21\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the weather?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what time is it/\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what time is it ?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find hotels\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find me a hotel\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"miami\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the weather in new york?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"hotel\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"cancel appointment\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"time?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather in madrid\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in paris?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hello bot!\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather in moscow\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in new york\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 18\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in miami\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"barcelona\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"ok bye\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the weather in london?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hello friend\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"whats the time?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the weather now?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"location of airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the time in new york?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what time is it in seattle?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in amsterdam\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is in paris?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in london\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in sydney\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in paris now\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in madrid\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 13\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in paris?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hellou\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search for hotels\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what is the weather in barcelona\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"whats the weather?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather in cairo\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me what is the time\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather in lviv\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find time\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"tell me the weather in barcelona\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how is the weather in madrid?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 22,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotel in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 9,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in france?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in buenos aires\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 22\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in france\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me hotel\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"weather in barcelona\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in dubai?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in athens\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is it in miami?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in atlanta\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me hotels in miami\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 18,\r\n \"endPos\": 22\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in miami?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in buenos aires\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in madrid?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in miami?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me hotel in buenos aires from 05/02 to 10/02\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 17,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me luxury hotels in miami from 07-02 to 07-05\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 25,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 8,\r\n \"endPos\": 13\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotels in buenos aires from 1st march to 3rd march\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 10,\r\n \"endPos\": 21\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"cheap hotels in buenos aires from 03/10 to 03/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 27\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 0,\r\n \"endPos\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find an hotel in madrid, checkin 04.05, checkout 04.24\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 17,\r\n \"endPos\": 22\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show hotels in madrid from 05/26 to 06/04\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me 4 stars hotels in buenos aires from 03/11 to 03/15\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 26,\r\n \"endPos\": 37\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 8,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me deluxe rooms in madrid from 02/23 to 02/26\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 8,\r\n \"endPos\": 13\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in barcelona with 3 stars, checkin 04/11, checkout 05/11\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 30,\r\n \"endPos\": 36\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show 4 stars hotels with suites in berlin from 06/11 to 06/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 47,\r\n \"endPos\": 51\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 25,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 35,\r\n \"endPos\": 40\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 56,\r\n \"endPos\": 60\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find a hotel in vancouver from march 1st to march 7th\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in san francisco from 04/05 to 04/11\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 33,\r\n \"endPos\": 37\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 26\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 42,\r\n \"endPos\": 46\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in california from 04/05 to 04/11\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 30,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 39,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotel in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 9,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotel in madrid from 05/11 to 06/11\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 21,\r\n \"endPos\": 25\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 9,\r\n \"endPos\": 14\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 30,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotel in madrid from 05/11 to 06/11 having economic rooms\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 21,\r\n \"endPos\": 25\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 43,\r\n \"endPos\": 50\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 9,\r\n \"endPos\": 14\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 30,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me 5 stars hotels in california with suite rooms from 05/11 to 05/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 59,\r\n \"endPos\": 63\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 42,\r\n \"endPos\": 46\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 8,\r\n \"endPos\": 14\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 68,\r\n \"endPos\": 72\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find cheap rooms in buenos aires\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 5,\r\n \"endPos\": 9\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 3 stars hotels in seattle\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 3 stars deluxe rooms in vienna from 03/15 to 03/17\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 41,\r\n \"endPos\": 45\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 13,\r\n \"endPos\": 18\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 29,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 50,\r\n \"endPos\": 54\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 2 stars hotel with standard room in barcelona from 03/11 to 03/17\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 56,\r\n \"endPos\": 60\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 24,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 41,\r\n \"endPos\": 49\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 65,\r\n \"endPos\": 69\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me deluxe rooms in 4 starts hotel in madrid area from 05/12 to 05/17\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 59,\r\n \"endPos\": 63\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 8,\r\n \"endPos\": 13\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 42,\r\n \"endPos\": 47\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 24,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 68,\r\n \"endPos\": 72\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in california from 02/03 to 02/05\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 30,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 39,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find cheap room in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 5,\r\n \"endPos\": 9\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona from 02/22 to 02/25\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 29,\r\n \"endPos\": 33\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 22\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 38,\r\n \"endPos\": 42\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find deluxe rooms in berlin\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 5,\r\n \"endPos\": 10\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find deluxe rooms in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 5,\r\n \"endPos\": 10\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find cheap rooms in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 5,\r\n \"endPos\": 9\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel from 04-11 to 04-18\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 16,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 25,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me standard rooms in sydney to checkin 08/22 until 08/28\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 44,\r\n \"endPos\": 48\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 8,\r\n \"endPos\": 15\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 26,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 56,\r\n \"endPos\": 60\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what are the cheapest rooms in claromeco to stay from 01/22 to 01/27?\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 54,\r\n \"endPos\": 58\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 13,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 31,\r\n \"endPos\": 39\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 63,\r\n \"endPos\": 67\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me deluxe rooms in 5 stars hotels at athens\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 8,\r\n \"endPos\": 13\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 42,\r\n \"endPos\": 47\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 24,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in los angeles\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in new york city from 02.22 to 02.27\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 33,\r\n \"endPos\": 37\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 26\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 42,\r\n \"endPos\": 46\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me hotels in dubai with 5 stars\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 18,\r\n \"endPos\": 22\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 29,\r\n \"endPos\": 35\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotel from 04/22 to 04/27 in caracas\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 11,\r\n \"endPos\": 15\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 20,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me hotels in merlo with 2 stars\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 18,\r\n \"endPos\": 22\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 29,\r\n \"endPos\": 35\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in varadero\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 21\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in buenos aires\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in madrid from 02/14 to 02/18\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 35,\r\n \"endPos\": 39\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from today till tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 37,\r\n \"endPos\": 44\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from today to tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 35,\r\n \"endPos\": 42\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami, fl\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from tomorrow till monday next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 33\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 40,\r\n \"endPos\": 55\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from tomorrow till next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 33\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 40,\r\n \"endPos\": 48\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from march 1st today to 1/2\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 40\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 45,\r\n \"endPos\": 47\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from tomorrow till mondat next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 33\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 40,\r\n \"endPos\": 55\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotes in miami from today till tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 25,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 18\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 36,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from today to next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 35,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from 1/1 to 1/2\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 28\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 33,\r\n \"endPos\": 35\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in miami from march 1st to 1/2\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 26,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 19\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 39,\r\n \"endPos\": 41\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 3 stars hotels in barcelona with deluxe rooms from today till tuesday next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 56,\r\n \"endPos\": 60\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 38,\r\n \"endPos\": 43\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 67,\r\n \"endPos\": 83\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in seattle?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in miami from tomorrow to 2017/02/12\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 32,\r\n \"endPos\": 39\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 25\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 44,\r\n \"endPos\": 53\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in barcelona from tomorrow to 2017/03/03\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 36,\r\n \"endPos\": 43\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 48,\r\n \"endPos\": 57\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in barcelona from tomorrow till 2017/03/03\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 36,\r\n \"endPos\": 43\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 50,\r\n \"endPos\": 59\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in barcelona from tomorrow until 2017/03/03\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 36,\r\n \"endPos\": 43\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 51,\r\n \"endPos\": 60\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me hotels in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 18,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search me hotel in barcelona from tomorrow to 2017/03/03\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 34,\r\n \"endPos\": 41\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 27\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 46,\r\n \"endPos\": 55\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"gettimeinplaceaction\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find hotels in buenos aires from today till tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 33,\r\n \"endPos\": 37\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 26\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 44,\r\n \"endPos\": 51\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotel in miami from 2017/02/09 to 2017/02/15\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 31,\r\n \"endPos\": 40\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 24\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 45,\r\n \"endPos\": 54\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in barcelona from 2017/03/01 to 2017/03/03\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 36,\r\n \"endPos\": 45\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 29\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 50,\r\n \"endPos\": 59\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in my house?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a hotel for tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 20,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in montevideo?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me hotel from 02/15 to 04/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 19,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 28,\r\n \"endPos\": 32\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 stars hotels in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 29,\r\n \"endPos\": 37\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 11,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in barcelona from today till tuesday next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 30,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 41,\r\n \"endPos\": 57\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is it in montevideo right now?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is it in argentina?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a 3 stars hotel with deluxe rooms\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 29,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 10,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 stars hotels in seattle\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 29,\r\n \"endPos\": 35\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 11,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me hotel from today till tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 19,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 30,\r\n \"endPos\": 37\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in barcelona from 02/15 to 04/24\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 30,\r\n \"endPos\": 34\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 23\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 39,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me deluxe rooms in 3 stars hotels in london from tomorrow till monday next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 54,\r\n \"endPos\": 61\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 8,\r\n \"endPos\": 13\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 42,\r\n \"endPos\": 47\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 24,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 68,\r\n \"endPos\": 83\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a 3 stars hotel from 02/15 to 02/23\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 29,\r\n \"endPos\": 33\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 10,\r\n \"endPos\": 16\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 38,\r\n \"endPos\": 42\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats is the time in buenos aires?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 32\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in buenos aires?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in argentina?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a deluxe room in madrid from today till tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 37,\r\n \"endPos\": 41\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 10,\r\n \"endPos\": 15\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 25,\r\n \"endPos\": 30\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 48,\r\n \"endPos\": 55\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how is the weather in buenos aires now?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 22,\r\n \"endPos\": 33\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is it in mimai?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in miami\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in carilo\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in claromeco?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in argentina\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in claromeco\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how is the weather like in barcelona?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 27,\r\n \"endPos\": 35\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weahter in london\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in france?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in mar del plata?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hotel in paris with deluxe rooms\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 20,\r\n \"endPos\": 25\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 9,\r\n \"endPos\": 13\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in buenos aires\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in paris\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in cancun\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how is the weather in barcelona?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 22,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in acapulco?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in acapulco\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 18\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is it miami?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in caracas\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 3 stars hotels with standard rooms in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 31,\r\n \"endPos\": 38\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 49,\r\n \"endPos\": 54\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 11,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in miami\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 12\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in aruba\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is located the airport with code eze?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 39,\r\n \"endPos\": 41\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dxb airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of sfo airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport for sea code\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 17,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is eze airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 9,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me the location for sea airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 25,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dwc airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is in miami?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport code sfo\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 18,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in liberia\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats is the time in peru?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport eze\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"check for hotels in miami\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time si it?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"time in miami?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 12\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in eze?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 10\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in buenos aires\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 32\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport code eze\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 18,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport code hea\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 18,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"check for hotels in miam\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find sea airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport code aep\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 18,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport with code und\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 23,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport kvd\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of tri airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is psj airport located?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 9,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"eze airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"lkj airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dmv airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find liv airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dmb airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is located sfo airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 17,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sea airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find sbg airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find eze airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is wbq airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 9,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is raq airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 9,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find sfo airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what's time?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find oal airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where i can find sfo airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 17,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find mad airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find bcn airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find ret airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dme airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find poe airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find vjd airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"atl airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where is located bcn?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 17,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find gfi airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"bar airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dmo airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find gig airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find pmv airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where if sfo airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 9,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find sho airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"please tell me where i can find sub airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 32,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport sea\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"airport code pmv\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find wsx airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find dmv aiport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find qwe airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"bcn airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"jfk airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"pca airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find aep airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find bar airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find baj aiport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"ls -la\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find pla airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find azz airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find tri airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"mdq airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find lwo airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 5,\r\n \"endPos\": 7\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"mkn airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"please tell me where is bcn airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 24,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"nqn airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"mimai\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"2017/03/10\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what time is it in miami/\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"2017/03/01\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find 3 stars standard rooms in buenos aires from 02/15 to 02/18\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 49,\r\n \"endPos\": 53\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 13,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 31,\r\n \"endPos\": 42\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 58,\r\n \"endPos\": 62\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels ]\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"2017/01/01\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"2017/03/03\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 0,\r\n \"endPos\": 9\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for deluxe rools in miami, from 2013/03/01 to 2013/03/10\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 39,\r\n \"endPos\": 48\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 53,\r\n \"endPos\": 62\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for deluxe hotel in miami, from 2013/03/01 to 2013/03/10\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 39,\r\n \"endPos\": 48\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 53,\r\n \"endPos\": 62\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotel in miami\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels in miami\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 17,\r\n \"endPos\": 21\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels?\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search for deluxe rooms in miami, from 2013/03/01 to 2013/03/10\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 39,\r\n \"endPos\": 48\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 53,\r\n \"endPos\": 62\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport with code sfo\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 23,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for deluxe rooms in miami, from 2013/03/01 to 2013/0/0\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 39,\r\n \"endPos\": 48\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 53,\r\n \"endPos\": 60\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotel in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 16,\r\n \"endPos\": 21\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for hotels in miami, from tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 33,\r\n \"endPos\": 40\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport with lga code\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 18,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in buenos aires?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the weather in bahia blanca?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 5 stars deluxe rooms in madrid from 02/14 to 02/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 41,\r\n \"endPos\": 45\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 13,\r\n \"endPos\": 18\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 50,\r\n \"endPos\": 54\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"locate airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search for deluxe hotel in miami, from 2013/03/01\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 39,\r\n \"endPos\": 48\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 11,\r\n \"endPos\": 16\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find standard rooms in madrid\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 5,\r\n \"endPos\": 12\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in vienna from 03/12 to 03/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 36,\r\n \"endPos\": 40\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in warsaw\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of fso airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the airport with ccs code?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 25,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the airport with css code?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 25,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats the weather for miami?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 22,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats is the weather in miami?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 24,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 stars hotels with deluxe rooms in barcelona from tomorrow till monday next week\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 62,\r\n \"endPos\": 69\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 31,\r\n \"endPos\": 36\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 47,\r\n \"endPos\": 55\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 11,\r\n \"endPos\": 17\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 76,\r\n \"endPos\": 91\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of eze airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels in vienna from 03/11 to 03/16\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 36,\r\n \"endPos\": 40\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in miami for today\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 24,\r\n \"endPos\": 28\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 14,\r\n \"endPos\": 18\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in aisjj3o9f2\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 11,\r\n \"endPos\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 3 stars standard rooms in buenos aires from 02/24 to 02/26\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 49,\r\n \"endPos\": 53\r\n },\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 13,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 31,\r\n \"endPos\": 42\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 5,\r\n \"endPos\": 11\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 58,\r\n \"endPos\": 62\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in barcelona\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of fso airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats the weather in madrid?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 26\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is it in buenos aires?\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in caracas\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 8,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats is the weather in buenos aires?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 24,\r\n \"endPos\": 35\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport dmv\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"alooo?\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find hotels in madrid from 02/12 to 02/15\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 27,\r\n \"endPos\": 31\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 15,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 36,\r\n \"endPos\": 40\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of sea airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"fso\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 0,\r\n \"endPos\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"location of seatac airport\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"find airport kss\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"this is a test1\",\r\n \"intent\": \"None\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"location of sfo airport?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"airport eze\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 8,\r\n \"endPos\": 10\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the time in miami/\",\r\n \"intent\": \"TimeInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 20,\r\n \"endPos\": 24\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"locate airport eze\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 15,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport with code pmv\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 23,\r\n \"endPos\": 25\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what is the airport with dme code?\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 25,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport oww\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport pmw\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"fint airport eze\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 13,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats the weather in buenos aires?\",\r\n \"intent\": \"WeatherInPlace\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 21,\r\n \"endPos\": 32\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find aiport eze\",\r\n \"intent\": \"FindAirportByCode\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Code\",\r\n \"startPos\": 12,\r\n \"endPos\": 14\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel from today till tomorrow\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Checkin\",\r\n \"startPos\": 16,\r\n \"endPos\": 20\r\n },\r\n {\r\n \"entity\": \"Checkout\",\r\n \"startPos\": 27,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change the location to london\",\r\n \"intent\": \"FindHotels-ChangeLocation\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 23,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to buenos aires\",\r\n \"intent\": \"FindHotels-ChangeLocation\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 19,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change the hotel location to miami\",\r\n \"intent\": \"FindHotels-ChangeLocation\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 29,\r\n \"endPos\": 33\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"i wanna change the location to san francisco\",\r\n \"intent\": \"FindHotels-ChangeLocation\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 31,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a deluxe room in a 3 stars hotel in barcelona please\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 10,\r\n \"endPos\": 15\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 44,\r\n \"endPos\": 52\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 27,\r\n \"endPos\": 33\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find a deluxe room in a 3 stars hotel in barcelona\",\r\n \"intent\": \"FindHotels\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"RoomType\",\r\n \"startPos\": 7,\r\n \"endPos\": 12\r\n },\r\n {\r\n \"entity\": \"Renamed Entity\",\r\n \"startPos\": 41,\r\n \"endPos\": 49\r\n },\r\n {\r\n \"entity\": \"Category\",\r\n \"startPos\": 24,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"save the date may 17 pictures party\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 21,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"schedule appointment for tomorrow please\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 9,\r\n \"endPos\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"stop any new appointments\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"voice activated reading of appointments this week\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"move the bbq party to friday\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 9,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add a new task finish assignment\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 15,\r\n \"endPos\": 31\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\": \"Calendar.Edit\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 25,\r\n \"endPos\": 53\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add to my calender daddy daughter dance at meadowbrook\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 43,\r\n \"endPos\": 53\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"visit 209 nashville gym tomorrow morning\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 10,\r\n \"endPos\": 22\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dunmore pa sonic sounds friday morning please\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 0,\r\n \"endPos\": 22\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add an event to visit 209 nashville gym\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 22,\r\n \"endPos\": 38\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add imax theater to my upcoming events\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 4,\r\n \"endPos\": 15\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"the meeting will last for one hour\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"tell me the event details\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search for meetings with chris\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 11,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"display weekend plans\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"calendar for november 1948\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"please just delete my meeting\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 19,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"remove a calendar entry\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"cancel an event on the calendar\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"calendar cancel friday with eddy\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"pull up my appointment find out how much time i have before my next appointment\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"check if i have time for a meeting tonight\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"check friday at 9 am\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"free time this afternoon please\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"appointment with johnson needs to be next week\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 0,\r\n \"endPos\": 23\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"meeting my manager\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 0,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"view tom chros availability\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"appointment extension request\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"meeting adjustment\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"extend lunch meeting 30 minutes extra\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 7,\r\n \"endPos\": 19\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\": \"Calendar.Edit\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 0,\r\n \"endPos\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"help me in rescheduling my calender\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"calendar i ' ll be at the garage from 8 till 3 this saturday\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 26,\r\n \"endPos\": 31\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me tomorrow ' s wedding party time\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"how many days are there between march 13th 2015 and today ?\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"do i have anything on wednesday ?\",\r\n \"intent\": \"Calendar.Find\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"add a new event on 27 - apr\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"cancel tomorrow ' s appointment\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"can you delete my events this saturday ?\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"reschedule the remaing time to self study\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"i want to reschedule tomorrow ' s meeting\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"edit the meeting to be 7 : 30 not 8 : 30\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"email cloney john\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 0,\r\n \"endPos\": 16\r\n }\r\n ]\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 \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 0,\r\n \"endPos\": 11\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"call dad mike\",\r\n \"intent\": \"None\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 0,\r\n \"endPos\": 12\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how soon will jack be free ?\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"when is paul available ?\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"show me samuel ' s availability for tuesday morning\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"is keil available tomorrow ?\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"check lee ' s calender\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"meet kiel at hallmark cards 405 saturday 2 : 00 pm\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 13,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change today ' s course time to 11 pm\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"make dinner plans at restaurant at 8pm .\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 21,\r\n \"endPos\": 30\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"am i free to be with friends saturday ?\",\r\n \"intent\": \"Calendar.CheckAvailability\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 13,\r\n \"endPos\": 27\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add an event to read about adam lambert news\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 16,\r\n \"endPos\": 43\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"set an event on edwardsville pa gym today\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 16,\r\n \"endPos\": 34\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"delete helen fred ' s birthday\",\r\n \"intent\": \"Calendar.Delete\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 7,\r\n \"endPos\": 29\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change the meeting with chris to 9 : 00 am\",\r\n \"intent\": \"Calendar.Edit\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Subject\",\r\n \"startPos\": 7,\r\n \"endPos\": 28\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"897 pancake house on tuesday 1 : 00 pm please\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 0,\r\n \"endPos\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dsw shoes 7804 on monday 3 : 00 pm\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 0,\r\n \"endPos\": 13\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"add to tuesday ' s calender visting milos bar tequila\",\r\n \"intent\": \"Calendar.Add\",\r\n \"entities\": [\r\n {\r\n \"entity\": \"Calendar.Location\",\r\n \"startPos\": 36,\r\n \"endPos\": 52\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "102731" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Content-Disposition": [ + "attachment; filename=\"LUIS BOT.json\"" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:09:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1ee78970-cf26-4341-9233-8ffa5eab73e4" + ], + "Request-Id": [ + "1ee78970-cf26-4341-9233-8ffa5eab73e4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ImportApp.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ImportApp.json new file mode 100644 index 000000000000..54869fa5ee47 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ImportApp.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/import?appName=Test%20Import%20LUIS%20App", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy9pbXBvcnQ/YXBwTmFtZT1UZXN0JTIwSW1wb3J0JTIwTFVJUyUyMEFwcA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"LuisBot\",\r\n \"versionId\": \"0.1\",\r\n \"desc\": \"\",\r\n \"culture\": \"en-us\",\r\n \"intents\": [\r\n {\r\n \"name\": \"dateintent\"\r\n },\r\n {\r\n \"name\": \"Help\"\r\n },\r\n {\r\n \"name\": \"None\"\r\n },\r\n {\r\n \"name\": \"SearchHotels\"\r\n },\r\n {\r\n \"name\": \"ShowHotelsReviews\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AirportCode\"\r\n },\r\n {\r\n \"name\": \"Hotel\"\r\n }\r\n ],\r\n \"bing_entities\": [\r\n \"datetimeV2\",\r\n \"geography\"\r\n ],\r\n \"closedLists\": [],\r\n \"composites\": [],\r\n \"regex_features\": [\r\n {\r\n \"pattern\": \"[a-z]{3}\",\r\n \"activated\": true,\r\n \"name\": \"AirportCodeRegex\"\r\n }\r\n ],\r\n \"model_features\": [\r\n {\r\n \"activated\": true,\r\n \"name\": \"Near\",\r\n \"words\": \"near,around,close,nearby\",\r\n \"mode\": true\r\n },\r\n {\r\n \"activated\": true,\r\n \"name\": \"Show\",\r\n \"words\": \"show,find,look,search\",\r\n \"mode\": true\r\n }\r\n ],\r\n \"utterances\": [\r\n {\r\n \"text\": \"i need help\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"help me\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"tomorrow\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search for hotels in seattle\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what can i do?\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"next monday\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"next year\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"look for hotels in miami\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"show me hotels in california\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"show me the reviews of the amazing bot resort\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 23,\r\n \"endPos\": 44,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"can i see the reviews of extended bot hotel?\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 25,\r\n \"endPos\": 42,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find reviews of hotelxya\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 16,\r\n \"endPos\": 23,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me reviews of the amazing hotel\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 19,\r\n \"endPos\": 35,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what are the available options?\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"best hotels in seattle\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"hotels in los angeles\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"can you show me hotels from los angeles?\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"can you show me the reviews of the amazing resort & hotel\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 31,\r\n \"endPos\": 56,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what are the reviews of the hotel bot framework?\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 24,\r\n \"endPos\": 46,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels near eze\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 17,\r\n \"endPos\": 19,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where can i stay near nnn?\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 22,\r\n \"endPos\": 24,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show hotels near att airport\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 17,\r\n \"endPos\": 19,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels near agl\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 17,\r\n \"endPos\": 19,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels around eze airport\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 19,\r\n \"endPos\": 21,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"01/7\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n }\r\n ],\r\n \"luis_schema_version\": \"2.1.0\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "5105" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"525eb3b5-651d-4201-b75d-71df9a655f35\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:10:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/525eb3b5-651d-4201-b75d-71df9a655f35" + ], + "Apim-Request-Id": [ + "12016132-6b70-4b83-b478-611e1b208efc" + ], + "Request-Id": [ + "12016132-6b70-4b83-b478-611e1b208efc" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/525eb3b5-651d-4201-b75d-71df9a655f35" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/525eb3b5-651d-4201-b75d-71df9a655f35", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy81MjVlYjNiNS02NTFkLTQyMDEtYjc1ZC03MWRmOWE2NTVmMzU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"525eb3b5-651d-4201-b75d-71df9a655f35\",\r\n \"name\": \"Test Import LUIS App\",\r\n \"description\": \"\",\r\n \"culture\": \"en-us\",\r\n \"usageScenario\": \"\",\r\n \"domain\": \"\",\r\n \"versionsCount\": 1,\r\n \"createdDateTime\": \"2017-12-14T17:09:59Z\",\r\n \"endpoints\": {},\r\n \"endpointHitsCount\": 0,\r\n \"activeVersion\": \"0.1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "259" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:10:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "88a94f73-8f7e-426e-84a3-ae7022b44c1f" + ], + "Request-Id": [ + "88a94f73-8f7e-426e-84a3-ae7022b44c1f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/525eb3b5-651d-4201-b75d-71df9a655f35", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy81MjVlYjNiNS02NTFkLTQyMDEtYjc1ZC03MWRmOWE2NTVmMzU=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:10:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "9c9d6fa1-935b-4993-8c37-b82d14e363f6" + ], + "Request-Id": [ + "9c9d6fa1-935b-4993-8c37-b82d14e363f6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ImportVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ImportVersion.json new file mode 100644 index 000000000000..348ded2b0e95 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ImportExportTests/ImportVersion.json @@ -0,0 +1,195 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"culture\": \"en-us\",\r\n \"domain\": \"Comics\",\r\n \"description\": \"New LUIS App\",\r\n \"usageScenario\": \"IoT\",\r\n \"name\": \"Import Version Test LUIS App\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "153" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"0645d086-d6a3-4a4b-9a9d-5efaab7bbd71\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:09:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/0645d086-d6a3-4a4b-9a9d-5efaab7bbd71" + ], + "Apim-Request-Id": [ + "70e0d0d9-2a66-4cb6-9b0e-2eaca2af3d86" + ], + "Request-Id": [ + "70e0d0d9-2a66-4cb6-9b0e-2eaca2af3d86" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/0645d086-d6a3-4a4b-9a9d-5efaab7bbd71" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/0645d086-d6a3-4a4b-9a9d-5efaab7bbd71/versions/import?versionId=0.2", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8wNjQ1ZDA4Ni1kNmEzLTRhNGItOWE5ZC01ZWZhYWI3YmJkNzEvdmVyc2lvbnMvaW1wb3J0P3ZlcnNpb25JZD0wLjI=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"LuisBot\",\r\n \"versionId\": \"0.1\",\r\n \"desc\": \"\",\r\n \"culture\": \"en-us\",\r\n \"intents\": [\r\n {\r\n \"name\": \"dateintent\"\r\n },\r\n {\r\n \"name\": \"Help\"\r\n },\r\n {\r\n \"name\": \"None\"\r\n },\r\n {\r\n \"name\": \"SearchHotels\"\r\n },\r\n {\r\n \"name\": \"ShowHotelsReviews\"\r\n }\r\n ],\r\n \"entities\": [\r\n {\r\n \"name\": \"AirportCode\"\r\n },\r\n {\r\n \"name\": \"Hotel\"\r\n }\r\n ],\r\n \"bing_entities\": [\r\n \"datetimeV2\",\r\n \"geography\"\r\n ],\r\n \"closedLists\": [],\r\n \"composites\": [],\r\n \"regex_features\": [\r\n {\r\n \"pattern\": \"[a-z]{3}\",\r\n \"activated\": true,\r\n \"name\": \"AirportCodeRegex\"\r\n }\r\n ],\r\n \"model_features\": [\r\n {\r\n \"activated\": true,\r\n \"name\": \"Near\",\r\n \"words\": \"near,around,close,nearby\",\r\n \"mode\": true\r\n },\r\n {\r\n \"activated\": true,\r\n \"name\": \"Show\",\r\n \"words\": \"show,find,look,search\",\r\n \"mode\": true\r\n }\r\n ],\r\n \"utterances\": [\r\n {\r\n \"text\": \"i need help\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"help me\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"tomorrow\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"search for hotels in seattle\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"what can i do?\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"next monday\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"next year\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"look for hotels in miami\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"show me hotels in california\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"show me the reviews of the amazing bot resort\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 23,\r\n \"endPos\": 44,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"can i see the reviews of extended bot hotel?\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 25,\r\n \"endPos\": 42,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find reviews of hotelxya\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 16,\r\n \"endPos\": 23,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me reviews of the amazing hotel\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 19,\r\n \"endPos\": 35,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what are the available options?\",\r\n \"intent\": \"Help\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"best hotels in seattle\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"hotels in los angeles\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"can you show me hotels from los angeles?\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": []\r\n },\r\n {\r\n \"text\": \"can you show me the reviews of the amazing resort & hotel\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 31,\r\n \"endPos\": 56,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what are the reviews of the hotel bot framework?\",\r\n \"intent\": \"ShowHotelsReviews\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 24,\r\n \"endPos\": 46,\r\n \"entity\": \"Hotel\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels near eze\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 17,\r\n \"endPos\": 19,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"where can i stay near nnn?\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 22,\r\n \"endPos\": 24,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show hotels near att airport\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 17,\r\n \"endPos\": 19,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels near agl\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 17,\r\n \"endPos\": 19,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotels around eze airport\",\r\n \"intent\": \"SearchHotels\",\r\n \"entities\": [\r\n {\r\n \"startPos\": 19,\r\n \"endPos\": 21,\r\n \"entity\": \"AirportCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"01/7\",\r\n \"intent\": \"dateintent\",\r\n \"entities\": []\r\n }\r\n ],\r\n \"luis_schema_version\": \"2.1.0\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "5105" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"0.2\"", + "ResponseHeaders": { + "Content-Length": [ + "5" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:09:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/0645d086-d6a3-4a4b-9a9d-5efaab7bbd71/versions/0.2" + ], + "Apim-Request-Id": [ + "ab45a363-4cf8-4d40-a281-c98a1ab3cc36" + ], + "Request-Id": [ + "ab45a363-4cf8-4d40-a281-c98a1ab3cc36" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/0645d086-d6a3-4a4b-9a9d-5efaab7bbd71/versions/0.2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/0645d086-d6a3-4a4b-9a9d-5efaab7bbd71", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy8wNjQ1ZDA4Ni1kNmEzLTRhNGItOWE5ZC01ZWZhYWI3YmJkNzE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:09:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "88abee9d-92ee-4d34-9eff-05ad5723d709" + ], + "Request-Id": [ + "88abee9d-92ee-4d34-9eff-05ad5723d709" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/AddClosedList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/AddClosedList.json new file mode 100644 index 000000000000..a3be6f30c57d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/AddClosedList.json @@ -0,0 +1,128 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"3d970e2c-3b2f-4700-83b7-e76e91d87cde\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/3d970e2c-3b2f-4700-83b7-e76e91d87cde" + ], + "Apim-Request-Id": [ + "634453f5-a64c-4506-9dbb-0913bff1efbf" + ], + "Request-Id": [ + "634453f5-a64c-4506-9dbb-0913bff1efbf" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/3d970e2c-3b2f-4700-83b7-e76e91d87cde" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/3d970e2c-3b2f-4700-83b7-e76e91d87cde", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzNkOTcwZTJjLTNiMmYtNDcwMC04M2I3LWU3NmU5MWQ4N2NkZQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "566b3382-0c51-42f4-b0a8-e33a0d58adfb" + ], + "Request-Id": [ + "566b3382-0c51-42f4-b0a8-e33a0d58adfb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/AddSubList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/AddSubList.json new file mode 100644 index 000000000000..3eef53120688 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/AddSubList.json @@ -0,0 +1,250 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"be246b36-2ba3-4903-be53-8daaf08ecdd5\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5" + ], + "Apim-Request-Id": [ + "f44be52f-bfef-462a-a245-5e19127fa1ac" + ], + "Request-Id": [ + "f44be52f-bfef-462a-a245-5e19127fa1ac" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5/sublists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2JlMjQ2YjM2LTJiYTMtNDkwMy1iZTUzLThkYWFmMDhlY2RkNS9zdWJsaXN0cw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "75" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "7654906", + "ResponseHeaders": { + "Content-Length": [ + "7" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5/sublists/7654906" + ], + "Apim-Request-Id": [ + "956c5caf-7cde-482d-a380-083c4ee4eceb" + ], + "Request-Id": [ + "956c5caf-7cde-482d-a380-083c4ee4eceb" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5/sublists/7654906" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2JlMjQ2YjM2LTJiYTMtNDkwMy1iZTUzLThkYWFmMDhlY2RkNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"be246b36-2ba3-4903-be53-8daaf08ecdd5\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654903,\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"ny\",\r\n \"new york\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654904,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654905,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654906,\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "417" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0d57a582-5daf-431f-9451-9f1a265a3e18" + ], + "Request-Id": [ + "0d57a582-5daf-431f-9451-9f1a265a3e18" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/be246b36-2ba3-4903-be53-8daaf08ecdd5", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2JlMjQ2YjM2LTJiYTMtNDkwMy1iZTUzLThkYWFmMDhlY2RkNQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c156f503-4623-4a56-8b91-cf981bec3ea3" + ], + "Request-Id": [ + "c156f503-4623-4a56-8b91-cf981bec3ea3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/DeleteClosedList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/DeleteClosedList.json new file mode 100644 index 000000000000..f805639e31a3 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/DeleteClosedList.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"0c6d2d03-c686-4c91-974f-6661dbb8f3b0\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/0c6d2d03-c686-4c91-974f-6661dbb8f3b0" + ], + "Apim-Request-Id": [ + "74f2126f-095b-4577-82ec-1ad8f87a4856" + ], + "Request-Id": [ + "74f2126f-095b-4577-82ec-1ad8f87a4856" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/0c6d2d03-c686-4c91-974f-6661dbb8f3b0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/0c6d2d03-c686-4c91-974f-6661dbb8f3b0", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzBjNmQyZDAzLWM2ODYtNGM5MS05NzRmLTY2NjFkYmI4ZjNiMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "5536297d-0565-4c8f-9e0a-0abe8f721844" + ], + "Request-Id": [ + "5536297d-0565-4c8f-9e0a-0abe8f721844" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6b44a1ae-5a42-4f49-9693-08685b88ee5a" + ], + "Request-Id": [ + "6b44a1ae-5a42-4f49-9693-08685b88ee5a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/DeleteSubList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/DeleteSubList.json new file mode 100644 index 000000000000..444e56aa6819 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/DeleteSubList.json @@ -0,0 +1,293 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"b6480e0e-039d-4310-967d-5e71c1ee808a\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/b6480e0e-039d-4310-967d-5e71c1ee808a" + ], + "Apim-Request-Id": [ + "9b5f03fd-b660-463a-8794-edfaf1049a16" + ], + "Request-Id": [ + "9b5f03fd-b660-463a-8794-edfaf1049a16" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/b6480e0e-039d-4310-967d-5e71c1ee808a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/b6480e0e-039d-4310-967d-5e71c1ee808a", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2I2NDgwZTBlLTAzOWQtNDMxMC05NjdkLTVlNzFjMWVlODA4YQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"b6480e0e-039d-4310-967d-5e71c1ee808a\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654919,\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"ny\",\r\n \"new york\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654920,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654921,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "da2d59fe-afd3-47fb-95df-4b60da5a6a17" + ], + "Request-Id": [ + "da2d59fe-afd3-47fb-95df-4b60da5a6a17" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/b6480e0e-039d-4310-967d-5e71c1ee808a", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2I2NDgwZTBlLTAzOWQtNDMxMC05NjdkLTVlNzFjMWVlODA4YQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"b6480e0e-039d-4310-967d-5e71c1ee808a\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654920,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654921,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "289" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0c7b7a82-b288-447a-aa6b-d9e5ca31fee4" + ], + "Request-Id": [ + "0c7b7a82-b288-447a-aa6b-d9e5ca31fee4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/b6480e0e-039d-4310-967d-5e71c1ee808a/sublists/7654919", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2I2NDgwZTBlLTAzOWQtNDMxMC05NjdkLTVlNzFjMWVlODA4YS9zdWJsaXN0cy83NjU0OTE5", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "625afad0-0f7a-4170-ae02-d0ea86369055" + ], + "Request-Id": [ + "625afad0-0f7a-4170-ae02-d0ea86369055" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/b6480e0e-039d-4310-967d-5e71c1ee808a", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2I2NDgwZTBlLTAzOWQtNDMxMC05NjdkLTVlNzFjMWVlODA4YQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "84c6d98f-db44-4906-a3c1-91b3018c512c" + ], + "Request-Id": [ + "84c6d98f-db44-4906-a3c1-91b3018c512c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/GetClosedList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/GetClosedList.json new file mode 100644 index 000000000000..2b35344cea60 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/GetClosedList.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"41b96f19-74d8-45e4-8630-8627b50842bf\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:48:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/41b96f19-74d8-45e4-8630-8627b50842bf" + ], + "Apim-Request-Id": [ + "0d6abf93-f046-45bd-be00-cad6c047b184" + ], + "Request-Id": [ + "0d6abf93-f046-45bd-be00-cad6c047b184" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/41b96f19-74d8-45e4-8630-8627b50842bf" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/41b96f19-74d8-45e4-8630-8627b50842bf", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzQxYjk2ZjE5LTc0ZDgtNDVlNC04NjMwLTg2MjdiNTA4NDJiZg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"41b96f19-74d8-45e4-8630-8627b50842bf\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654931,\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"ny\",\r\n \"new york\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654932,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654933,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:48:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "9eee2571-4df4-4b08-a28b-ac7f80368c6c" + ], + "Request-Id": [ + "9eee2571-4df4-4b08-a28b-ac7f80368c6c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/41b96f19-74d8-45e4-8630-8627b50842bf", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzQxYjk2ZjE5LTc0ZDgtNDVlNC04NjMwLTg2MjdiNTA4NDJiZg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:48:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "331c3235-d793-4d31-8b69-3ba5fb29a7a5" + ], + "Request-Id": [ + "331c3235-d793-4d31-8b69-3ba5fb29a7a5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/ListClosedLists.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/ListClosedLists.json new file mode 100644 index 000000000000..861961e47369 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/ListClosedLists.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"d56d22f2-5e0a-4c77-8731-d00d37640d9d\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/d56d22f2-5e0a-4c77-8731-d00d37640d9d" + ], + "Apim-Request-Id": [ + "1fa600c0-1baf-4e40-aecf-7cb8d8320dba" + ], + "Request-Id": [ + "1fa600c0-1baf-4e40-aecf-7cb8d8320dba" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/d56d22f2-5e0a-4c77-8731-d00d37640d9d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"d56d22f2-5e0a-4c77-8731-d00d37640d9d\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654916,\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"ny\",\r\n \"new york\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654917,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654918,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "358" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "25e20b51-8755-4517-9863-642ec678d418" + ], + "Request-Id": [ + "25e20b51-8755-4517-9863-642ec678d418" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/d56d22f2-5e0a-4c77-8731-d00d37640d9d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2Q1NmQyMmYyLTVlMGEtNGM3Ny04NzMxLWQwMGQzNzY0MGQ5ZA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "81bdb6c5-6cd3-4793-b819-30c75119f360" + ], + "Request-Id": [ + "81bdb6c5-6cd3-4793-b819-30c75119f360" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/PatchClosedList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/PatchClosedList.json new file mode 100644 index 000000000000..7444bda9a028 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/PatchClosedList.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"05c198b5-82f1-4c1d-84e2-e4affa38bba2\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/05c198b5-82f1-4c1d-84e2-e4affa38bba2" + ], + "Apim-Request-Id": [ + "7301efda-4da1-440f-bd4e-2b3ddaa92bf8" + ], + "Request-Id": [ + "7301efda-4da1-440f-bd4e-2b3ddaa92bf8" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/05c198b5-82f1-4c1d-84e2-e4affa38bba2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/05c198b5-82f1-4c1d-84e2-e4affa38bba2", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzA1YzE5OGI1LTgyZjEtNGMxZC04NGUyLWU0YWZmYTM4YmJhMg==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Florida\",\r\n \"list\": [\r\n \"fl\",\r\n \"florida\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "241" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1526cfd4-a5b1-493a-a027-2d15a0cb285e" + ], + "Request-Id": [ + "1526cfd4-a5b1-493a-a027-2d15a0cb285e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/05c198b5-82f1-4c1d-84e2-e4affa38bba2", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzA1YzE5OGI1LTgyZjEtNGMxZC04NGUyLWU0YWZmYTM4YmJhMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"05c198b5-82f1-4c1d-84e2-e4affa38bba2\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654907,\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"ny\",\r\n \"new york\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654908,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654909,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654910,\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654911,\r\n \"canonicalForm\": \"Florida\",\r\n \"list\": [\r\n \"fl\",\r\n \"florida\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "482" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "87dffc04-2dc0-46fb-a421-4ea469d2d367" + ], + "Request-Id": [ + "87dffc04-2dc0-46fb-a421-4ea469d2d367" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/05c198b5-82f1-4c1d-84e2-e4affa38bba2", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzA1YzE5OGI1LTgyZjEtNGMxZC04NGUyLWU0YWZmYTM4YmJhMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "30ae210b-e664-4bbf-bfe7-6fe3516bada1" + ], + "Request-Id": [ + "30ae210b-e664-4bbf-bfe7-6fe3516bada1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/UpdateClosedList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/UpdateClosedList.json new file mode 100644 index 000000000000..bb352f91d757 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/UpdateClosedList.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"069c8f8b-9d0c-4dca-8ab1-4c22580f8aac\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/069c8f8b-9d0c-4dca-8ab1-4c22580f8aac" + ], + "Apim-Request-Id": [ + "1a47a2e7-ffbf-4426-9e86-1be3ff4121c5" + ], + "Request-Id": [ + "1a47a2e7-ffbf-4426-9e86-1be3ff4121c5" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/069c8f8b-9d0c-4dca-8ab1-4c22580f8aac" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/069c8f8b-9d0c-4dca-8ab1-4c22580f8aac", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzA2OWM4ZjhiLTlkMGMtNGRjYS04YWIxLTRjMjI1ODBmOGFhYw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"New States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "156" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"069c8f8b-9d0c-4dca-8ab1-4c22580f8aac\",\r\n \"name\": \"New States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654915,\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "196" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3695ac7b-427c-46d6-a514-9a4be0dd03fa" + ], + "Request-Id": [ + "3695ac7b-427c-46d6-a514-9a4be0dd03fa" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/069c8f8b-9d0c-4dca-8ab1-4c22580f8aac", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzA2OWM4ZjhiLTlkMGMtNGRjYS04YWIxLTRjMjI1ODBmOGFhYw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"069c8f8b-9d0c-4dca-8ab1-4c22580f8aac\",\r\n \"name\": \"New States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654915,\r\n \"canonicalForm\": \"Texas\",\r\n \"list\": [\r\n \"tx\",\r\n \"texas\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "196" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "02513b95-633d-493a-80fb-b2a325d7f437" + ], + "Request-Id": [ + "02513b95-633d-493a-80fb-b2a325d7f437" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/069c8f8b-9d0c-4dca-8ab1-4c22580f8aac", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzLzA2OWM4ZjhiLTlkMGMtNGRjYS04YWIxLTRjMjI1ODBmOGFhYw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "43660af1-44bb-49b3-a1de-9fdd2020efec" + ], + "Request-Id": [ + "43660af1-44bb-49b3-a1de-9fdd2020efec" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/UpdateSubList.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/UpdateSubList.json new file mode 100644 index 000000000000..decfe268f9c0 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelClosedListsTests/UpdateSubList.json @@ -0,0 +1,299 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3Rz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subLists\": [\r\n {\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"WA\",\r\n \"Washington\"\r\n ]\r\n },\r\n {\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"CA\",\r\n \"California\",\r\n \"Calif.\",\r\n \"Cal.\"\r\n ]\r\n }\r\n ],\r\n \"name\": \"States\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "426" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"a2d27291-7b2b-4f35-81e1-5369dcf4f92d\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/a2d27291-7b2b-4f35-81e1-5369dcf4f92d" + ], + "Apim-Request-Id": [ + "fd962698-4bc1-4fb1-80aa-b583bcecec6c" + ], + "Request-Id": [ + "fd962698-4bc1-4fb1-80aa-b583bcecec6c" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/a2d27291-7b2b-4f35-81e1-5369dcf4f92d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/a2d27291-7b2b-4f35-81e1-5369dcf4f92d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2EyZDI3MjkxLTdiMmItNGYzNS04MWUxLTUzNjlkY2Y0ZjkyZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"a2d27291-7b2b-4f35-81e1-5369dcf4f92d\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654928,\r\n \"canonicalForm\": \"New York\",\r\n \"list\": [\r\n \"ny\",\r\n \"new york\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654929,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654930,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f2bfd485-8f76-4ef5-a251-0b5ecba7c904" + ], + "Request-Id": [ + "f2bfd485-8f76-4ef5-a251-0b5ecba7c904" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/a2d27291-7b2b-4f35-81e1-5369dcf4f92d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2EyZDI3MjkxLTdiMmItNGYzNS04MWUxLTUzNjlkY2Y0ZjkyZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"a2d27291-7b2b-4f35-81e1-5369dcf4f92d\",\r\n \"name\": \"States\",\r\n \"typeId\": 5,\r\n \"readableType\": \"Closed List Entity Extractor\",\r\n \"subLists\": [\r\n {\r\n \"id\": 7654928,\r\n \"canonicalForm\": \"New Yorkers\",\r\n \"list\": [\r\n \"NYC\",\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654929,\r\n \"canonicalForm\": \"Washington\",\r\n \"list\": [\r\n \"wa\",\r\n \"washington\"\r\n ]\r\n },\r\n {\r\n \"id\": 7654930,\r\n \"canonicalForm\": \"California\",\r\n \"list\": [\r\n \"ca\",\r\n \"california\",\r\n \"calif.\",\r\n \"cal.\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "60c5ebb6-d995-4194-aa32-b4c6c98a17d3" + ], + "Request-Id": [ + "60c5ebb6-d995-4194-aa32-b4c6c98a17d3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/a2d27291-7b2b-4f35-81e1-5369dcf4f92d/sublists/7654928", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2EyZDI3MjkxLTdiMmItNGYzNS04MWUxLTUzNjlkY2Y0ZjkyZC9zdWJsaXN0cy83NjU0OTI4", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"canonicalForm\": \"New Yorkers\",\r\n \"list\": [\r\n \"NYC\",\r\n \"NY\",\r\n \"New York\"\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "96" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3e414bb2-3813-49a4-95fd-72b5f2d31b6b" + ], + "Request-Id": [ + "3e414bb2-3813-49a4-95fd-72b5f2d31b6b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/closedlists/a2d27291-7b2b-4f35-81e1-5369dcf4f92d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb3NlZGxpc3RzL2EyZDI3MjkxLTdiMmItNGYzNS04MWUxLTUzNjlkY2Y0ZjkyZA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:47:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6a0803dd-ea9f-49f1-9343-257b7ec48e30" + ], + "Request-Id": [ + "6a0803dd-ea9f-49f1-9343-257b7ec48e30" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/AddIntent.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/AddIntent.json new file mode 100644 index 000000000000..35876fe5e8e9 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/AddIntent.json @@ -0,0 +1,182 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"TestIntent\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"efa1d957-1319-45b7-b6d3-c64773d05754\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:38:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/efa1d957-1319-45b7-b6d3-c64773d05754" + ], + "Apim-Request-Id": [ + "974d47a7-7069-43a5-bc84-5b2e7ddf90a3" + ], + "Request-Id": [ + "974d47a7-7069-43a5-bc84-5b2e7ddf90a3" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/efa1d957-1319-45b7-b6d3-c64773d05754" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"efa1d957-1319-45b7-b6d3-c64773d05754\",\r\n \"name\": \"TestIntent\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1764" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:38:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d6652abf-59d8-4870-8377-33868f693fe8" + ], + "Request-Id": [ + "d6652abf-59d8-4870-8377-33868f693fe8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/efa1d957-1319-45b7-b6d3-c64773d05754?deleteUtterances=false", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:38:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "42b6e58a-2340-4cf4-b366-7986ce613c0f" + ], + "Request-Id": [ + "42b6e58a-2340-4cf4-b366-7986ce613c0f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/DeleteIntent.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/DeleteIntent.json new file mode 100644 index 000000000000..9afc0fe7246d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/DeleteIntent.json @@ -0,0 +1,237 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"TestIntent\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"fd079296-49a9-4d06-a530-894cf72ff598\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/fd079296-49a9-4d06-a530-894cf72ff598" + ], + "Apim-Request-Id": [ + "bc069b14-6c9c-4fc5-9e64-bf474ab20544" + ], + "Request-Id": [ + "bc069b14-6c9c-4fc5-9e64-bf474ab20544" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/fd079296-49a9-4d06-a530-894cf72ff598" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"fd079296-49a9-4d06-a530-894cf72ff598\",\r\n \"name\": \"TestIntent\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1764" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "49f7566d-256f-4026-972c-04a7fe9c79c9" + ], + "Request-Id": [ + "49f7566d-256f-4026-972c-04a7fe9c79c9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "10974ad2-5239-41a5-840d-c902b89cbd76" + ], + "Request-Id": [ + "10974ad2-5239-41a5-840d-c902b89cbd76" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/fd079296-49a9-4d06-a530-894cf72ff598?deleteUtterances=false", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c73e4cff-f300-43dc-840e-9ae17f29ff2f" + ], + "Request-Id": [ + "c73e4cff-f300-43dc-840e-9ae17f29ff2f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/GetIntent.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/GetIntent.json new file mode 100644 index 000000000000..badb8b4182a6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/GetIntent.json @@ -0,0 +1,182 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"TestIntent\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"9a37cb08-6f9f-45fb-9732-b1e67c243137\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/9a37cb08-6f9f-45fb-9732-b1e67c243137" + ], + "Apim-Request-Id": [ + "46aaea36-7c87-4df1-9dc2-e455b9777a63" + ], + "Request-Id": [ + "46aaea36-7c87-4df1-9dc2-e455b9777a63" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/9a37cb08-6f9f-45fb-9732-b1e67c243137" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/9a37cb08-6f9f-45fb-9732-b1e67c243137", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvOWEzN2NiMDgtNmY5Zi00NWZiLTk3MzItYjFlNjdjMjQzMTM3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"9a37cb08-6f9f-45fb-9732-b1e67c243137\",\r\n \"name\": \"TestIntent\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c7fe1fbd-f4c7-421b-addf-6d8be45bcef8" + ], + "Request-Id": [ + "c7fe1fbd-f4c7-421b-addf-6d8be45bcef8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/9a37cb08-6f9f-45fb-9732-b1e67c243137?deleteUtterances=false", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "e0b4f700-62c6-4ff2-8190-f12b53d81228" + ], + "Request-Id": [ + "e0b4f700-62c6-4ff2-8190-f12b53d81228" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/GetIntentSuggestions.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/GetIntentSuggestions.json new file mode 100644 index 000000000000..a9d6346ad70d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/GetIntentSuggestions.json @@ -0,0 +1,237 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"TestIntent\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"265755e0-d653-4a89-a116-9f7130be8fb0\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:40:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/265755e0-d653-4a89-a116-9f7130be8fb0" + ], + "Apim-Request-Id": [ + "47bb29d7-1f6c-4571-abc4-c9c24c14419f" + ], + "Request-Id": [ + "47bb29d7-1f6c-4571-abc4-c9c24c14419f" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/265755e0-d653-4a89-a116-9f7130be8fb0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/265755e0-d653-4a89-a116-9f7130be8fb0", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvMjY1NzU1ZTAtZDY1My00YTg5LWExMTYtOWY3MTMwYmU4ZmIw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:40:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d21efbbb-5044-4e5d-87d1-92262ce6a185" + ], + "Request-Id": [ + "d21efbbb-5044-4e5d-87d1-92262ce6a185" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/265755e0-d653-4a89-a116-9f7130be8fb0/suggest?take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvMjY1NzU1ZTAtZDY1My00YTg5LWExMTYtOWY3MTMwYmU4ZmIwL3N1Z2dlc3Q/dGFrZT0xMDA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"text\": \"find airport zzz\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"zzz\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"zzz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"n\",\r\n \"tokenizedText\": [\r\n \"n\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find me hotels in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"hotels\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dme\",\r\n \"tokenizedText\": [\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"today\",\r\n \"tokenizedText\": [\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"06-02-17\",\r\n \"tokenizedText\": [\r\n \"06\",\r\n \"-\",\r\n \"02\",\r\n \"-\",\r\n \"17\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.47\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"06-02-17\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how is the weather in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"is\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, seattle\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"seattle\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"seattle\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in brasil\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"brasil\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"brasil\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"hello, what day is today?\",\r\n \"tokenizedText\": [\r\n \"hello\",\r\n \",\",\r\n \"what\",\r\n \"day\",\r\n \"is\",\r\n \"today\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me the weather\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"the\",\r\n \"weather\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"algo?\",\r\n \"tokenizedText\": [\r\n \"algo\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.32\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"dme airport\",\r\n \"tokenizedText\": [\r\n \"dme\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"barcelona hotels\",\r\n \"tokenizedText\": [\r\n \"barcelona\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.14\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"eze\",\r\n \"tokenizedText\": [\r\n \"eze\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"shiet\",\r\n \"tokenizedText\": [\r\n \"shiet\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"ok, find me an airport\",\r\n \"tokenizedText\": [\r\n \"ok\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"an\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search hotels, buenos aires\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tomorrow\",\r\n \"tokenizedText\": [\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.49\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in miami\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find deluxe room in 3 stars hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 8,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.25\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.16\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find airport dme\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"wat\",\r\n \"tokenizedText\": [\r\n \"wat\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"next monday\",\r\n \"tokenizedText\": [\r\n \"next\",\r\n \"monday\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"next monday\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"kansas\",\r\n \"tokenizedText\": [\r\n \"kansas\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"kansas\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"monday next week\",\r\n \"tokenizedText\": [\r\n \"monday\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.11\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"first show me the weather in miami\",\r\n \"tokenizedText\": [\r\n \"first\",\r\n \"show\",\r\n \"me\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"time\",\r\n \"is\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"05-28-2017\",\r\n \"tokenizedText\": [\r\n \"05\",\r\n \"-\",\r\n \"28\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.83\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"05-28-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"actionresult = \\\"weather in aisjj3o9f2\\\"\",\r\n \"tokenizedText\": [\r\n \"actionresult\",\r\n \"=\",\r\n \"\\\"\",\r\n \"weather\",\r\n \"in\",\r\n \"aisjj3o9f2\",\r\n \"\\\"\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.75\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"aisjj3o9f2\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"maybe find me an airport first\",\r\n \"tokenizedText\": [\r\n \"maybe\",\r\n \"find\",\r\n \"me\",\r\n \"an\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"what's the time in miami?\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"'\",\r\n \"s\",\r\n \"the\",\r\n \"time\",\r\n \"in\",\r\n \"miami\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"as\",\r\n \"tokenizedText\": [\r\n \"as\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"hey\",\r\n \"tokenizedText\": [\r\n \"hey\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"dude\",\r\n \"tokenizedText\": [\r\n \"dude\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"05-27-2017\",\r\n \"tokenizedText\": [\r\n \"05\",\r\n \"-\",\r\n \"27\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.83\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"05-27-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"5/17/2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"/\",\r\n \"17\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5/17/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"11/11/2017\",\r\n \"tokenizedText\": [\r\n \"11\",\r\n \"/\",\r\n \"11\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"11/11/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport lhr\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"lhr\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"lhr\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to barcelona\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in 9je9j29hfewd\",\r\n \"tokenizedText\": [\r\n \"weather\",\r\n \"in\",\r\n \"9je9j29hfewd\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"9je9j29hfewd\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hoteles, buenos aires\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hoteles\",\r\n \",\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.34\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a deluxe room in a 3 stars hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find a deluxe room in a 3 stars hotel in barcelona please\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"please\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"asdttt\",\r\n \"tokenizedText\": [\r\n \"asdttt\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"buenos aires\",\r\n \"tokenizedText\": [\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.15\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find me a hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, past tomorrow\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"past\",\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change hotel location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"airport\",\r\n \"tokenizedText\": [\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"1-1-2017\",\r\n \"tokenizedText\": [\r\n \"1\",\r\n \"-\",\r\n \"1\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.87\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"1-1-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find zzz airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"zzz\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"265755e0-d653-4a89-a116-9f7130be8fb0\",\r\n \"name\": \"TestIntent\",\r\n \"score\": -1.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"zzz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "69154" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:40:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6ee7ebce-0fad-454e-8700-7ee080e170ce" + ], + "Request-Id": [ + "6ee7ebce-0fad-454e-8700-7ee080e170ce" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/265755e0-d653-4a89-a116-9f7130be8fb0?deleteUtterances=false", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:40:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "9a843842-ad72-48af-90a3-a01f955fee66" + ], + "Request-Id": [ + "9a843842-ad72-48af-90a3-a01f955fee66" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/ListIntents.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/ListIntents.json new file mode 100644 index 000000000000..cf4634be1c6d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/ListIntents.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"f2d33a23-0c2b-4154-8aa5-63207ce1c055\",\r\n \"name\": \"TestIntent\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1764" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:34:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3f75bd50-b532-4855-95e6-d2404d81d300" + ], + "Request-Id": [ + "3f75bd50-b532-4855-95e6-d2404d81d300" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/UpdateIntent.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/UpdateIntent.json new file mode 100644 index 000000000000..82b66ece721c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelIntentsTests/UpdateIntent.json @@ -0,0 +1,298 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"TestIntent\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"81301e82-03a1-48ee-b6f7-ff27b15a4ae3\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/81301e82-03a1-48ee-b6f7-ff27b15a4ae3" + ], + "Apim-Request-Id": [ + "ef7fc7c3-447a-47e1-9ac3-6fe7e7f82865" + ], + "Request-Id": [ + "ef7fc7c3-447a-47e1-9ac3-6fe7e7f82865" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/81301e82-03a1-48ee-b6f7-ff27b15a4ae3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/81301e82-03a1-48ee-b6f7-ff27b15a4ae3", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvODEzMDFlODItMDNhMS00OGVlLWI2ZjctZmYyN2IxNWE0YWUz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"81301e82-03a1-48ee-b6f7-ff27b15a4ae3\",\r\n \"name\": \"TestIntent\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ad439747-997b-4214-87cb-ba1e39785ee0" + ], + "Request-Id": [ + "ad439747-997b-4214-87cb-ba1e39785ee0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/81301e82-03a1-48ee-b6f7-ff27b15a4ae3", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvODEzMDFlODItMDNhMS00OGVlLWI2ZjctZmYyN2IxNWE0YWUz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"81301e82-03a1-48ee-b6f7-ff27b15a4ae3\",\r\n \"name\": \"UpdateTest\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c3aceeeb-46f2-4779-bd5d-9877bd92d1e4" + ], + "Request-Id": [ + "c3aceeeb-46f2-4779-bd5d-9877bd92d1e4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/81301e82-03a1-48ee-b6f7-ff27b15a4ae3", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvODEzMDFlODItMDNhMS00OGVlLWI2ZjctZmYyN2IxNWE0YWUz", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"UpdateTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "4e0650a2-6586-4dc2-be89-8c546840e93d" + ], + "Request-Id": [ + "4e0650a2-6586-4dc2-be89-8c546840e93d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/81301e82-03a1-48ee-b6f7-ff27b15a4ae3?deleteUtterances=false", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:39:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b14ae7f1-874c-4da1-bd0d-c6fb12a16ed9" + ], + "Request-Id": [ + "b14ae7f1-874c-4da1-bd0d-c6fb12a16ed9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltDomain.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltDomain.json new file mode 100644 index 000000000000..e936944095a8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltDomain.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:44:14Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 14,\r\n \"entitiesCount\": 12,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1015" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "4fc6aac3-2028-45d8-844c-84d71bf6441f" + ], + "Request-Id": [ + "4fc6aac3-2028-45d8-844c-84d71bf6441f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZG9tYWlucw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Gaming\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "74bf5af1-933c-4697-aaad-45aecb6c76b6" + ], + "Request-Id": [ + "74bf5af1-933c-4697-aaad-45aecb6c76b6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltmodels", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0bW9kZWxz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n },\r\n {\r\n \"id\": \"f4501b58-fdd1-4cfa-ad66-edb88773654d\",\r\n \"name\": \"Gaming.Contact\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"Contact\"\r\n },\r\n {\r\n \"id\": \"6ebd2c62-b6a9-4aba-9d9b-8e6e41a4fc55\",\r\n \"name\": \"Gaming.InviteParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"InviteParty\"\r\n },\r\n {\r\n \"id\": \"60375527-bd4a-4369-80cf-c2da84210af0\",\r\n \"name\": \"Gaming.LeaveParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"LeaveParty\"\r\n },\r\n {\r\n \"id\": \"2b2f03b4-e516-4db3-8390-ad36e082c958\",\r\n \"name\": \"Gaming.StartParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"StartParty\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "2301" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "bbb230a4-561d-42f4-9d7a-20bd40ed3bbf" + ], + "Request-Id": [ + "bbb230a4-561d-42f4-9d7a-20bd40ed3bbf" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltEntity.json new file mode 100644 index 000000000000..1ec7c830c3cd --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:44:03Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 14,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1015" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1df2e5e4-0c61-40bd-b146-dadc721dee41" + ], + "Request-Id": [ + "1df2e5e4-0c61-40bd-b146-dadc721dee41" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZW50aXRpZXM=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Camera\",\r\n \"modelName\": \"AppName\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "57" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltentities/2f3d2a83-30b6-40ea-9e82-4fff235d14ef" + ], + "Apim-Request-Id": [ + "cd1f1b23-fb0d-411c-a5c1-531560bf671f" + ], + "Request-Id": [ + "cd1f1b23-fb0d-411c-a5c1-531560bf671f" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltentities/2f3d2a83-30b6-40ea-9e82-4fff235d14ef" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZW50aXRpZXM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n },\r\n {\r\n \"id\": \"f4501b58-fdd1-4cfa-ad66-edb88773654d\",\r\n \"name\": \"Gaming.Contact\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"Contact\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "759" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ba3bca5c-1fb6-4d5a-8361-1c7f1d0a7e06" + ], + "Request-Id": [ + "ba3bca5c-1fb6-4d5a-8361-1c7f1d0a7e06" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltIntent.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltIntent.json new file mode 100644 index 000000000000..cb4f94502a9c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/AddCustomPrebuiltIntent.json @@ -0,0 +1,237 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:48:43Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:48:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "8986831e-6a19-48a3-8cd8-eb6cfeb76dbd" + ], + "Request-Id": [ + "8986831e-6a19-48a3-8cd8-eb6cfeb76dbd" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltintents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0aW50ZW50cw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Calendar\",\r\n \"modelName\": \"Add\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "55" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"50901b7e-e8ad-4caa-98ae-bca72dad36b2\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:48:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltintents/50901b7e-e8ad-4caa-98ae-bca72dad36b2" + ], + "Apim-Request-Id": [ + "22c2b1a5-88b0-4e86-838a-69d5936d9bb0" + ], + "Request-Id": [ + "22c2b1a5-88b0-4e86-838a-69d5936d9bb0" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltintents/50901b7e-e8ad-4caa-98ae-bca72dad36b2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltintents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0aW50ZW50cw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"50901b7e-e8ad-4caa-98ae-bca72dad36b2\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "773" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:48:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1adb2af2-3ae9-4645-a464-59181341bb3b" + ], + "Request-Id": [ + "1adb2af2-3ae9-4645-a464-59181341bb3b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/50901b7e-e8ad-4caa-98ae-bca72dad36b2?deleteUtterances=false", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:48:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d2e00563-578e-4e90-9e97-8937cafbe2b8" + ], + "Request-Id": [ + "d2e00563-578e-4e90-9e97-8937cafbe2b8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/DeleteCustomPrebuiltDomain.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/DeleteCustomPrebuiltDomain.json new file mode 100644 index 000000000000..05b3a7c1b365 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/DeleteCustomPrebuiltDomain.json @@ -0,0 +1,287 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:50:15Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:51:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "28164510-29e3-4d65-ab97-b3e5a8b03880" + ], + "Request-Id": [ + "28164510-29e3-4d65-ab97-b3e5a8b03880" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZG9tYWlucw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Gaming\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n \"fac134f0-2fbc-4a0a-97e9-6078643b4142\",\r\n \"dbe74e5c-52d9-4ced-b3c3-3781aa93b858\",\r\n \"c61f7313-d4f8-4138-ae19-a5656bf4f25e\",\r\n \"80c2cd04-90ef-4751-b484-747fd3b8514b\"\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "157" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:52:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "55505221-e912-45b1-9b2e-26b702b0596c" + ], + "Request-Id": [ + "55505221-e912-45b1-9b2e-26b702b0596c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltmodels", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0bW9kZWxz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n },\r\n {\r\n \"id\": \"80c2cd04-90ef-4751-b484-747fd3b8514b\",\r\n \"name\": \"Gaming.Contact\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"Contact\"\r\n },\r\n {\r\n \"id\": \"fac134f0-2fbc-4a0a-97e9-6078643b4142\",\r\n \"name\": \"Gaming.InviteParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"InviteParty\"\r\n },\r\n {\r\n \"id\": \"dbe74e5c-52d9-4ced-b3c3-3781aa93b858\",\r\n \"name\": \"Gaming.LeaveParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"LeaveParty\"\r\n },\r\n {\r\n \"id\": \"c61f7313-d4f8-4138-ae19-a5656bf4f25e\",\r\n \"name\": \"Gaming.StartParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"StartParty\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1931" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:52:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "fcf3c640-de49-4675-93af-e9a5ec416fbe" + ], + "Request-Id": [ + "fcf3c640-de49-4675-93af-e9a5ec416fbe" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltmodels", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0bW9kZWxz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1160" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:52:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "020ccf5a-880a-4179-9216-f9c447980bfc" + ], + "Request-Id": [ + "020ccf5a-880a-4179-9216-f9c447980bfc" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltdomains/Gaming", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZG9tYWlucy9HYW1pbmc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:52:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f5cb8402-c4e5-4687-bbf5-1659236e6d7e" + ], + "Request-Id": [ + "f5cb8402-c4e5-4687-bbf5-1659236e6d7e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltEntities.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltEntities.json new file mode 100644 index 000000000000..78bed94c0d63 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltEntities.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:44:14Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 14,\r\n \"entitiesCount\": 12,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1015" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "cd1ebd13-aaaf-4105-8929-b01908c3c3ff" + ], + "Request-Id": [ + "cd1ebd13-aaaf-4105-8929-b01908c3c3ff" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZG9tYWlucw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Gaming\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6248ac6c-ae9c-427b-a1f8-66f4f27e2493" + ], + "Request-Id": [ + "6248ac6c-ae9c-427b-a1f8-66f4f27e2493" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZW50aXRpZXM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n },\r\n {\r\n \"id\": \"f4501b58-fdd1-4cfa-ad66-edb88773654d\",\r\n \"name\": \"Gaming.Contact\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"Contact\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "759" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "99ed668c-553d-402d-ac30-7a21d657c981" + ], + "Request-Id": [ + "99ed668c-553d-402d-ac30-7a21d657c981" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltIntents.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltIntents.json new file mode 100644 index 000000000000..a690acc38f4a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltIntents.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:40:43Z\",\r\n \"lastTrainedDateTime\": \"2017-12-12T21:59:11Z\",\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 11,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1033" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:43:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "cb74a8d4-3c4a-456f-8cee-dfa60a339448" + ], + "Request-Id": [ + "cb74a8d4-3c4a-456f-8cee-dfa60a339448" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZG9tYWlucw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Gaming\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n \"6ebd2c62-b6a9-4aba-9d9b-8e6e41a4fc55\",\r\n \"60375527-bd4a-4369-80cf-c2da84210af0\",\r\n \"2b2f03b4-e516-4db3-8390-ad36e082c958\",\r\n \"f4501b58-fdd1-4cfa-ad66-edb88773654d\"\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "157" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "e973e86c-47e0-4fb5-a6a8-dacdae5ecc1a" + ], + "Request-Id": [ + "e973e86c-47e0-4fb5-a6a8-dacdae5ecc1a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltintents", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0aW50ZW50cw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"6ebd2c62-b6a9-4aba-9d9b-8e6e41a4fc55\",\r\n \"name\": \"Gaming.InviteParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"InviteParty\"\r\n },\r\n {\r\n \"id\": \"60375527-bd4a-4369-80cf-c2da84210af0\",\r\n \"name\": \"Gaming.LeaveParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"LeaveParty\"\r\n },\r\n {\r\n \"id\": \"2b2f03b4-e516-4db3-8390-ad36e082c958\",\r\n \"name\": \"Gaming.StartParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"StartParty\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1543" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "48c88ffb-d43e-48b6-a8b6-ed308ecc8f26" + ], + "Request-Id": [ + "48c88ffb-d43e-48b6-a8b6-ed308ecc8f26" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltModels.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltModels.json new file mode 100644 index 000000000000..87e1fbafce35 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltDomainTests/ListCustomPrebuiltModels.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T18:44:03Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"11be6373fca44ded80fbe2afa8597c18\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 14,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1015" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c5e55295-85e6-42c7-85eb-e0dcd783e456" + ], + "Request-Id": [ + "c5e55295-85e6-42c7-85eb-e0dcd783e456" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltdomains", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0ZG9tYWlucw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"domainName\": \"Calendar\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "cdc2865f-b96b-44e7-8bd9-21b3c8cfb34e" + ], + "Request-Id": [ + "cdc2865f-b96b-44e7-8bd9-21b3c8cfb34e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/customprebuiltmodels", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2N1c3RvbXByZWJ1aWx0bW9kZWxz", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Add\"\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Find\"\r\n },\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"f4501b58-fdd1-4cfa-ad66-edb88773654d\",\r\n \"name\": \"Gaming.Contact\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"Contact\"\r\n },\r\n {\r\n \"id\": \"6ebd2c62-b6a9-4aba-9d9b-8e6e41a4fc55\",\r\n \"name\": \"Gaming.InviteParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"InviteParty\"\r\n },\r\n {\r\n \"id\": \"60375527-bd4a-4369-80cf-c2da84210af0\",\r\n \"name\": \"Gaming.LeaveParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"LeaveParty\"\r\n },\r\n {\r\n \"id\": \"2b2f03b4-e516-4db3-8390-ad36e082c958\",\r\n \"name\": \"Gaming.StartParty\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Gaming\",\r\n \"customPrebuiltModelName\": \"StartParty\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "2114" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 18:44:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1410035a-ca17-4180-86bb-b381711b0ea9" + ], + "Request-Id": [ + "1410035a-ca17-4180-86bb-b381711b0ea9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/AddPrebuilt.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/AddPrebuilt.json new file mode 100644 index 000000000000..e9ced338cac4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/AddPrebuilt.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n \"number\",\r\n \"ordinal\"\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"e6539c7f-73b5-45ce-888e-193709054789\",\r\n \"name\": \"number\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"05a35d95-990c-4c0d-905a-2d7a5366fdac\",\r\n \"name\": \"ordinal\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "234" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d7eaa116-35eb-493a-a75b-c1bd8b43f00d" + ], + "Request-Id": [ + "d7eaa116-35eb-493a-a75b-c1bd8b43f00d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/e6539c7f-73b5-45ce-888e-193709054789", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cy9lNjUzOWM3Zi03M2I1LTQ1Y2UtODg4ZS0xOTM3MDkwNTQ3ODk=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3912a7d7-9f72-4139-8b98-367fc1f3ad1f" + ], + "Request-Id": [ + "3912a7d7-9f72-4139-8b98-367fc1f3ad1f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/05a35d95-990c-4c0d-905a-2d7a5366fdac", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cy8wNWEzNWQ5NS05OTBjLTRjMGQtOTA1YS0yZDdhNTM2NmZkYWM=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7f360ee8-feac-4286-99c8-1835b12d96cf" + ], + "Request-Id": [ + "7f360ee8-feac-4286-99c8-1835b12d96cf" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/DeletePrebuilt.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/DeletePrebuilt.json new file mode 100644 index 000000000000..f66d29779b97 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/DeletePrebuilt.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n \"number\"\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "16" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"bf2e0ac0-577c-46e9-8663-767a14c7c112\",\r\n \"name\": \"number\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "117" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f14f19e6-fb98-4f9f-9a4f-e40874f6f3a0" + ], + "Request-Id": [ + "f14f19e6-fb98-4f9f-9a4f-e40874f6f3a0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/bf2e0ac0-577c-46e9-8663-767a14c7c112", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cy9iZjJlMGFjMC01NzdjLTQ2ZTktODY2My03NjdhMTRjN2MxMTI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7047ebeb-95ae-4783-bb5e-89de008d0c87" + ], + "Request-Id": [ + "7047ebeb-95ae-4783-bb5e-89de008d0c87" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cz9za2lwPTAmdGFrZT0xMDA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "119" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "bc12d4ee-c043-4b23-a1bd-d6f1acc4a2ea" + ], + "Request-Id": [ + "bc12d4ee-c043-4b23-a1bd-d6f1acc4a2ea" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/GetPrebuilt.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/GetPrebuilt.json new file mode 100644 index 000000000000..56b2ad74a7d6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/GetPrebuilt.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n \"number\"\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "16" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"bf57bdf4-16e0-4a87-b3b4-85dfd450025f\",\r\n \"name\": \"number\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "117" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b21e7854-987c-4133-8161-f3d76f4ebf07" + ], + "Request-Id": [ + "b21e7854-987c-4133-8161-f3d76f4ebf07" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/bf57bdf4-16e0-4a87-b3b4-85dfd450025f", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cy9iZjU3YmRmNC0xNmUwLTRhODctYjNiNC04NWRmZDQ1MDAyNWY=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"bf57bdf4-16e0-4a87-b3b4-85dfd450025f\",\r\n \"name\": \"number\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "115" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7edf5a6a-1e52-411d-8599-b7c8009c1d98" + ], + "Request-Id": [ + "7edf5a6a-1e52-411d-8599-b7c8009c1d98" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/bf57bdf4-16e0-4a87-b3b4-85dfd450025f", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cy9iZjU3YmRmNC0xNmUwLTRhODctYjNiNC04NWRmZDQ1MDAyNWY=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a67b99f0-2ba4-4e83-aa03-02a21063bd08" + ], + "Request-Id": [ + "a67b99f0-2ba4-4e83-aa03-02a21063bd08" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/ListPrebuiltEntities.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/ListPrebuiltEntities.json new file mode 100644 index 000000000000..7b403586b5e6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/ListPrebuiltEntities.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/listprebuilts", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2xpc3RwcmVidWlsdHM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"name\": \"number\",\r\n \"description\": \"A cardinal number in numeric or text form\",\r\n \"examples\": \"ten, forty two, 3.141, 10K\"\r\n },\r\n {\r\n \"name\": \"ordinal\",\r\n \"description\": \"An ordinal number in numeric or text form\",\r\n \"examples\": \"first, second, tenth, 1st, 2nd, 10th\"\r\n },\r\n {\r\n \"name\": \"temperature\",\r\n \"description\": \"A temperature in celsius or fahrenheit\",\r\n \"examples\": \"32F, 34 degrees celsius, 2 deg C\"\r\n },\r\n {\r\n \"name\": \"dimension\",\r\n \"description\": \"Spacial dimensions, including length, distance, area, and volume\",\r\n \"examples\": \"2 miles, 650 square kilometres, 9,350 feet\"\r\n },\r\n {\r\n \"name\": \"money\",\r\n \"description\": \"Monetary amounts, including currency\",\r\n \"examples\": \"1000.00 US dollars, £20.00, $ 67.5 B\"\r\n },\r\n {\r\n \"name\": \"age\",\r\n \"description\": \"Age of a person or thing\",\r\n \"examples\": \"10-month-old, 19 years old, 58 year-old\"\r\n },\r\n {\r\n \"name\": \"geography\",\r\n \"description\": \"Continents, Countries, Cities, Post codes, and other points of interest\",\r\n \"examples\": \"Antarctica, Portugal, Dubai, Sanjiang County, Lake Pontchartrain, CB3 0DS\"\r\n },\r\n {\r\n \"name\": \"encyclopedia\",\r\n \"description\": \"People, organizations, products, and hundreds of other types found in an encyclopedia\",\r\n \"examples\": \"Acer Aspire, Harvard Business School, Jagiellonian Rowing Club, Steve Miller Band, Beijing Capital International Airport, Amsterdam Light Festival, Microsoft\"\r\n },\r\n {\r\n \"name\": \"percentage\",\r\n \"description\": \"A percentage, using the symbol % or the word \\\"percent\\\"\",\r\n \"examples\": \"10%, 5.6 percent\"\r\n },\r\n {\r\n \"name\": \"datetime\",\r\n \"description\": \"Dates and times, resolved to a canonical form\",\r\n \"examples\": \"June 23, 1976, Jul 11 2012, 7 AM, 6:49 PM, tomorrow at 7 AM\"\r\n },\r\n {\r\n \"name\": \"email\",\r\n \"description\": \"Email addresses\",\r\n \"examples\": \"user@site.net, user_name@mysite.com.eg, user.Name12@website.net\"\r\n },\r\n {\r\n \"name\": \"url\",\r\n \"description\": \"Websites URLs and links\",\r\n \"examples\": \"www.website.com, http://website.net?name=my_name&age=10, https://www.mywebsite.net.eg/page\"\r\n },\r\n {\r\n \"name\": \"phonenumber\",\r\n \"description\": \"US phone numbers\",\r\n \"examples\": \"123-456-7890, +1 123 456 789, (123)456-789\"\r\n },\r\n {\r\n \"name\": \"datetimeV2\",\r\n \"description\": \"Dates and times, resolved to a canonical form\",\r\n \"examples\": \"June 23, 1976, Jul 11 2012, 7 AM, 6:49 PM, tomorrow at 7 AM\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "2083" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7b1e5908-b8e3-43a5-8a53-aa692426adc2" + ], + "Request-Id": [ + "7b1e5908-b8e3-43a5-8a53-aa692426adc2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/ListPrebuilts.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/ListPrebuilts.json new file mode 100644 index 000000000000..9075ebb657af --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelPrebuiltsTests/ListPrebuilts.json @@ -0,0 +1,177 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n \"number\"\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "16" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"b2ccad31-0279-472d-8380-fcc4ee3d2c37\",\r\n \"name\": \"number\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "117" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ad1ccf49-bcfc-4e39-9434-6e96109c4d6a" + ], + "Request-Id": [ + "ad1ccf49-bcfc-4e39-9434-6e96109c4d6a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cz9za2lwPTAmdGFrZT0xMDA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"b2ccad31-0279-472d-8380-fcc4ee3d2c37\",\r\n \"name\": \"number\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "235" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "08320463-b3f2-47c0-bbf9-37100ce90b35" + ], + "Request-Id": [ + "08320463-b3f2-47c0-bbf9-37100ce90b35" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/b2ccad31-0279-472d-8380-fcc4ee3d2c37", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3ByZWJ1aWx0cy9iMmNjYWQzMS0wMjc5LTQ3MmQtODM4MC1mY2M0ZWUzZDJjMzc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 19:44:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d7fd4c57-22e2-424d-8cee-a3d740e06fd5" + ], + "Request-Id": [ + "d7fd4c57-22e2-424d-8cee-a3d740e06fd5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/AddEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/AddEntity.json new file mode 100644 index 000000000000..81d23322ca77 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/AddEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"New Entity Test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"1da2a309-0297-4752-962a-1883b5567196\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1da2a309-0297-4752-962a-1883b5567196" + ], + "Apim-Request-Id": [ + "d9a8be45-2741-496c-bb1b-f376c5d2fcb2" + ], + "Request-Id": [ + "d9a8be45-2741-496c-bb1b-f376c5d2fcb2" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1da2a309-0297-4752-962a-1883b5567196" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1da2a309-0297-4752-962a-1883b5567196", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFkYTJhMzA5LTAyOTctNDc1Mi05NjJhLTE4ODNiNTU2NzE5Ng==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"1da2a309-0297-4752-962a-1883b5567196\",\r\n \"name\": \"New Entity Test\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "115" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "39cbba37-f53a-44e5-9ed7-b0f04eca5558" + ], + "Request-Id": [ + "39cbba37-f53a-44e5-9ed7-b0f04eca5558" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1da2a309-0297-4752-962a-1883b5567196", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFkYTJhMzA5LTAyOTctNDc1Mi05NjJhLTE4ODNiNTU2NzE5Ng==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f12e847a-4e1f-4530-ac79-6b5ad651dcee" + ], + "Request-Id": [ + "f12e847a-4e1f-4530-ac79-6b5ad651dcee" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/DeleteEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/DeleteEntity.json new file mode 100644 index 000000000000..e2d0e62db1dd --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/DeleteEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Delete Entity Test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"657437e1-52f6-43ea-a129-7ca6864a8e36\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/657437e1-52f6-43ea-a129-7ca6864a8e36" + ], + "Apim-Request-Id": [ + "e061d379-554d-4b0a-b56d-202ee56ee9fb" + ], + "Request-Id": [ + "e061d379-554d-4b0a-b56d-202ee56ee9fb" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/657437e1-52f6-43ea-a129-7ca6864a8e36" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/657437e1-52f6-43ea-a129-7ca6864a8e36", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzY1NzQzN2UxLTUyZjYtNDNlYS1hMTI5LTdjYTY4NjRhOGUzNg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "507df0ad-718d-45f0-9c8e-87cbf93b3237" + ], + "Request-Id": [ + "507df0ad-718d-45f0-9c8e-87cbf93b3237" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"name\": \"Category\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"name\": \"Code\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"name\": \"RoomType\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "708" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "54ae5874-5214-4271-945a-a23445c93543" + ], + "Request-Id": [ + "54ae5874-5214-4271-945a-a23445c93543" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntity.json new file mode 100644 index 000000000000..ac2f775a1159 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"New Entity Test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"ca57c698-f56e-4b2c-8b45-24f16c1d8d91\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/ca57c698-f56e-4b2c-8b45-24f16c1d8d91" + ], + "Apim-Request-Id": [ + "62c7128d-59bc-4b01-bb20-07be2b2ef842" + ], + "Request-Id": [ + "62c7128d-59bc-4b01-bb20-07be2b2ef842" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/ca57c698-f56e-4b2c-8b45-24f16c1d8d91" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/ca57c698-f56e-4b2c-8b45-24f16c1d8d91", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2NhNTdjNjk4LWY1NmUtNGIyYy04YjQ1LTI0ZjE2YzFkOGQ5MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"ca57c698-f56e-4b2c-8b45-24f16c1d8d91\",\r\n \"name\": \"New Entity Test\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "115" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "4c7d3ab8-4016-4d4e-a067-29496dd117ac" + ], + "Request-Id": [ + "4c7d3ab8-4016-4d4e-a067-29496dd117ac" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/ca57c698-f56e-4b2c-8b45-24f16c1d8d91", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2NhNTdjNjk4LWY1NmUtNGIyYy04YjQ1LTI0ZjE2YzFkOGQ5MQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "dc76f4cc-596a-42d1-a272-488e508aa798" + ], + "Request-Id": [ + "dc76f4cc-596a-42d1-a272-488e508aa798" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntitySuggestions_ReturnsEmpty.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntitySuggestions_ReturnsEmpty.json new file mode 100644 index 000000000000..922e9eb76807 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntitySuggestions_ReturnsEmpty.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Suggestions Entity Test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "41" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"c43de104-9775-4131-8c8d-c1d40fd9ab15\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/c43de104-9775-4131-8c8d-c1d40fd9ab15" + ], + "Apim-Request-Id": [ + "0c15156d-6936-4577-84f7-989a58fd21b7" + ], + "Request-Id": [ + "0c15156d-6936-4577-84f7-989a58fd21b7" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/c43de104-9775-4131-8c8d-c1d40fd9ab15" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/c43de104-9775-4131-8c8d-c1d40fd9ab15/suggest?take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2M0M2RlMTA0LTk3NzUtNDEzMS04YzhkLWMxZDQwZmQ5YWIxNS9zdWdnZXN0P3Rha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"text\": \"tomorrow\",\r\n \"tokenizedText\": [\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.49\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"mia\",\r\n \"tokenizedText\": [\r\n \"mia\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"today\",\r\n \"tokenizedText\": [\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find zzz airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"zzz\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"zzz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"5-5-2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"-\",\r\n \"5\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5-5-2017\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5-5-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport zzz\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"zzz\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"zzz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time miami\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.13\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"shiet\",\r\n \"tokenizedText\": [\r\n \"shiet\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change location to barcelona\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel from today till next monday\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"from\",\r\n \"today\",\r\n \"till\",\r\n \"next\",\r\n \"monday\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"next monday\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"next monday\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"kkk\",\r\n \"tokenizedText\": [\r\n \"kkk\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"maybe find me an airport first\",\r\n \"tokenizedText\": [\r\n \"maybe\",\r\n \"find\",\r\n \"me\",\r\n \"an\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"show me the weather\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"the\",\r\n \"weather\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search for 5 start hotels in jujuy\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"start\",\r\n \"hotels\",\r\n \"in\",\r\n \"jujuy\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"5\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 start\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"jujuy\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona for today\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"for\",\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"buenos aires\",\r\n \"tokenizedText\": [\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.15\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search hotels, \\\"past tomorrow\\\"\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"\\\"\",\r\n \"past\",\r\n \"tomorrow\",\r\n \"\\\"\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find a deluxe room in a 3 stars hotel in barcelona please\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"please\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 10,\r\n \"endTokenIndex\": 10,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"five star hotels\",\r\n \"tokenizedText\": [\r\n \"five\",\r\n \"star\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"eze\",\r\n \"tokenizedText\": [\r\n \"eze\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"adweqwe\",\r\n \"tokenizedText\": [\r\n \"adweqwe\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"how is the weather in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"is\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 stars hotels in barcelo\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"stars\",\r\n \"hotels\",\r\n \"in\",\r\n \"barcelo\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"barcelo\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport lhr\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"lhr\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"lhr\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dme airport\",\r\n \"tokenizedText\": [\r\n \"dme\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, buenos aires\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"5/17/2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"/\",\r\n \"17\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5/17/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"loz\",\r\n \"tokenizedText\": [\r\n \"loz\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"loz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"wat\",\r\n \"tokenizedText\": [\r\n \"wat\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"time in brasil\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"brasil\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"brasil\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"10/10/2017\",\r\n \"tokenizedText\": [\r\n \"10\",\r\n \"/\",\r\n \"10\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"10/10/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me airport juj\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in madrid for today\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"madrid\",\r\n \"for\",\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"monday next week\",\r\n \"tokenizedText\": [\r\n \"monday\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.11\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"05-28-2017\",\r\n \"tokenizedText\": [\r\n \"05\",\r\n \"-\",\r\n \"28\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.83\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"05-28-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hoteles, buenos aires\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hoteles\",\r\n \",\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, tomorrow\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find aaa airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"aaa\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"aaa\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dude\",\r\n \"tokenizedText\": [\r\n \"dude\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"lugano\",\r\n \"tokenizedText\": [\r\n \"lugano\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"dme\",\r\n \"tokenizedText\": [\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"look for hotels\",\r\n \"tokenizedText\": [\r\n \"look\",\r\n \"for\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"luxemburg\",\r\n \"tokenizedText\": [\r\n \"luxemburg\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"1-1-2017\",\r\n \"tokenizedText\": [\r\n \"1\",\r\n \"-\",\r\n \"1\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.87\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.06\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"1-1-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in new york\",\r\n \"tokenizedText\": [\r\n \"tell\",\r\n \"me\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"new\",\r\n \"york\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"new york\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"new york\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tac\",\r\n \"tokenizedText\": [\r\n \"tac\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"what time is in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"time\",\r\n \"is\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me airport with code bcn\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"bcn\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"bcn\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 3 stars deluxe room in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"3\",\r\n \"stars\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in 9je9j29hfewd\",\r\n \"tokenizedText\": [\r\n \"weather\",\r\n \"in\",\r\n \"9je9j29hfewd\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"9je9j29hfewd\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport with code atl\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"atl\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"atl\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.34\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for airport\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"algo?\",\r\n \"tokenizedText\": [\r\n \"algo\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.32\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "65559" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3ff82d1d-4d45-42f2-a7c0-e200301c395a" + ], + "Request-Id": [ + "3ff82d1d-4d45-42f2-a7c0-e200301c395a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/c43de104-9775-4131-8c8d-c1d40fd9ab15", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2M0M2RlMTA0LTk3NzUtNDEzMS04YzhkLWMxZDQwZmQ5YWIxNQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b1575031-e177-4d67-879a-f3128f4c8d6e" + ], + "Request-Id": [ + "b1575031-e177-4d67-879a-f3128f4c8d6e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntitySuggestions_ReturnsResults.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntitySuggestions_ReturnsResults.json new file mode 100644 index 000000000000..577118bcf6d4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/GetEntitySuggestions_ReturnsResults.json @@ -0,0 +1,116 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"name\": \"Category\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"name\": \"Code\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"name\": \"RoomType\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "708" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "11dfc812-cbe9-4a04-b591-045d722afcb7" + ], + "Request-Id": [ + "11dfc812-cbe9-4a04-b591-045d722afcb7" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/14c2528c-287d-45f4-939f-626d2a659aeb/suggest?take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzE0YzI1MjhjLTI4N2QtNDVmNC05MzlmLTYyNmQyYTY1OWFlYi9zdWdnZXN0P3Rha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"text\": \"search hotels, seattle\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"seattle\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"seattle\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"05-27-2017\",\r\n \"tokenizedText\": [\r\n \"05\",\r\n \"-\",\r\n \"27\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.83\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"05-27-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find an airport first\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"an\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find me a 3 stars hotel in madrid\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"what time is in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"time\",\r\n \"is\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"today\",\r\n \"tokenizedText\": [\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time in brasil\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"in\",\r\n \"brasil\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"brasil\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tomorrow\",\r\n \"tokenizedText\": [\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.49\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find deluxe room in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 start hotels in barcelona\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"start\",\r\n \"hotels\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"5\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 start\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dme\",\r\n \"tokenizedText\": [\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change location\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.25\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.16\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"five star hotels\",\r\n \"tokenizedText\": [\r\n \"five\",\r\n \"star\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"next monday\",\r\n \"tokenizedText\": [\r\n \"next\",\r\n \"monday\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"next monday\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"3-3-2017\",\r\n \"tokenizedText\": [\r\n \"3\",\r\n \"-\",\r\n \"3\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"3-3-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport with code atl\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"atl\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"atl\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"monday next week\",\r\n \"tokenizedText\": [\r\n \"monday\",\r\n \"next\",\r\n \"week\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.11\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"monday next week\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"kansas\",\r\n \"tokenizedText\": [\r\n \"kansas\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"kansas\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"airport\",\r\n \"tokenizedText\": [\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find me hotels in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"hotels\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me airport with code bcn\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"bcn\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"bcn\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"mia\",\r\n \"tokenizedText\": [\r\n \"mia\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"algo?\",\r\n \"tokenizedText\": [\r\n \"algo\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.32\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"asdttt\",\r\n \"tokenizedText\": [\r\n \"asdttt\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"ok, find me an airport\",\r\n \"tokenizedText\": [\r\n \"ok\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"an\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"sorry, find me airport juj\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, \\\"next day\\\"\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"\\\"\",\r\n \"next\",\r\n \"day\",\r\n \"\\\"\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.07\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"hey\",\r\n \"tokenizedText\": [\r\n \"hey\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"first show me the weather in miami\",\r\n \"tokenizedText\": [\r\n \"first\",\r\n \"show\",\r\n \"me\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.96\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"how is the weather in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"is\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to barcelona\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"buenos aires\",\r\n \"tokenizedText\": [\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.15\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"5/17/2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"/\",\r\n \"17\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5/17/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"[object object]\",\r\n \"tokenizedText\": [\r\n \"[\",\r\n \"object\",\r\n \"object\",\r\n \"]\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"eze\",\r\n \"tokenizedText\": [\r\n \"eze\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change hotel location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 start hotels in jujuy\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"start\",\r\n \"hotels\",\r\n \"in\",\r\n \"jujuy\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"5\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 start\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"jujuy\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me the weather\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"the\",\r\n \"weather\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"time miami\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.13\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"juj\",\r\n \"tokenizedText\": [\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona from today\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"from\",\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"kkk\",\r\n \"tokenizedText\": [\r\n \"kkk\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change the hotel location to madrid please\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"the\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\",\r\n \"please\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.37\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"look for hotels\",\r\n \"tokenizedText\": [\r\n \"look\",\r\n \"for\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find me a deluxe room in a 3 stars hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 8,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 11,\r\n \"endTokenIndex\": 11,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"5-5-2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"-\",\r\n \"5\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.04\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5-5-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"weather in poland\",\r\n \"tokenizedText\": [\r\n \"weather\",\r\n \"in\",\r\n \"poland\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"poland\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"poland\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"05-28-2017\",\r\n \"tokenizedText\": [\r\n \"05\",\r\n \"-\",\r\n \"28\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.83\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"05-28-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.34\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me a airport first\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"dude\",\r\n \"tokenizedText\": [\r\n \"dude\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"what's the time in miami?\",\r\n \"tokenizedText\": [\r\n \"what\",\r\n \"'\",\r\n \"s\",\r\n \"the\",\r\n \"time\",\r\n \"in\",\r\n \"miami\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"841618ba-38aa-48d6-999b-1cede3aef126\",\r\n \"name\": \"Calendar.Add\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"6827b869-bbeb-4755-82e9-bfd453dfb32e\",\r\n \"name\": \"Calendar.Find\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"87df8945-7465-47bd-8166-de8ce2c956e8\",\r\n \"entityName\": \"geography\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "62513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "85cf825d-2f2e-4b0c-97d0-37f23fab07e2" + ], + "Request-Id": [ + "85cf825d-2f2e-4b0c-97d0-37f23fab07e2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/ListEntities.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/ListEntities.json new file mode 100644 index 000000000000..9c0fd1394ad1 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/ListEntities.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Existing Entity Test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "38" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"1d64dd71-ae4b-415e-ac46-1376b43548f8\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1d64dd71-ae4b-415e-ac46-1376b43548f8" + ], + "Apim-Request-Id": [ + "79f9ff3c-a8e6-40a6-b21e-b0e3874b72d9" + ], + "Request-Id": [ + "79f9ff3c-a8e6-40a6-b21e-b0e3874b72d9" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1d64dd71-ae4b-415e-ac46-1376b43548f8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"name\": \"Category\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"name\": \"Code\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"1d64dd71-ae4b-415e-ac46-1376b43548f8\",\r\n \"name\": \"Existing Entity Test\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"name\": \"RoomType\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "829" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "470a0bfa-1f1c-49d8-ae03-a3b47c5ae6e1" + ], + "Request-Id": [ + "470a0bfa-1f1c-49d8-ae03-a3b47c5ae6e1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1d64dd71-ae4b-415e-ac46-1376b43548f8", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFkNjRkZDcxLWFlNGItNDE1ZS1hYzQ2LTEzNzZiNDM1NDhmOA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:50:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3ab62cbb-229d-432d-abfe-4c0bcf6d0f9b" + ], + "Request-Id": [ + "3ab62cbb-229d-432d-abfe-4c0bcf6d0f9b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/UpdateEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/UpdateEntity.json new file mode 100644 index 000000000000..d5d23fd339ec --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelSimpleEntitiesTests/UpdateEntity.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"Rename Entity Test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"1e68fa05-a7e3-460f-9d04-5b32c95a3351\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1e68fa05-a7e3-460f-9d04-5b32c95a3351" + ], + "Apim-Request-Id": [ + "c76184b1-9e1d-4388-88ba-f143134d3a99" + ], + "Request-Id": [ + "c76184b1-9e1d-4388-88ba-f143134d3a99" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1e68fa05-a7e3-460f-9d04-5b32c95a3351" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1e68fa05-a7e3-460f-9d04-5b32c95a3351", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFlNjhmYTA1LWE3ZTMtNDYwZi05ZDA0LTViMzJjOTVhMzM1MQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"Entity Test Renamed\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "37" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "fe363e3a-9f55-407b-894c-1b8e5954bfeb" + ], + "Request-Id": [ + "fe363e3a-9f55-407b-894c-1b8e5954bfeb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1e68fa05-a7e3-460f-9d04-5b32c95a3351", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFlNjhmYTA1LWE3ZTMtNDYwZi05ZDA0LTViMzJjOTVhMzM1MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"1e68fa05-a7e3-460f-9d04-5b32c95a3351\",\r\n \"name\": \"Entity Test Renamed\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "119" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "94dbfc32-d5ed-4dd1-92b2-0463774b4a86" + ], + "Request-Id": [ + "94dbfc32-d5ed-4dd1-92b2-0463774b4a86" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1e68fa05-a7e3-460f-9d04-5b32c95a3351", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFlNjhmYTA1LWE3ZTMtNDYwZi05ZDA0LTViMzJjOTVhMzM1MQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 17:51:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6ed84823-3ecf-4320-96a4-06a474c642fe" + ], + "Request-Id": [ + "6ed84823-3ecf-4320-96a4-06a474c642fe" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddCompositeEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddCompositeEntity.json new file mode 100644 index 000000000000..92506435a3fe --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddCompositeEntity.json @@ -0,0 +1,128 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "70" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"852fb1ce-8dda-4297-a76d-d7929e6f7fec\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/852fb1ce-8dda-4297-a76d-d7929e6f7fec" + ], + "Apim-Request-Id": [ + "d983bcbc-79a7-40bc-ac6d-63ea37fb78d3" + ], + "Request-Id": [ + "d983bcbc-79a7-40bc-ac6d-63ea37fb78d3" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/852fb1ce-8dda-4297-a76d-d7929e6f7fec" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/852fb1ce-8dda-4297-a76d-d7929e6f7fec", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzLzg1MmZiMWNlLThkZGEtNDI5Ny1hNzZkLWQ3OTI5ZTZmN2ZlYw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "46230f2b-902d-4a4f-ad79-208de924fe99" + ], + "Request-Id": [ + "46230f2b-902d-4a4f-ad79-208de924fe99" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddCompositeEntityChild.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddCompositeEntityChild.json new file mode 100644 index 000000000000..a76e2b391d72 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddCompositeEntityChild.json @@ -0,0 +1,317 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"ChildTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "27" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"9b6dc835-e4d1-4866-8645-66774577555e\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/9b6dc835-e4d1-4866-8645-66774577555e" + ], + "Apim-Request-Id": [ + "6cc6f125-449d-484b-a048-897cb635f6d5" + ], + "Request-Id": [ + "6cc6f125-449d-484b-a048-897cb635f6d5" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/9b6dc835-e4d1-4866-8645-66774577555e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "70" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"fbce28d3-aa40-4120-b6ac-0ae3a82d7cf5\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/fbce28d3-aa40-4120-b6ac-0ae3a82d7cf5" + ], + "Apim-Request-Id": [ + "6e524b48-3a78-4e49-9fe7-3edb77c02e2e" + ], + "Request-Id": [ + "6e524b48-3a78-4e49-9fe7-3edb77c02e2e" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/fbce28d3-aa40-4120-b6ac-0ae3a82d7cf5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/fbce28d3-aa40-4120-b6ac-0ae3a82d7cf5/children", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2ZiY2UyOGQzLWFhNDAtNDEyMC1iNmFjLTBhZTNhODJkN2NmNS9jaGlsZHJlbg==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"ChildTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "27" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"9b6dc835-e4d1-4866-8645-66774577555e\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/9b6dc835-e4d1-4866-8645-66774577555e" + ], + "Apim-Request-Id": [ + "75e1d234-afa1-4100-ab1a-9ac70fd0865c" + ], + "Request-Id": [ + "75e1d234-afa1-4100-ab1a-9ac70fd0865c" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/9b6dc835-e4d1-4866-8645-66774577555e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/fbce28d3-aa40-4120-b6ac-0ae3a82d7cf5", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2ZiY2UyOGQzLWFhNDAtNDEyMC1iNmFjLTBhZTNhODJkN2NmNQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ea5aa470-2788-4f93-990c-766ed3ec9f04" + ], + "Request-Id": [ + "ea5aa470-2788-4f93-990c-766ed3ec9f04" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/9b6dc835-e4d1-4866-8645-66774577555e", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzliNmRjODM1LWU0ZDEtNDg2Ni04NjQ1LTY2Nzc0NTc3NTU1ZQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0aef317f-7425-4a4e-bbb9-afccf0d8dcb6" + ], + "Request-Id": [ + "0aef317f-7425-4a4e-bbb9-afccf0d8dcb6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddHierarchicalEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddHierarchicalEntity.json new file mode 100644 index 000000000000..ecd1660c7fb5 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddHierarchicalEntity.json @@ -0,0 +1,128 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"3af85ccc-e861-470c-9439-420cde2bf091\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/3af85ccc-e861-470c-9439-420cde2bf091" + ], + "Apim-Request-Id": [ + "014e9bfc-93ea-4236-a712-38a222fb6511" + ], + "Request-Id": [ + "014e9bfc-93ea-4236-a712-38a222fb6511" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/3af85ccc-e861-470c-9439-420cde2bf091" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/3af85ccc-e861-470c-9439-420cde2bf091", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzNhZjg1Y2NjLWU4NjEtNDcwYy05NDM5LTQyMGNkZTJiZjA5MQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "df22ca83-19a9-4eb1-96b5-bc7d3d6359e3" + ], + "Request-Id": [ + "df22ca83-19a9-4eb1-96b5-bc7d3d6359e3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddHierarchicalEntityChild.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddHierarchicalEntityChild.json new file mode 100644 index 000000000000..403d7e3d0d0f --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/AddHierarchicalEntityChild.json @@ -0,0 +1,195 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"ab4b9a63-0258-4161-9f2e-4bb2461c565b\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/ab4b9a63-0258-4161-9f2e-4bb2461c565b" + ], + "Apim-Request-Id": [ + "fd4f126c-d87a-4e6d-9c3c-65adf10618d2" + ], + "Request-Id": [ + "fd4f126c-d87a-4e6d-9c3c-65adf10618d2" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/ab4b9a63-0258-4161-9f2e-4bb2461c565b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/ab4b9a63-0258-4161-9f2e-4bb2461c565b/children", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzL2FiNGI5YTYzLTAyNTgtNDE2MS05ZjJlLTRiYjI0NjFjNTY1Yi9jaGlsZHJlbg==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"NewChildEntity\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"7b51c403-d690-44b2-986c-dcca215f6861\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/ab4b9a63-0258-4161-9f2e-4bb2461c565b/children/7b51c403-d690-44b2-986c-dcca215f6861" + ], + "Apim-Request-Id": [ + "2e823cd8-99b5-48f3-a460-e5bdb33463d4" + ], + "Request-Id": [ + "2e823cd8-99b5-48f3-a460-e5bdb33463d4" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/ab4b9a63-0258-4161-9f2e-4bb2461c565b/children/7b51c403-d690-44b2-986c-dcca215f6861" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/ab4b9a63-0258-4161-9f2e-4bb2461c565b", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzL2FiNGI5YTYzLTAyNTgtNDE2MS05ZjJlLTRiYjI0NjFjNTY1Yg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "594519e9-d19d-48e6-b17d-c2b7ff548b73" + ], + "Request-Id": [ + "594519e9-d19d-48e6-b17d-c2b7ff548b73" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteCompositeEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteCompositeEntity.json new file mode 100644 index 000000000000..37d991385cb0 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteCompositeEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "70" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"f226eff4-95ac-4e47-8bc3-10d5e0dfbcf3\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/f226eff4-95ac-4e47-8bc3-10d5e0dfbcf3" + ], + "Apim-Request-Id": [ + "a6b5444f-9cbd-48d0-8bb2-eb11e74c3308" + ], + "Request-Id": [ + "a6b5444f-9cbd-48d0-8bb2-eb11e74c3308" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/f226eff4-95ac-4e47-8bc3-10d5e0dfbcf3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/f226eff4-95ac-4e47-8bc3-10d5e0dfbcf3", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2YyMjZlZmY0LTk1YWMtNGU0Ny04YmMzLTEwZDVlMGRmYmNmMw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "4eab6db4-4f48-489a-a5f3-c1e6d00c81d6" + ], + "Request-Id": [ + "4eab6db4-4f48-489a-a5f3-c1e6d00c81d6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"name\": \"Checkin\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"name\": \"Checkout\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"name\": \"Renamed Entity\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "594" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d49247b8-2d79-488d-8b04-2b7964190e8f" + ], + "Request-Id": [ + "d49247b8-2d79-488d-8b04-2b7964190e8f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteCompositeEntityChild.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteCompositeEntityChild.json new file mode 100644 index 000000000000..eb15382d22b8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteCompositeEntityChild.json @@ -0,0 +1,293 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\",\r\n \"email\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "84" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"51d3ca0c-f020-4439-835f-5da0b636487d\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/51d3ca0c-f020-4439-835f-5da0b636487d" + ], + "Apim-Request-Id": [ + "ef68a453-3f03-47fd-b82d-f031ad9cb426" + ], + "Request-Id": [ + "ef68a453-3f03-47fd-b82d-f031ad9cb426" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/51d3ca0c-f020-4439-835f-5da0b636487d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/51d3ca0c-f020-4439-835f-5da0b636487d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzLzUxZDNjYTBjLWYwMjAtNDQzOS04MzVmLTVkYTBiNjM2NDg3ZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"51d3ca0c-f020-4439-835f-5da0b636487d\",\r\n \"name\": \"CompositeTest\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n },\r\n {\r\n \"id\": \"998b8d3d-a760-4093-87a9-74ce4f70cfc9\",\r\n \"name\": \"email\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "261" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "194636d7-3139-451c-9d38-d5ac59001893" + ], + "Request-Id": [ + "194636d7-3139-451c-9d38-d5ac59001893" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/51d3ca0c-f020-4439-835f-5da0b636487d/children/998b8d3d-a760-4093-87a9-74ce4f70cfc9", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzLzUxZDNjYTBjLWYwMjAtNDQzOS04MzVmLTVkYTBiNjM2NDg3ZC9jaGlsZHJlbi85OThiOGQzZC1hNzYwLTQwOTMtODdhOS03NGNlNGY3MGNmYzk=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "06aa3f79-1a21-4a36-b3ad-689cc8c0ad47" + ], + "Request-Id": [ + "06aa3f79-1a21-4a36-b3ad-689cc8c0ad47" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"name\": \"Checkin\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"name\": \"Checkout\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"51d3ca0c-f020-4439-835f-5da0b636487d\",\r\n \"name\": \"CompositeTest\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"name\": \"Renamed Entity\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "795" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "013515ab-226e-4325-9fa2-347f0aa683b8" + ], + "Request-Id": [ + "013515ab-226e-4325-9fa2-347f0aa683b8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/51d3ca0c-f020-4439-835f-5da0b636487d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzLzUxZDNjYTBjLWYwMjAtNDQzOS04MzVmLTVkYTBiNjM2NDg3ZA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "5b5ba3b0-197d-4c2b-96d1-e37dd76ec6bd" + ], + "Request-Id": [ + "5b5ba3b0-197d-4c2b-96d1-e37dd76ec6bd" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteHierarchicalEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteHierarchicalEntity.json new file mode 100644 index 000000000000..c39ad98aff5e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteHierarchicalEntity.json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"33f32863-fcfa-4f52-8395-4f8ef1c5dd88\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/33f32863-fcfa-4f52-8395-4f8ef1c5dd88" + ], + "Apim-Request-Id": [ + "03eba437-a5eb-4085-accd-f13275e91742" + ], + "Request-Id": [ + "03eba437-a5eb-4085-accd-f13275e91742" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/33f32863-fcfa-4f52-8395-4f8ef1c5dd88" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"33f32863-fcfa-4f52-8395-4f8ef1c5dd88\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"5877a500-fb5e-48ce-88bb-d990f2819d89\",\r\n \"name\": \"ChildTest\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "209" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "434b4b2c-fe9f-467a-aa9a-0e99ceb375ae" + ], + "Request-Id": [ + "434b4b2c-fe9f-467a-aa9a-0e99ceb375ae" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[]", + "ResponseHeaders": { + "Content-Length": [ + "2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "4265911c-46d1-4957-93db-42101a20d12c" + ], + "Request-Id": [ + "4265911c-46d1-4957-93db-42101a20d12c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/33f32863-fcfa-4f52-8395-4f8ef1c5dd88", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzMzZjMyODYzLWZjZmEtNGY1Mi04Mzk1LTRmOGVmMWM1ZGQ4OA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "73653b3b-096d-4532-ae7e-d2779435ce42" + ], + "Request-Id": [ + "73653b3b-096d-4532-ae7e-d2779435ce42" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteHierarchicalEntityChild.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteHierarchicalEntityChild.json new file mode 100644 index 000000000000..a7d834f482b4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/DeleteHierarchicalEntityChild.json @@ -0,0 +1,293 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\",\r\n \"AnotherChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "99" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"f7be2643-9f30-4e6f-87a6-4488092507e2\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/f7be2643-9f30-4e6f-87a6-4488092507e2" + ], + "Apim-Request-Id": [ + "14e494d2-55ec-4a89-b2a9-8312ee7389b7" + ], + "Request-Id": [ + "14e494d2-55ec-4a89-b2a9-8312ee7389b7" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/f7be2643-9f30-4e6f-87a6-4488092507e2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"f7be2643-9f30-4e6f-87a6-4488092507e2\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"58ca81da-01a9-4551-b654-cac6a999c583\",\r\n \"name\": \"ChildTest\"\r\n },\r\n {\r\n \"id\": \"9b7b1a57-7b02-48da-8704-e85e396f9c78\",\r\n \"name\": \"AnotherChildTest\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "281" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f50390dd-41d4-425c-bd17-83f02ed57154" + ], + "Request-Id": [ + "f50390dd-41d4-425c-bd17-83f02ed57154" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"f7be2643-9f30-4e6f-87a6-4488092507e2\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"9b7b1a57-7b02-48da-8704-e85e396f9c78\",\r\n \"name\": \"AnotherChildTest\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "216" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "b17cd7d5-0a5c-4031-9a3b-d81f3896bfe6" + ], + "Request-Id": [ + "b17cd7d5-0a5c-4031-9a3b-d81f3896bfe6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/f7be2643-9f30-4e6f-87a6-4488092507e2/children/58ca81da-01a9-4551-b654-cac6a999c583", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzL2Y3YmUyNjQzLTlmMzAtNGU2Zi04N2E2LTQ0ODgwOTI1MDdlMi9jaGlsZHJlbi81OGNhODFkYS0wMWE5LTQ1NTEtYjY1NC1jYWM2YTk5OWM1ODM=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "49e518bd-a828-4500-8b7f-e4e25c2d15bc" + ], + "Request-Id": [ + "49e518bd-a828-4500-8b7f-e4e25c2d15bc" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/f7be2643-9f30-4e6f-87a6-4488092507e2", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzL2Y3YmUyNjQzLTlmMzAtNGU2Zi04N2E2LTQ0ODgwOTI1MDdlMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "babc5961-5d24-4aa3-b5ab-19655562dd01" + ], + "Request-Id": [ + "babc5961-5d24-4aa3-b5ab-19655562dd01" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetCompositeEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetCompositeEntity.json new file mode 100644 index 000000000000..50044e5de946 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetCompositeEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "70" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"ffb7bf58-23f7-42c3-815a-51c5fca55e26\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/ffb7bf58-23f7-42c3-815a-51c5fca55e26" + ], + "Apim-Request-Id": [ + "57e28592-b6b2-433b-8ac4-f526a3792876" + ], + "Request-Id": [ + "57e28592-b6b2-433b-8ac4-f526a3792876" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/ffb7bf58-23f7-42c3-815a-51c5fca55e26" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/ffb7bf58-23f7-42c3-815a-51c5fca55e26", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2ZmYjdiZjU4LTIzZjctNDJjMy04MTVhLTUxYzVmY2E1NWUyNg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"ffb7bf58-23f7-42c3-815a-51c5fca55e26\",\r\n \"name\": \"CompositeTest\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "200" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "dd038afb-4554-494b-8d6d-55f7692c6727" + ], + "Request-Id": [ + "dd038afb-4554-494b-8d6d-55f7692c6727" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/ffb7bf58-23f7-42c3-815a-51c5fca55e26", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2ZmYjdiZjU4LTIzZjctNDJjMy04MTVhLTUxYzVmY2E1NWUyNg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "7fad964c-f637-40e8-bfd0-19ac81052614" + ], + "Request-Id": [ + "7fad964c-f637-40e8-bfd0-19ac81052614" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetHierarchicalEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetHierarchicalEntity.json new file mode 100644 index 000000000000..aea33ed41d7c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetHierarchicalEntity.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"91dd02f6-775d-41a2-b6b6-6e1c07329e39\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/91dd02f6-775d-41a2-b6b6-6e1c07329e39" + ], + "Apim-Request-Id": [ + "35210115-066f-40c7-bc7d-3ce37faa8ee1" + ], + "Request-Id": [ + "35210115-066f-40c7-bc7d-3ce37faa8ee1" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/91dd02f6-775d-41a2-b6b6-6e1c07329e39" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/91dd02f6-775d-41a2-b6b6-6e1c07329e39", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzkxZGQwMmY2LTc3NWQtNDFhMi1iNmI2LTZlMWMwNzMyOWUzOQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"91dd02f6-775d-41a2-b6b6-6e1c07329e39\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"fc53a25c-dd17-4a0d-a22d-73ac07b1e604\",\r\n \"name\": \"ChildTest\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "207" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "232c66d5-7e5f-4425-80fa-689ce37220f4" + ], + "Request-Id": [ + "232c66d5-7e5f-4425-80fa-689ce37220f4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/91dd02f6-775d-41a2-b6b6-6e1c07329e39", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzkxZGQwMmY2LTc3NWQtNDFhMi1iNmI2LTZlMWMwNzMyOWUzOQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "dbb680ed-8442-4bd1-a832-81fac0c32232" + ], + "Request-Id": [ + "dbb680ed-8442-4bd1-a832-81fac0c32232" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetHierarchicalEntityChild.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetHierarchicalEntityChild.json new file mode 100644 index 000000000000..06a6566b26b4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/GetHierarchicalEntityChild.json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"8095d569-78e6-4e68-af08-e1d2becb5aec\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8095d569-78e6-4e68-af08-e1d2becb5aec" + ], + "Apim-Request-Id": [ + "7940a770-e610-406f-9f66-f920bbced254" + ], + "Request-Id": [ + "7940a770-e610-406f-9f66-f920bbced254" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8095d569-78e6-4e68-af08-e1d2becb5aec" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8095d569-78e6-4e68-af08-e1d2becb5aec", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzgwOTVkNTY5LTc4ZTYtNGU2OC1hZjA4LWUxZDJiZWNiNWFlYw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"8095d569-78e6-4e68-af08-e1d2becb5aec\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"421aee66-314a-448f-be42-001ea82ae10b\",\r\n \"name\": \"ChildTest\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "207" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "2b6abea3-ede0-4e14-a003-cafd2ce51c76" + ], + "Request-Id": [ + "2b6abea3-ede0-4e14-a003-cafd2ce51c76" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8095d569-78e6-4e68-af08-e1d2becb5aec/children/421aee66-314a-448f-be42-001ea82ae10b", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzgwOTVkNTY5LTc4ZTYtNGU2OC1hZjA4LWUxZDJiZWNiNWFlYy9jaGlsZHJlbi80MjFhZWU2Ni0zMTRhLTQ0OGYtYmU0Mi0wMDFlYTgyYWUxMGI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"421aee66-314a-448f-be42-001ea82ae10b\",\r\n \"name\": \"ChildTest\",\r\n \"typeId\": 6,\r\n \"readableType\": \"Hierarchical Child Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "128" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d9d77727-bbe9-441d-bcea-3d1605712f38" + ], + "Request-Id": [ + "d9d77727-bbe9-441d-bcea-3d1605712f38" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8095d569-78e6-4e68-af08-e1d2becb5aec", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzgwOTVkNTY5LTc4ZTYtNGU2OC1hZjA4LWUxZDJiZWNiNWFlYw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "36103d63-79fb-4529-b7d8-8cae4c064370" + ], + "Request-Id": [ + "36103d63-79fb-4529-b7d8-8cae4c064370" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListCompositeEntities.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListCompositeEntities.json new file mode 100644 index 000000000000..10e3a93ad7d8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListCompositeEntities.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "70" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"98c3d4f8-0d1b-4ed5-906c-dab8c6186015\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/98c3d4f8-0d1b-4ed5-906c-dab8c6186015" + ], + "Apim-Request-Id": [ + "4794625d-4360-4043-9adf-f3df9c400433" + ], + "Request-Id": [ + "4794625d-4360-4043-9adf-f3df9c400433" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/98c3d4f8-0d1b-4ed5-906c-dab8c6186015" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"name\": \"Checkin\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"name\": \"Checkout\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"98c3d4f8-0d1b-4ed5-906c-dab8c6186015\",\r\n \"name\": \"CompositeTest\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"name\": \"Renamed Entity\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "795" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1c1808f5-adad-462c-bfce-89575fa080fb" + ], + "Request-Id": [ + "1c1808f5-adad-462c-bfce-89575fa080fb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/98c3d4f8-0d1b-4ed5-906c-dab8c6186015", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzLzk4YzNkNGY4LTBkMWItNGVkNS05MDZjLWRhYjhjNjE4NjAxNQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "126758ba-2517-403a-95fb-8f7ab57e2a15" + ], + "Request-Id": [ + "126758ba-2517-403a-95fb-8f7ab57e2a15" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListHierarchicalEntities.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListHierarchicalEntities.json new file mode 100644 index 000000000000..dd32edfcb078 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListHierarchicalEntities.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"9337dc54-c3d8-43d5-a1d4-530f68d4acd7\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/9337dc54-c3d8-43d5-a1d4-530f68d4acd7" + ], + "Apim-Request-Id": [ + "0a67fbde-bbb4-4b56-885c-5922a0b21d48" + ], + "Request-Id": [ + "0a67fbde-bbb4-4b56-885c-5922a0b21d48" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/9337dc54-c3d8-43d5-a1d4-530f68d4acd7" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"9337dc54-c3d8-43d5-a1d4-530f68d4acd7\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"bc751038-b2b6-428b-9c10-6b57f85485e9\",\r\n \"name\": \"ChildTest\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "209" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "9f3fb8c6-9056-4792-8dc5-9526754ef3f1" + ], + "Request-Id": [ + "9f3fb8c6-9056-4792-8dc5-9526754ef3f1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/9337dc54-c3d8-43d5-a1d4-530f68d4acd7", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzkzMzdkYzU0LWMzZDgtNDNkNS1hMWQ0LTUzMGY2OGQ0YWNkNw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0744070a-fe53-4731-81ea-29cd54d864b2" + ], + "Request-Id": [ + "0744070a-fe53-4731-81ea-29cd54d864b2" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListModels.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListModels.json new file mode 100644 index 000000000000..0eb4975030ff --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/ListModels.json @@ -0,0 +1,1161 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/models?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL21vZGVscz9za2lwPTAmdGFrZT0xMDA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n },\r\n {\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n },\r\n {\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"name\": \"Category\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"name\": \"Checkin\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"name\": \"Checkout\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"name\": \"Code\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"998b8d3d-a760-4093-87a9-74ce4f70cfc9\",\r\n \"name\": \"email\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"name\": \"Renamed Entity\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"name\": \"RoomType\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "3002" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "16be3018-dab7-4683-baa5-a78ebb579db6" + ], + "Request-Id": [ + "16be3018-dab7-4683-baa5-a78ebb579db6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/f83dcca6-7bfc-44f9-9bbb-b6285c239da3", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2Y4M2RjY2E2LTdiZmMtNDRmOS05YmJiLWI2Mjg1YzIzOWRhMw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "211" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "38cbabae-9e5f-4d58-8359-683df0c92858" + ], + "Request-Id": [ + "38cbabae-9e5f-4d58-8359-683df0c92858" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/da3f90e7-d21a-41a5-98a7-d733d1861ff9", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2RhM2Y5MGU3LWQyMWEtNDFhNS05OGE3LWQ3MzNkMTg2MWZmOQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "64e77d91-0d31-402f-a423-e874d24f3a0b" + ], + "Request-Id": [ + "64e77d91-0d31-402f-a423-e874d24f3a0b" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/5b4d2a57-727a-42d7-9e3d-a15aa28975e5", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzViNGQyYTU3LTcyN2EtNDJkNy05ZTNkLWExNWFhMjg5NzVlNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "185" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d3cd760f-81b1-46c9-8f5c-f7acbe650cfb" + ], + "Request-Id": [ + "d3cd760f-81b1-46c9-8f5c-f7acbe650cfb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/5511daf7-90d1-4c14-841d-7f20fece6d89", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzU1MTFkYWY3LTkwZDEtNGMxNC04NDFkLTdmMjBmZWNlNmQ4OQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"5511daf7-90d1-4c14-841d-7f20fece6d89\",\r\n \"name\": \"Calendar.Location\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Location\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "192" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "bcd6c03b-e29d-42f0-93cb-914a33e3c47d" + ], + "Request-Id": [ + "bcd6c03b-e29d-42f0-93cb-914a33e3c47d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/105cede3-6c7c-42ef-b878-7497cc72e08e", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzEwNWNlZGUzLTZjN2MtNDJlZi1iODc4LTc0OTdjYzcyZTA4ZQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"105cede3-6c7c-42ef-b878-7497cc72e08e\",\r\n \"name\": \"Calendar.Subject\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Subject\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "190" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3b74092f-503a-49a9-a417-30eb10b54e7f" + ], + "Request-Id": [ + "3b74092f-503a-49a9-a417-30eb10b54e7f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/2f3d2a83-30b6-40ea-9e82-4fff235d14ef", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzJmM2QyYTgzLTMwYjYtNDBlYS05ZTgyLTRmZmYyMzVkMTRlZg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"2f3d2a83-30b6-40ea-9e82-4fff235d14ef\",\r\n \"name\": \"Camera.AppName\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\",\r\n \"customPrebuiltDomainName\": \"Camera\",\r\n \"customPrebuiltModelName\": \"AppName\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "186" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "442607cb-e382-4fee-8ae3-1d355192ba82" + ], + "Request-Id": [ + "442607cb-e382-4fee-8ae3-1d355192ba82" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/7fa94cf1-47a4-4761-9a43-ad3dffaca8e1", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzdmYTk0Y2YxLTQ3YTQtNDc2MS05YTQzLWFkM2RmZmFjYThlMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"name\": \"Category\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "5cb7fadf-088a-4150-92a8-7b1488d77b63" + ], + "Request-Id": [ + "5cb7fadf-088a-4150-92a8-7b1488d77b63" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/4bc77d32-40bb-4b05-8b0c-41e912dc223d", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzRiYzc3ZDMyLTQwYmItNGIwNS04YjBjLTQxZTkxMmRjMjIzZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"name\": \"Checkin\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "194" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "283e32c9-6335-447a-82b2-c8ccaa8a391f" + ], + "Request-Id": [ + "283e32c9-6335-447a-82b2-c8ccaa8a391f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/1a6c8585-d882-4370-987b-c07553781e93", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzFhNmM4NTg1LWQ4ODItNDM3MC05ODdiLWMwNzU1Mzc4MWU5Mw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"name\": \"Checkout\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "195" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "97910781-f56c-42e0-93c4-4e78152516d9" + ], + "Request-Id": [ + "97910781-f56c-42e0-93c4-4e78152516d9" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/8a09378c-64fc-4f63-a2cc-c19a4d44942b", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzhhMDkzNzhjLTY0ZmMtNGY2My1hMmNjLWMxOWE0ZDQ0OTQyYg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"name\": \"Code\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "dcaec578-867f-4809-9f57-e2d93647196e" + ], + "Request-Id": [ + "dcaec578-867f-4809-9f57-e2d93647196e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/e221132c-d612-4a6d-a7fe-769ebd8d6b00", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2UyMjExMzJjLWQ2MTItNGE2ZC1hN2ZlLTc2OWViZDhkNmIwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "117" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6092e2f7-2bea-4b50-b96a-d5e8821a2859" + ], + "Request-Id": [ + "6092e2f7-2bea-4b50-b96a-d5e8821a2859" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/998b8d3d-a760-4093-87a9-74ce4f70cfc9", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzk5OGI4ZDNkLWE3NjAtNDA5My04N2E5LTc0Y2U0ZjcwY2ZjOQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"998b8d3d-a760-4093-87a9-74ce4f70cfc9\",\r\n \"name\": \"email\",\r\n \"typeId\": 2,\r\n \"readableType\": \"Prebuilt Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "114" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "5bac6680-128d-436b-b150-d9a617c39378" + ], + "Request-Id": [ + "5bac6680-128d-436b-b150-d9a617c39378" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/c0ec08db-e136-4798-823d-9bc9cbbb58ea", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2MwZWMwOGRiLWUxMzYtNDc5OC04MjNkLTliYzljYmJiNThlYQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "118" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "62dc31e7-ebdd-4b7f-b5e0-6be3dfdc89a8" + ], + "Request-Id": [ + "62dc31e7-ebdd-4b7f-b5e0-6be3dfdc89a8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/9d3cba7e-64dd-4205-9b23-e2642221b7fe", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzlkM2NiYTdlLTY0ZGQtNDIwNS05YjIzLWUyNjQyMjIxYjdmZQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a19473cf-8286-43b8-b297-9b14c47a5713" + ], + "Request-Id": [ + "a19473cf-8286-43b8-b297-9b14c47a5713" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/d772d522-7cf6-4a4b-b628-c8d508a3805a", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2Q3NzJkNTIyLTdjZjYtNGE0Yi1iNjI4LWM4ZDUwOGEzODA1YQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "126" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "f16b4279-8b83-4f87-9850-0190cb4378ad" + ], + "Request-Id": [ + "f16b4279-8b83-4f87-9850-0190cb4378ad" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/76c92d38-2e8e-46f0-9645-5c5040c1bab1", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzc2YzkyZDM4LTJlOGUtNDZmMC05NjQ1LTVjNTA0MGMxYmFiMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "105" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "8b4c6d44-2083-437c-9582-5acbb4627265" + ], + "Request-Id": [ + "8b4c6d44-2083-437c-9582-5acbb4627265" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/c9f080e0-d4ac-453e-8953-96fb3e7de2bd", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2M5ZjA4MGUwLWQ0YWMtNDUzZS04OTUzLTk2ZmIzZTdkZTJiZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"name\": \"Renamed Entity\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "201" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6fc66278-19af-4679-b7eb-9f614997edec" + ], + "Request-Id": [ + "6fc66278-19af-4679-b7eb-9f614997edec" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/14c2528c-287d-45f4-939f-626d2a659aeb", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzE0YzI1MjhjLTI4N2QtNDVmNC05MzlmLTYyNmQyYTY1OWFlYg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"name\": \"RoomType\",\r\n \"typeId\": 1,\r\n \"readableType\": \"Entity Extractor\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d2faef19-5807-4ecc-b6e5-e56ad22542a3" + ], + "Request-Id": [ + "d2faef19-5807-4ecc-b6e5-e56ad22542a3" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/985650d4-52df-41a9-b536-2509a3994fca", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzLzk4NTY1MGQ0LTUyZGYtNDFhOS1iNTM2LTI1MDlhMzk5NGZjYQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "112" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a47b4eae-c86b-4db6-98cd-5ee7919d511d" + ], + "Request-Id": [ + "a47b4eae-c86b-4db6-98cd-5ee7919d511d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/dbb1ece5-6703-4a54-97c1-e989b429aed8", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2VudGl0aWVzL2RiYjFlY2U1LTY3MDMtNGE1NC05N2MxLWU5ODliNDI5YWVkOA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "115" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c401829e-4bb9-4cf6-9968-e7cecae47502" + ], + "Request-Id": [ + "c401829e-4bb9-4cf6-9968-e7cecae47502" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateCompositeEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateCompositeEntity.json new file mode 100644 index 000000000000..91bd8bc6a94c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateCompositeEntity.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"CompositeTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "70" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"d599112c-600c-468f-b44a-af005d567265\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/d599112c-600c-468f-b44a-af005d567265" + ], + "Apim-Request-Id": [ + "d1194b39-f97e-46cb-86bd-1115f8c3990a" + ], + "Request-Id": [ + "d1194b39-f97e-46cb-86bd-1115f8c3990a" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/d599112c-600c-468f-b44a-af005d567265" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/d599112c-600c-468f-b44a-af005d567265", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2Q1OTkxMTJjLTYwMGMtNDY4Zi1iNDRhLWFmMDA1ZDU2NzI2NQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"children\": [\r\n \"datetime\"\r\n ],\r\n \"name\": \"HierarchicalTestUpdate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a44e5167-c99c-42ae-9bd6-11cd53cb9ee0" + ], + "Request-Id": [ + "a44e5167-c99c-42ae-9bd6-11cd53cb9ee0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"name\": \"Checkin\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"name\": \"Checkout\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"d599112c-600c-468f-b44a-af005d567265\",\r\n \"name\": \"HierarchicalTestUpdate\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"name\": \"Renamed Entity\",\r\n \"typeId\": 4,\r\n \"readableType\": \"Composite Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"name\": \"datetime\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "804" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1bc552d4-bf08-40a9-8d69-407cd1b663fa" + ], + "Request-Id": [ + "1bc552d4-bf08-40a9-8d69-407cd1b663fa" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/compositeentities/d599112c-600c-468f-b44a-af005d567265", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2NvbXBvc2l0ZWVudGl0aWVzL2Q1OTkxMTJjLTYwMGMtNDY4Zi1iNDRhLWFmMDA1ZDU2NzI2NQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "8898eb06-ced0-4b4c-bb5d-4811fc92887d" + ], + "Request-Id": [ + "8898eb06-ced0-4b4c-bb5d-4811fc92887d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateHierarchicalEntity.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateHierarchicalEntity.json new file mode 100644 index 000000000000..ca4239ec7fe9 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateHierarchicalEntity.json @@ -0,0 +1,244 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"c09826f3-2795-4fbd-ab27-9e8def42101c\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:03:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/c09826f3-2795-4fbd-ab27-9e8def42101c" + ], + "Apim-Request-Id": [ + "507cc453-0907-4f06-bf23-b11ee527e1c5" + ], + "Request-Id": [ + "507cc453-0907-4f06-bf23-b11ee527e1c5" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/c09826f3-2795-4fbd-ab27-9e8def42101c" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/c09826f3-2795-4fbd-ab27-9e8def42101c", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzL2MwOTgyNmYzLTI3OTUtNGZiZC1hYjI3LTllOGRlZjQyMTAxYw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTestUpdate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:03:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "5a39affa-23a4-4cef-89cf-7ee182324daf" + ], + "Request-Id": [ + "5a39affa-23a4-4cef-89cf-7ee182324daf" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"c09826f3-2795-4fbd-ab27-9e8def42101c\",\r\n \"name\": \"HierarchicalTestUpdate\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"0f51edda-16ce-4b53-a636-734f02c1aed4\",\r\n \"name\": \"ChildTest\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "215" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:03:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "cdf89de7-3b36-4b63-bbe3-9616a1853cf4" + ], + "Request-Id": [ + "cdf89de7-3b36-4b63-bbe3-9616a1853cf4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/c09826f3-2795-4fbd-ab27-9e8def42101c", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzL2MwOTgyNmYzLTI3OTUtNGZiZC1hYjI3LTllOGRlZjQyMTAxYw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "e1a06fb0-5d20-4b5b-aef9-9cb6a28ad345" + ], + "Request-Id": [ + "e1a06fb0-5d20-4b5b-aef9-9cb6a28ad345" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateHierarchicalEntityChild.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateHierarchicalEntityChild.json new file mode 100644 index 000000000000..122246fe5adb --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.ModelTests/UpdateHierarchicalEntityChild.json @@ -0,0 +1,299 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"children\": [\r\n \"ChildTest\"\r\n ],\r\n \"name\": \"HierarchicalTest\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "74" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"8ac8ea9e-b9a7-464f-98ca-c69a01a16972\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8ac8ea9e-b9a7-464f-98ca-c69a01a16972" + ], + "Apim-Request-Id": [ + "5871e172-1b7a-4dae-b16e-5a6df98ccb5c" + ], + "Request-Id": [ + "5871e172-1b7a-4dae-b16e-5a6df98ccb5c" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8ac8ea9e-b9a7-464f-98ca-c69a01a16972" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8ac8ea9e-b9a7-464f-98ca-c69a01a16972", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzhhYzhlYTllLWI5YTctNDY0Zi05OGNhLWM2OWEwMWExNjk3Mg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"8ac8ea9e-b9a7-464f-98ca-c69a01a16972\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"614b4f1c-958e-4efe-a90c-e2153028f510\",\r\n \"name\": \"ChildTest\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "207" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "9b7cb52e-2780-4119-b8f6-c478c5c7d7f8" + ], + "Request-Id": [ + "9b7cb52e-2780-4119-b8f6-c478c5c7d7f8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8ac8ea9e-b9a7-464f-98ca-c69a01a16972/children/614b4f1c-958e-4efe-a90c-e2153028f510", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzhhYzhlYTllLWI5YTctNDY0Zi05OGNhLWM2OWEwMWExNjk3Mi9jaGlsZHJlbi82MTRiNGYxYy05NThlLTRlZmUtYTkwYy1lMjE1MzAyOGY1MTA=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"RenamedChildEntity\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "bc8b7eb0-7cc1-49c4-abf3-ed50cbae8d54" + ], + "Request-Id": [ + "bc8b7eb0-7cc1-49c4-abf3-ed50cbae8d54" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzP3NraXA9MCZ0YWtlPTEwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"8ac8ea9e-b9a7-464f-98ca-c69a01a16972\",\r\n \"name\": \"HierarchicalTest\",\r\n \"typeId\": 3,\r\n \"readableType\": \"Hierarchical Entity Extractor\",\r\n \"children\": [\r\n {\r\n \"id\": \"614b4f1c-958e-4efe-a90c-e2153028f510\",\r\n \"name\": \"RenamedChildEntity\"\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "218" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1071646c-1448-410a-b09d-a752a8058090" + ], + "Request-Id": [ + "1071646c-1448-410a-b09d-a752a8058090" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/8ac8ea9e-b9a7-464f-98ca-c69a01a16972", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2hpZXJhcmNoaWNhbGVudGl0aWVzLzhhYzhlYTllLWI5YTctNDY0Zi05OGNhLWM2OWEwMWExNjk3Mg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:04:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a7ef2ace-5181-4721-8874-4123b34b268a" + ], + "Request-Id": [ + "a7ef2ace-5181-4721-8874-4123b34b268a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/AddPermission.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/AddPermission.json new file mode 100644 index 000000000000..492d06bfe032 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/AddPermission.json @@ -0,0 +1,117 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"email\": \"guest@outlook.com\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 28 Nov 2017 18:18:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "efd049b6-c4b7-4adf-90b9-674dedd2dcbb" + ], + "Request-Id": [ + "efd049b6-c4b7-4adf-90b9-674dedd2dcbb" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"owner\": \"owner.user@microsoft.com\",\r\n \"emails\": [\r\n \"invited.user@outlook.com\",\r\n \"guest@outlook.com\"\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "112" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Tue, 28 Nov 2017 18:18:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "8812f57a-5cc4-403a-92b3-674839e2ea46" + ], + "Request-Id": [ + "8812f57a-5cc4-403a-92b3-674839e2ea46" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/DeletePermission.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/DeletePermission.json new file mode 100644 index 000000000000..4744c75145f6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/DeletePermission.json @@ -0,0 +1,122 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvcGVybWlzc2lvbnM=", + "RequestMethod": "DELETE", + "RequestBody": "{\r\n \"email\": \"guest@outlook.com\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:25:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "13e1e8b5-f329-475c-8b55-be667d66a4ac" + ], + "Request-Id": [ + "13e1e8b5-f329-475c-8b55-be667d66a4ac" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvcGVybWlzc2lvbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"owner\": \"manx@southworks.com\",\r\n \"emails\": [\r\n \"invited.user@live.com\"\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "66" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:25:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "83bc1800-b802-4ebb-be2d-d57e00981d3f" + ], + "Request-Id": [ + "83bc1800-b802-4ebb-be2d-d57e00981d3f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/ListPermissions.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/ListPermissions.json new file mode 100644 index 000000000000..d724f08618cd --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/ListPermissions.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvcGVybWlzc2lvbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"owner\": \"owner.user@microsoft.com\",\r\n \"emails\": [\r\n \"guest@outlook.com\",\r\n \"invited.user@live.com\"\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "86" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:25:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ef6768f1-582a-40ca-96d8-57c78c275207" + ], + "Request-Id": [ + "ef6768f1-582a-40ca-96d8-57c78c275207" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/UpdatePermission.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/UpdatePermission.json new file mode 100644 index 000000000000..ac66ea7865b5 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.PermissionsTests/UpdatePermission.json @@ -0,0 +1,122 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvcGVybWlzc2lvbnM=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"emails\": [\r\n \"guest@outlook.com\",\r\n \"invited.user@live.com\"\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:25:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "227ff406-5ed2-4e26-b451-e01b264cdb05" + ], + "Request-Id": [ + "227ff406-5ed2-4e26-b451-e01b264cdb05" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/permissions", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvcGVybWlzc2lvbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"owner\": \"manx@southworks.com\",\r\n \"emails\": [\r\n \"guest@outlook.com\",\r\n \"invited.user@live.com\"\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "86" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:25:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "bb744a1a-88aa-4c47-b6a1-74a2532cafe0" + ], + "Request-Id": [ + "bb744a1a-88aa-4c47-b6a1-74a2532cafe0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.TrainTests/GetStatus.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.TrainTests/GetStatus.json new file mode 100644 index 000000000000..3528aeb6613c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.TrainTests/GetStatus.json @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "[{\"modelId\":\"f9b00d5b-1f2d-421e-bc99-5ff192d0b998\",\"details\":{\"statusId\":3,\"status\":\"InProgress\",\"exampleCount\":0}},{\"modelId\":\"51403af3-5342-4926-abaa-91172a42e075\",\"details\":{\"statusId\":2,\"status\":\"UpToDate\",\"exampleCount\":12,\"trainingDateTime\":\"2017-01-31T21:42:02Z\"}},{\"modelId\":\"b4cf6402-dc79-4ca3-8666-b0007337e92b\",\"details\":{\"statusId\":1,\"status\":\"Fail\",\"exampleCount\":12,\"failureReason\":\"FewLabels\"}},{\"modelId\":\"e8e3135a-acd9-4164-a65c-e2fedbe78cfa\",\"details\":{\"statusId\":3,\"status\":\"InProgress\",\"exampleCount\":0}},{\"modelId\":\"3291fac9-6368-4c87-9562-e78cae0fa7c6\",\"details\":{\"statusId\":0,\"status\":\"Success\",\"exampleCount\":12,\"trainingDateTime\":\"2017-01-31T21:42:02Z\"}},{\"modelId\":\"a193efac-ab02-49d7-b005-ee717d45c4f1\",\"details\":{\"statusId\":3,\"status\":\"InProgress\",\"exampleCount\":0}}]", + "ResponseHeaders": { + "Content-Length": [ + "1551" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Fri, 01 Dec 2017 14:47:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "9115e913-9da3-407e-83a2-8b74aa3c6f16" + ], + "Request-Id": [ + "9115e913-9da3-407e-83a2-8b74aa3c6f16" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.TrainTests/TrainVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.TrainTests/TrainVersion.json new file mode 100644 index 000000000000..ede2d1b2080b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.TrainTests/TrainVersion.json @@ -0,0 +1,246 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"statusId\": 9,\r\n \"status\": \"Queued\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Fri, 01 Dec 2017 15:03:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Apim-Request-Id": [ + "644485a9-fe90-4fa9-8340-6fc6c3bb961b" + ], + "Request-Id": [ + "644485a9-fe90-4fa9-8340-6fc6c3bb961b" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"statusId\": 9,\r\n \"status\": \"Queued\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "32" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Fri, 01 Dec 2017 15:03:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Apim-Request-Id": [ + "1f294fdd-c716-430a-ad81-be7e3a1849bc" + ], + "Request-Id": [ + "1f294fdd-c716-430a-ad81-be7e3a1849bc" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"statusId\": 2,\r\n \"status\": \"UpToDate\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "34" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Fri, 01 Dec 2017 15:03:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Apim-Request-Id": [ + "8c36026a-5973-4bf5-a89c-4d0c4aca98cc" + ], + "Request-Id": [ + "8c36026a-5973-4bf5-a89c-4d0c4aca98cc" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"statusId\": 2,\r\n \"status\": \"UpToDate\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "34" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Fri, 01 Dec 2017 15:03:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Apim-Request-Id": [ + "8c36026a-5973-4bf5-a89c-4d0c4aca98cc" + ], + "Request-Id": [ + "8c36026a-5973-4bf5-a89c-4d0c4aca98cc" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/train/" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/CloneVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/CloneVersion.json new file mode 100644 index 000000000000..86dbc5abd186 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/CloneVersion.json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:42:57Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:43:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "6e7db7ed-87c2-48bb-8b6a-352c9894318e" + ], + "Request-Id": [ + "6e7db7ed-87c2-48bb-8b6a-352c9894318e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:42:57Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"test\",\r\n \"createdDateTime\": \"2017-12-14T21:43:09Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:43:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1496" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:43:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "e761eec8-206e-4d42-b772-fdcc4478ccbd" + ], + "Request-Id": [ + "e761eec8-206e-4d42-b772-fdcc4478ccbd" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/clone", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb25l", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"version\": \"test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "25" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"test\"", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:43:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test" + ], + "Apim-Request-Id": [ + "9cd11a99-3c86-4710-9e97-c31c654260be" + ], + "Request-Id": [ + "9cd11a99-3c86-4710-9e97-c31c654260be" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvdGVzdC8=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:43:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a717ca9e-1080-48c7-8fb1-64a0f6a8432d" + ], + "Request-Id": [ + "a717ca9e-1080-48c7-8fb1-64a0f6a8432d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/CloneVersion_ErrorModel.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/CloneVersion_ErrorModel.json new file mode 100644 index 000000000000..530fe0876527 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/CloneVersion_ErrorModel.json @@ -0,0 +1,122 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:17Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "363febf2-f32a-43c2-9394-24b6976c0624" + ], + "Request-Id": [ + "363febf2-f32a-43c2-9394-24b6976c0624" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/clone", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb25l", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"version\": \"\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "21" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Version Id can consist only of characters, digits or '.'\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "126" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "00165a0e-8c02-4b56-9f0b-ed0b26445726" + ], + "Request-Id": [ + "00165a0e-8c02-4b56-9f0b-ed0b26445726" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteUnlabelledUtterance.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteUnlabelledUtterance.json new file mode 100644 index 000000000000..aabda666e799 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteUnlabelledUtterance.json @@ -0,0 +1,287 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:17Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d64c42da-af72-4aa7-90a7-16804060869e" + ], + "Request-Id": [ + "d64c42da-af72-4aa7-90a7-16804060869e" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"CheckAvailability\"\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Delete\"\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\",\r\n \"customPrebuiltDomainName\": \"Calendar\",\r\n \"customPrebuiltModelName\": \"Edit\"\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"typeId\": 0,\r\n \"readableType\": \"Intent Classifier\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1282" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d0038949-308a-4cdc-a192-a6bad593d9c8" + ], + "Request-Id": [ + "d0038949-308a-4cdc-a192-a6bad593d9c8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/f83dcca6-7bfc-44f9-9bbb-b6285c239da3/suggest?take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvZjgzZGNjYTYtN2JmYy00NGY5LTliYmItYjYyODVjMjM5ZGEzL3N1Z2dlc3Q/dGFrZT0xMDA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"text\": \"today\",\r\n \"tokenizedText\": [\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"3-3-2017\",\r\n \"tokenizedText\": [\r\n \"3\",\r\n \"-\",\r\n \"3\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"3-3-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dme\",\r\n \"tokenizedText\": [\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"5/17/2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"/\",\r\n \"17\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5/17/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"airport\",\r\n \"tokenizedText\": [\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"10/10/2017\",\r\n \"tokenizedText\": [\r\n \"10\",\r\n \"/\",\r\n \"10\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.97\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"10/10/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"n\",\r\n \"tokenizedText\": [\r\n \"n\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find airport with code atl\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"atl\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"atl\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"shiet\",\r\n \"tokenizedText\": [\r\n \"shiet\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"eze\",\r\n \"tokenizedText\": [\r\n \"eze\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tomorrow\",\r\n \"tokenizedText\": [\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.49\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find zzz airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"zzz\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"zzz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.34\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel from today till next monday\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"from\",\r\n \"today\",\r\n \"till\",\r\n \"next\",\r\n \"monday\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"1a6c8585-d882-4370-987b-c07553781e93\",\r\n \"entityName\": \"Checkout\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"next monday\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"next monday\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in miami\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"get weather in moscow\",\r\n \"tokenizedText\": [\r\n \"get\",\r\n \"weather\",\r\n \"in\",\r\n \"moscow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"moscow\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change location\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.25\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.16\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"hey\",\r\n \"tokenizedText\": [\r\n \"hey\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"adweqwe\",\r\n \"tokenizedText\": [\r\n \"adweqwe\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"dude\",\r\n \"tokenizedText\": [\r\n \"dude\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change location to barcelona\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me airport juj\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"as\",\r\n \"tokenizedText\": [\r\n \"as\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"buenos aires\",\r\n \"tokenizedText\": [\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.15\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.08\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"madrid\",\r\n \"tokenizedText\": [\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.51\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"sorry, find me airport code juj\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"code\",\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"lugano\",\r\n \"tokenizedText\": [\r\n \"lugano\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change hotel location\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"hotel\",\r\n \"location\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.23\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find kef airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"kef\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"kef\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 start hotels in barcelona\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"start\",\r\n \"hotels\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"5\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 start\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona from today\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"from\",\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"five star hotels\",\r\n \"tokenizedText\": [\r\n \"five\",\r\n \"star\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find me a 3 stars hotel in madrid\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"change hotel location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, \\\"next day\\\"\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"\\\"\",\r\n \"next\",\r\n \"day\",\r\n \"\\\"\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"[object object]\",\r\n \"tokenizedText\": [\r\n \"[\",\r\n \"object\",\r\n \"object\",\r\n \"]\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"dme airport\",\r\n \"tokenizedText\": [\r\n \"dme\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find airport dme\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"dme\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find an airport first\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"an\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"how is the weather in buenos aires?\",\r\n \"tokenizedText\": [\r\n \"how\",\r\n \"is\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"buenos\",\r\n \"aires\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.98\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search hotels, seattle\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"seattle\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"juj\",\r\n \"tokenizedText\": [\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona for today\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\",\r\n \"for\",\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"algo?\",\r\n \"tokenizedText\": [\r\n \"algo\",\r\n \"?\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.32\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search hotels, \\\"past tomorrow\\\"\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"\\\"\",\r\n \"past\",\r\n \"tomorrow\",\r\n \"\\\"\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tac\",\r\n \"tokenizedText\": [\r\n \"tac\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"time miami\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.13\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "46758" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "39e2aa8f-fb4a-4e0b-8456-bab2425f55ae" + ], + "Request-Id": [ + "39e2aa8f-fb4a-4e0b-8456-bab2425f55ae" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/f83dcca6-7bfc-44f9-9bbb-b6285c239da3/suggest?take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2ludGVudHMvZjgzZGNjYTYtN2JmYy00NGY5LTliYmItYjYyODVjMjM5ZGEzL3N1Z2dlc3Q/dGFrZT0xMDA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"text\": \"tomorrow\",\r\n \"tokenizedText\": [\r\n \"tomorrow\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.49\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"tomorrow\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me airport with code bcn\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"bcn\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"bcn\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dme\",\r\n \"tokenizedText\": [\r\n \"dme\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.61\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.09\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change location\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.25\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.16\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"hey\",\r\n \"tokenizedText\": [\r\n \"hey\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"eze\",\r\n \"tokenizedText\": [\r\n \"eze\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.28\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"eze\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"tell me the weather in san francisco\",\r\n \"tokenizedText\": [\r\n \"tell\",\r\n \"me\",\r\n \"the\",\r\n \"weather\",\r\n \"in\",\r\n \"san\",\r\n \"francisco\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"san francisco\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for airport\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search hotels, buenos aires\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"buenos\",\r\n \"aires\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"buenos aires\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"dude\",\r\n \"tokenizedText\": [\r\n \"dude\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.21\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"maybe find me an airport first\",\r\n \"tokenizedText\": [\r\n \"maybe\",\r\n \"find\",\r\n \"me\",\r\n \"an\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find airport with code atl\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"airport\",\r\n \"with\",\r\n \"code\",\r\n \"atl\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"atl\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"loz\",\r\n \"tokenizedText\": [\r\n \"loz\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 0,\r\n \"phrase\": \"loz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"05-27-2017\",\r\n \"tokenizedText\": [\r\n \"05\",\r\n \"-\",\r\n \"27\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.83\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"05-27-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find zzz airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"zzz\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"zzz\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"1-1-2017\",\r\n \"tokenizedText\": [\r\n \"1\",\r\n \"-\",\r\n \"1\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.87\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"1-1-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"wat\",\r\n \"tokenizedText\": [\r\n \"wat\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"3-3-2017\",\r\n \"tokenizedText\": [\r\n \"3\",\r\n \"-\",\r\n \"3\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"3-3-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 stars hotels in barcelo\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"stars\",\r\n \"hotels\",\r\n \"in\",\r\n \"barcelo\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"barcelo\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"search for 5 start hotels in jujuy\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"for\",\r\n \"5\",\r\n \"start\",\r\n \"hotels\",\r\n \"in\",\r\n \"jujuy\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"5\",\r\n \"entityType\": 2\r\n },\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"5 start\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"jujuy\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find me airport code juj\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"code\",\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"[object object]\",\r\n \"tokenizedText\": [\r\n \"[\",\r\n \"object\",\r\n \"object\",\r\n \"]\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.05\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"time miami\",\r\n \"tokenizedText\": [\r\n \"time\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.13\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search hotels, \\\"next day\\\"\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"\\\"\",\r\n \"next\",\r\n \"day\",\r\n \"\\\"\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"11/11/2017\",\r\n \"tokenizedText\": [\r\n \"11\",\r\n \"/\",\r\n \"11\",\r\n \"/\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.88\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"11/11/2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find hotel in madrid for today\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"hotel\",\r\n \"in\",\r\n \"madrid\",\r\n \"for\",\r\n \"today\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"4bc77d32-40bb-4b05-8b0c-41e912dc223d\",\r\n \"entityName\": \"Checkin\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 4\r\n },\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"today\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"5-5-2017\",\r\n \"tokenizedText\": [\r\n \"5\",\r\n \"-\",\r\n \"5\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.86\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"5-5-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a 3 stars hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"3\",\r\n \"stars\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 7,\r\n \"endTokenIndex\": 7,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"lugano\",\r\n \"tokenizedText\": [\r\n \"lugano\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.64\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"sorry, find me airport juj\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"me\",\r\n \"airport\",\r\n \"juj\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"juj\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find 3 stars deluxe room in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"3\",\r\n \"stars\",\r\n \"deluxe\",\r\n \"room\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"7fa94cf1-47a4-4761-9a43-ad3dffaca8e1\",\r\n \"entityName\": \"Category\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"3 stars\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"14c2528c-287d-45f4-939f-626d2a659aeb\",\r\n \"entityName\": \"RoomType\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"deluxe\",\r\n \"entityType\": 1\r\n },\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 6,\r\n \"endTokenIndex\": 6,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"whats the time in miami\",\r\n \"tokenizedText\": [\r\n \"whats\",\r\n \"the\",\r\n \"time\",\r\n \"in\",\r\n \"miami\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"miami\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"sorry, find an airport first\",\r\n \"tokenizedText\": [\r\n \"sorry\",\r\n \",\",\r\n \"find\",\r\n \"an\",\r\n \"airport\",\r\n \"first\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"search hotels, seattle\",\r\n \"tokenizedText\": [\r\n \"search\",\r\n \"hotels\",\r\n \",\",\r\n \"seattle\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.02\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"madrid\",\r\n \"tokenizedText\": [\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.51\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"find kef airport\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"kef\",\r\n \"airport\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"8a09378c-64fc-4f63-a2cc-c19a4d44942b\",\r\n \"entityName\": \"Code\",\r\n \"startTokenIndex\": 1,\r\n \"endTokenIndex\": 1,\r\n \"phrase\": \"kef\",\r\n \"entityType\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"barcelona hotels\",\r\n \"tokenizedText\": [\r\n \"barcelona\",\r\n \"hotels\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.14\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change hotel location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"hotel\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.31\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 4,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"show me the weather\",\r\n \"tokenizedText\": [\r\n \"show\",\r\n \"me\",\r\n \"the\",\r\n \"weather\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"change location to madrid\",\r\n \"tokenizedText\": [\r\n \"change\",\r\n \"location\",\r\n \"to\",\r\n \"madrid\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.34\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.03\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 3,\r\n \"endTokenIndex\": 3,\r\n \"phrase\": \"madrid\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"find me a hotel in barcelona\",\r\n \"tokenizedText\": [\r\n \"find\",\r\n \"me\",\r\n \"a\",\r\n \"hotel\",\r\n \"in\",\r\n \"barcelona\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 5,\r\n \"endTokenIndex\": 5,\r\n \"phrase\": \"barcelona\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"2-2-2017\",\r\n \"tokenizedText\": [\r\n \"2\",\r\n \"-\",\r\n \"2\",\r\n \"-\",\r\n \"2017\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.87\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"e221132c-d612-4a6d-a7fe-769ebd8d6b00\",\r\n \"entityName\": \"datetime\",\r\n \"startTokenIndex\": 0,\r\n \"endTokenIndex\": 4,\r\n \"phrase\": \"2-2-2017\",\r\n \"entityType\": 2\r\n }\r\n ]\r\n },\r\n {\r\n \"text\": \"shiet\",\r\n \"tokenizedText\": [\r\n \"shiet\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 1.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": []\r\n },\r\n {\r\n \"text\": \"weather in poland\",\r\n \"tokenizedText\": [\r\n \"weather\",\r\n \"in\",\r\n \"poland\"\r\n ],\r\n \"intentPredictions\": [\r\n {\r\n \"id\": \"dbb1ece5-6703-4a54-97c1-e989b429aed8\",\r\n \"name\": \"WeatherInPlace\",\r\n \"score\": 0.99\r\n },\r\n {\r\n \"id\": \"76c92d38-2e8e-46f0-9645-5c5040c1bab1\",\r\n \"name\": \"None\",\r\n \"score\": 0.01\r\n },\r\n {\r\n \"id\": \"985650d4-52df-41a9-b536-2509a3994fca\",\r\n \"name\": \"TimeInPlace\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"c0ec08db-e136-4798-823d-9bc9cbbb58ea\",\r\n \"name\": \"FindAirportByCode\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"5b4d2a57-727a-42d7-9e3d-a15aa28975e5\",\r\n \"name\": \"Calendar.Edit\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"f83dcca6-7bfc-44f9-9bbb-b6285c239da3\",\r\n \"name\": \"Calendar.CheckAvailability\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"d772d522-7cf6-4a4b-b628-c8d508a3805a\",\r\n \"name\": \"FindHotels-ChangeLocation\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"da3f90e7-d21a-41a5-98a7-d733d1861ff9\",\r\n \"name\": \"Calendar.Delete\",\r\n \"score\": 0.0\r\n },\r\n {\r\n \"id\": \"9d3cba7e-64dd-4205-9b23-e2642221b7fe\",\r\n \"name\": \"FindHotels\",\r\n \"score\": 0.0\r\n }\r\n ],\r\n \"entityPredictions\": [\r\n {\r\n \"id\": \"c9f080e0-d4ac-453e-8953-96fb3e7de2bd\",\r\n \"entityName\": \"Renamed Entity\",\r\n \"startTokenIndex\": 2,\r\n \"endTokenIndex\": 2,\r\n \"phrase\": \"poland\",\r\n \"entityType\": 4\r\n }\r\n ]\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "44272" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "d51cee93-af9f-45e0-b56a-d53f2f5952dc" + ], + "Request-Id": [ + "d51cee93-af9f-45e0-b56a-d53f2f5952dc" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/suggest", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL3N1Z2dlc3Q=", + "RequestMethod": "DELETE", + "RequestBody": "\"today\"", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "7" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "8291e63f-7997-4e43-b3ab-cf3a2523a1f5" + ], + "Request-Id": [ + "8291e63f-7997-4e43-b3ab-cf3a2523a1f5" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteVersion.json new file mode 100644 index 000000000000..ef445df7e689 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteVersion.json @@ -0,0 +1,293 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:42:57Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:43:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "76033ea6-c52b-4e21-9188-459327817c61" + ], + "Request-Id": [ + "76033ea6-c52b-4e21-9188-459327817c61" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:42:57Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"test\",\r\n \"createdDateTime\": \"2017-12-14T21:43:44Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:44:16Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1496" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:44:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "1e9aa9ea-2aa3-434b-a7a2-7b252f5f38e4" + ], + "Request-Id": [ + "1e9aa9ea-2aa3-434b-a7a2-7b252f5f38e4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:42:57Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 10,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:44:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "aedbde30-f8ad-4ecb-b0a2-0128488b3553" + ], + "Request-Id": [ + "aedbde30-f8ad-4ecb-b0a2-0128488b3553" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/clone", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xL2Nsb25l", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"version\": \"test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "25" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "\"test\"", + "ResponseHeaders": { + "Content-Length": [ + "6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:44:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test" + ], + "Apim-Request-Id": [ + "a2a59265-a47a-42b5-94af-5c0a7768de03" + ], + "Request-Id": [ + "a2a59265-a47a-42b5-94af-5c0a7768de03" + ], + "Operation-Location": [ + "https://api.luis.ai/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvdGVzdC8=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:44:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "26481814-8801-480e-9b87-491b2cfb7dd0" + ], + "Request-Id": [ + "26481814-8801-480e-9b87-491b2cfb7dd0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteVersion_ErrorModel.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteVersion_ErrorModel.json new file mode 100644 index 000000000000..e61bf0896c04 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/DeleteVersion_ErrorModel.json @@ -0,0 +1,116 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:17Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "426ff5b9-3775-4281-bdd1-53bd5b29ce64" + ], + "Request-Id": [ + "426ff5b9-3775-4281-bdd1-53bd5b29ce64" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.10/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xMC8=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Cannot find a task with the specified version ID\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "118" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0622ced3-ccdd-4779-8abb-68d3ddef38d8" + ], + "Request-Id": [ + "0622ced3-ccdd-4779-8abb-68d3ddef38d8" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/GetVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/GetVersion.json new file mode 100644 index 000000000000..a0c99da0cf52 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/GetVersion.json @@ -0,0 +1,171 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:17Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "4a6736d6-a3c0-420c-a979-d66b456ecc8d" + ], + "Request-Id": [ + "4a6736d6-a3c0-420c-a979-d66b456ecc8d" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xLw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:17Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "532" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "dbac28b9-9a1e-410c-8af0-3469254f6e9a" + ], + "Request-Id": [ + "dbac28b9-9a1e-410c-8af0-3469254f6e9a" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.2/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4yLw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "24ac878f-dd26-4c0d-8ff7-cff60982c680" + ], + "Request-Id": [ + "24ac878f-dd26-4c0d-8ff7-cff60982c680" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/GetVersion_ErrorVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/GetVersion_ErrorVersion.json new file mode 100644 index 000000000000..8ff162cb73ac --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/GetVersion_ErrorVersion.json @@ -0,0 +1,116 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:04:37Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "3d8797e1-0254-498b-a52c-5cb797155f1f" + ], + "Request-Id": [ + "3d8797e1-0254-498b-a52c-5cb797155f1f" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1_/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xXy8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Cannot find a task with the specified version ID\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "118" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "12d58797-fc08-4cd6-b26b-d465129280fa" + ], + "Request-Id": [ + "12d58797-fc08-4cd6-b26b-d465129280fa" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions.json new file mode 100644 index 000000000000..6bac1afa68ae --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:04:37Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0da7aab7-37ca-4fd3-b84d-1810d9e64985" + ], + "Request-Id": [ + "0da7aab7-37ca-4fd3-b84d-1810d9e64985" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions_ErrorAppId.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions_ErrorAppId.json new file mode 100644 index 000000000000..a141ba44b2bd --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions_ErrorAppId.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07d/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2QvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "eceb0cb667234559aac66496e66aac3f" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Cannot find an application with the specified ID\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "118" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:36:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "c93b0059-5ea5-4316-a8fe-039e2b874a73" + ], + "Request-Id": [ + "c93b0059-5ea5-4316-a8fe-039e2b874a73" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions_ErrorSubscriptionKey.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions_ErrorSubscriptionKey.json new file mode 100644 index 000000000000..98879330b983 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/ListVersions_ErrorSubscriptionKey.json @@ -0,0 +1,47 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "3eff76bb229942899255402725b72933", + "eceb0cb667234559aac66496e66aac3f" + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"statusCode\": 401,\r\n \"message\": \"Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "143" + ], + "Content-Type": [ + "application/json" + ], + "Date": [ + "Thu, 14 Dec 2017 21:36:33 GMT" + ], + "WWW-Authenticate": [ + "AzureApiManagementKey realm=\"https://westus.api.cognitive.microsoft.com/luis/api/v2.0\",name=\"Ocp-Apim-Subscription-Key\",type=\"header\"" + ], + "apim-request-id": [ + "f8a1af8c-786c-407b-89a0-0fc4f05f542a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "StatusCode": 401 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/UpdateVersion.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/UpdateVersion.json new file mode 100644 index 000000000000..48dbdca2b31c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/UpdateVersion.json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:04:37Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "48062ea1-224e-4c06-aaef-24dd5adbfaa6" + ], + "Request-Id": [ + "48062ea1-224e-4c06-aaef-24dd5adbfaa6" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"test\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:16Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1015" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "385b4fda-642f-4da8-b17c-b0b394e72da4" + ], + "Request-Id": [ + "385b4fda-642f-4da8-b17c-b0b394e72da4" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xLw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"version\": \"test\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "25" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "a227abc0-7044-46fa-9e26-595970c2de01" + ], + "Request-Id": [ + "a227abc0-7044-46fa-9e26-595970c2de01" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/test/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvdGVzdC8=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"version\": \"0.1\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "24" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"Success\",\r\n \"message\": \"Operation Successful\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "437721c5-af40-4504-86c8-ffae08b789a0" + ], + "Request-Id": [ + "437721c5-af40-4504-86c8-ffae08b789a0" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/UpdateVersion_ErrorModel.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/UpdateVersion_ErrorModel.json new file mode 100644 index 000000000000..7e4b8a8b99fa --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.Tests/SessionRecords/LUIS.Programmatic.Tests.Luis.VersionsTests/UpdateVersion_ErrorModel.json @@ -0,0 +1,122 @@ +{ + "Entries": [ + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions?skip=0&take=100", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnM/c2tpcD0wJnRha2U9MTAw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "[\r\n {\r\n \"version\": \"0.1\",\r\n \"createdDateTime\": \"2017-02-09T14:01:45Z\",\r\n \"lastModifiedDateTime\": \"2017-12-14T21:37:17Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": \"2017-12-12T21:59:37Z\",\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"00000000000000000000000000000000\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": null\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 9,\r\n \"entitiesCount\": 11,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n },\r\n {\r\n \"version\": \"0.2\",\r\n \"createdDateTime\": \"2017-11-30T22:57:36Z\",\r\n \"lastModifiedDateTime\": \"2017-11-30T22:57:41Z\",\r\n \"lastTrainedDateTime\": null,\r\n \"lastPublishedDateTime\": null,\r\n \"endpointUrl\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b\",\r\n \"assignedEndpointKey\": {\r\n \"SubscriptionKey\": \"\",\r\n \"SubscriptionRegion\": \"westus\",\r\n \"SubscriptionName\": \"\"\r\n },\r\n \"externalApiKeys\": {},\r\n \"intentsCount\": 5,\r\n \"entitiesCount\": 4,\r\n \"endpointHitsCount\": 0,\r\n \"trainingStatus\": \"NeedsTraining\"\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "1014" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "ea1a492d-43dd-48b0-8005-190f10465a02" + ], + "Request-Id": [ + "ea1a492d-43dd-48b0-8005-190f10465a02" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/", + "EncodedRequestUri": "L2x1aXMvYXBpL3YyLjAvYXBwcy84NjIyNmM1My1iN2E2LTQxNmYtODc2Yi0yMjZiMmI1YWIwN2IvdmVyc2lvbnMvMC4xLw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"version\": \"\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "21" + ], + "Ocp-Apim-Subscription-Key": [ + "00000000000000000000000000000000 " + ], + "User-Agent": [ + "FxVersion/4.6.25815.04", + "Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.LuisProgrammaticAPI/0.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Version Id can consist only of characters, digits or '.'\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "126" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Cache-Control": [ + "no-store, proxy-revalidate, no-cache, max-age=0, private" + ], + "Date": [ + "Thu, 14 Dec 2017 21:37:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Apim-Request-Id": [ + "0d213c0d-2823-4a4f-b596-2c2d04dcdbd1" + ], + "Request-Id": [ + "0d213c0d-2823-4a4f-b596-2c2d04dcdbd1" + ], + "Request-Context": [ + "appId=cid-v1:26a3540d-a02a-4998-a060-715488fd769b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains; preload" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.sln b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.sln new file mode 100644 index 000000000000..669cdb5fe4eb --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic.sln @@ -0,0 +1,50 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27004.2009 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.CognitiveServices.LUIS.Programmatic", "Programmatic\Microsoft.Azure.CognitiveServices.LUIS.Programmatic.csproj", "{6734CDC4-4AC1-493E-B0ED-A8A393630E00}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.CognitiveServices.LUIS.Programmatic.Tests", "Programmatic.Tests\Microsoft.Azure.CognitiveServices.LUIS.Programmatic.Tests.csproj", "{05C55498-B076-4D61-9F16-4F853F3300F5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Debug|x64.ActiveCfg = Debug|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Debug|x64.Build.0 = Debug|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Debug|x86.ActiveCfg = Debug|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Debug|x86.Build.0 = Debug|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Release|Any CPU.Build.0 = Release|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Release|x64.ActiveCfg = Release|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Release|x64.Build.0 = Release|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Release|x86.ActiveCfg = Release|Any CPU + {6734CDC4-4AC1-493E-B0ED-A8A393630E00}.Release|x86.Build.0 = Release|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Debug|x64.ActiveCfg = Debug|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Debug|x64.Build.0 = Debug|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Debug|x86.ActiveCfg = Debug|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Debug|x86.Build.0 = Debug|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Release|Any CPU.Build.0 = Release|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Release|x64.ActiveCfg = Release|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Release|x64.Build.0 = Release|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Release|x86.ActiveCfg = Release|Any CPU + {05C55498-B076-4D61-9F16-4F853F3300F5}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EFBCDA3E-F7DB-403F-9951-428BBD603FDB} + EndGlobalSection +EndGlobal diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Customizations/ApiKeyServiceClientCredentials.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Customizations/ApiKeyServiceClientCredentials.cs new file mode 100644 index 000000000000..47fbcc1e3807 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Customizations/ApiKeyServiceClientCredentials.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using Microsoft.Rest; + + /// + /// Allows authentication to the API using a basic apiKey mechanism. + /// + public class ApiKeyServiceClientCredentials : ServiceClientCredentials + { + private readonly string subscriptionKey; + + /// + /// Creates a new instance of the ApiKeyServiceClientCredentails class. + /// + /// The subscription key to authenticate and authorize as. + public ApiKeyServiceClientCredentials(string subscriptionKey) + { + if (string.IsNullOrWhiteSpace(subscriptionKey)) + throw new ArgumentNullException("subscriptionKey"); + + this.subscriptionKey = subscriptionKey; + } + + /// + /// Add the Basic Authentication Header to each outgoing request. + /// + /// The outgoing request. + /// A token to cancel the operation. + public override Task ProcessHttpRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + if (request == null) + throw new ArgumentNullException("request"); + + request.Headers.Add("Ocp-Apim-Subscription-Key", this.subscriptionKey); + + return Task.FromResult(null); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Customizations/Models/ErrorResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Customizations/Models/ErrorResponse.cs new file mode 100644 index 000000000000..66d36246d926 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Customizations/Models/ErrorResponse.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic.Models +{ + using Newtonsoft.Json; + + public partial class ErrorResponse + { + private string code; + private string message; + + /// + /// Error code. + /// + public string Code + { + get + { + if (code == null) + { + code = GetCodeFromAdditionalProperties(); + } + return code; + } + } + + /// + /// A description of the error. + /// + public string Message + { + get + { + if (message == null) + { + message = GetMessageFromAdditionalProperties(); + } + return message; + } + } + + private string GetCodeFromAdditionalProperties() + { + if (AdditionalProperties == null) return "Generic error"; + if (AdditionalProperties.TryGetValue("error", out object data)) + { + var error = JsonConvert.DeserializeObject(data.ToString()); + return error.Code; + } + if (AdditionalProperties.TryGetValue("statusCode", out data)) + { + return data.ToString(); + } + return "Generic error"; + } + + private string GetMessageFromAdditionalProperties() + { + if (AdditionalProperties == null) return "Generic error"; + if (AdditionalProperties.TryGetValue("error", out object data)) + { + var error = JsonConvert.DeserializeObject(data.ToString()); + return error.Message; + } + if (AdditionalProperties.TryGetValue("message", out data)) + { + return data.ToString(); + } + return "Generic message"; + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Apps.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Apps.cs new file mode 100644 index 000000000000..8ff18373e3a6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Apps.cs @@ -0,0 +1,2678 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Apps operations. + /// + public partial class Apps : IServiceOperations, IApps + { + /// + /// Initializes a new instance of the Apps class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Apps(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Creates a new LUIS app. + /// + /// + /// A model containing Name, Description (optional), Culture, Usage Scenario + /// (optional), Domain (optional) and initial version ID (optional) of the + /// application. Default value for the version ID is 0.1. Note: the culture + /// cannot be changed after the app is created. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddWithHttpMessagesAsync(ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (applicationCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "applicationCreateObject"); + } + if (applicationCreateObject != null) + { + applicationCreateObject.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("applicationCreateObject", applicationCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(applicationCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applicationCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the user applications. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Imports an application to LUIS, the application's structure should be + /// included in in the request body. + /// + /// + /// A LUIS application structure. + /// + /// + /// The application name to create. If not specified, the application name will + /// be read from the imported object. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ImportWithHttpMessagesAsync(LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (luisApp == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "luisApp"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appName", appName); + tracingParameters.Add("luisApp", luisApp); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Import", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/import"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + List _queryParameters = new List(); + if (appName != null) + { + _queryParameters.Add(string.Format("appName={0}", System.Uri.EscapeDataString(appName))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(luisApp != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(luisApp, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the endpoint URLs for the prebuilt Cortana applications. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListCortanaEndpointsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListCortanaEndpoints", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/assistants"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the available application domains. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListDomains", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/domains"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the application available usage scenarios. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListUsageScenariosWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListUsageScenarios", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/usagescenarios"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the supported application cultures. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListSupportedCulturesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListSupportedCultures", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/cultures"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the query logs of the past month for the application. + /// + /// + /// The application ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DownloadQueryLogsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DownloadQueryLogs", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/querylogs"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + if (_httpResponse.Content != null) { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + } + else { + _responseContent = string.Empty; + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the application info. + /// + /// + /// The application ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the name or description of the application. + /// + /// + /// The application ID. + /// + /// + /// A model containing Name and Description of the application. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (applicationUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "applicationUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("applicationUpdateObject", applicationUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(applicationUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applicationUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes an application. + /// + /// + /// The application ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Publishes a specific version of the application. + /// + /// + /// The application ID. + /// + /// + /// The application publish object. The region is the target region that the + /// application is published to. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> PublishWithHttpMessagesAsync(System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (applicationPublishObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "applicationPublishObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("applicationPublishObject", applicationPublishObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Publish", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publish"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(applicationPublishObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applicationPublishObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the application settings. + /// + /// + /// The application ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetSettings", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the application settings. + /// + /// + /// The application ID. + /// + /// + /// An object containing the new application settings. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateSettingsWithHttpMessagesAsync(System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (applicationSettingUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "applicationSettingUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("applicationSettingUpdateObject", applicationSettingUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateSettings", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(applicationSettingUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applicationSettingUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns the available endpoint deployment regions and URLs. + /// + /// + /// The application ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListEndpointsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListEndpoints", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/endpoints"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the available custom prebuilt domains for all cultures. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAvailableCustomPrebuiltDomains", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a prebuilt domain along with its models as a new application. + /// + /// + /// A prebuilt domain create object containing the name and culture of the + /// domain. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (prebuiltDomainCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltDomainCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("prebuiltDomainCreateObject", prebuiltDomainCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddCustomPrebuiltDomain", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(prebuiltDomainCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltDomainCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the available custom prebuilt domains for a specific culture. + /// + /// + /// Culture. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (culture == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "culture"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("culture", culture); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAvailableCustomPrebuiltDomainsForCulture", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains/{culture}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{culture}", System.Uri.EscapeDataString(culture)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/AppsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/AppsExtensions.cs new file mode 100644 index 000000000000..fa6db61b99f8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/AppsExtensions.cs @@ -0,0 +1,392 @@ +// +// 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.Programmatic +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Apps. + /// + public static partial class AppsExtensions + { + /// + /// Creates a new LUIS app. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A model containing Name, Description (optional), Culture, Usage Scenario + /// (optional), Domain (optional) and initial version ID (optional) of the + /// application. Default value for the version ID is 0.1. Note: the culture + /// cannot be changed after the app is created. + /// + /// + /// The cancellation token. + /// + public static async Task AddAsync(this IApps operations, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddWithHttpMessagesAsync(applicationCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the user applications. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IApps operations, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Imports an application to LUIS, the application's structure should be + /// included in in the request body. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A LUIS application structure. + /// + /// + /// The application name to create. If not specified, the application name will + /// be read from the imported object. + /// + /// + /// The cancellation token. + /// + public static async Task ImportAsync(this IApps operations, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportWithHttpMessagesAsync(luisApp, appName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the endpoint URLs for the prebuilt Cortana applications. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task ListCortanaEndpointsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the available application domains. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the application available usage scenarios. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListUsageScenariosAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the supported application cultures. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListSupportedCulturesAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the query logs of the past month for the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The cancellation token. + /// + public static async Task DownloadQueryLogsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + { + var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false); + _result.Request.Dispose(); + return _result.Body; + } + + /// + /// Gets the application info. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the name or description of the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// A model containing Name and Description of the application. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IApps operations, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Publishes a specific version of the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The application publish object. The region is the target region that the + /// application is published to. + /// + /// + /// The cancellation token. + /// + public static async Task PublishAsync(this IApps operations, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PublishWithHttpMessagesAsync(appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the application settings. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the application settings. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// An object containing the new application settings. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateSettingsAsync(this IApps operations, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns the available endpoint deployment regions and URLs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The cancellation token. + /// + public static async Task> ListEndpointsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the available custom prebuilt domains for all cultures. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAvailableCustomPrebuiltDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a prebuilt domain along with its models as a new application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A prebuilt domain create object containing the name and culture of the + /// domain. + /// + /// + /// The cancellation token. + /// + public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the available custom prebuilt domains for a specific culture. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Culture. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, string culture, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(culture, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Examples.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Examples.cs new file mode 100644 index 000000000000..8eb21acbce88 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Examples.cs @@ -0,0 +1,754 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Examples operations. + /// + public partial class Examples : IServiceOperations, IExamples + { + /// + /// Initializes a new instance of the Examples class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Examples(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Adds a labeled example to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// An example label with the expected intent and entities. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddWithHttpMessagesAsync(System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (exampleLabelObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "exampleLabelObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("exampleLabelObject", exampleLabelObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/example"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(exampleLabelObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(exampleLabelObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a batch of labeled examples to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Array of examples. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> BatchWithHttpMessagesAsync(System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (exampleLabelObjectArray == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "exampleLabelObjectArray"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("exampleLabelObjectArray", exampleLabelObjectArray); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Batch", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(exampleLabelObjectArray != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(exampleLabelObjectArray, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201 && (int)_statusCode != 207) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 207) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns examples to be reviewed. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the labeled example with the specified ID. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The example ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("exampleId", exampleId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples/{exampleId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{exampleId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(exampleId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ExamplesExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ExamplesExtensions.cs new file mode 100644 index 000000000000..91110671cb73 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ExamplesExtensions.cs @@ -0,0 +1,132 @@ +// +// 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.Programmatic +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Examples. + /// + public static partial class ExamplesExtensions + { + /// + /// Adds a labeled example to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// An example label with the expected intent and entities. + /// + /// + /// The cancellation token. + /// + public static async Task AddAsync(this IExamples operations, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddWithHttpMessagesAsync(appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a batch of labeled examples to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Array of examples. + /// + /// + /// The cancellation token. + /// + public static async Task> BatchAsync(this IExamples operations, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BatchWithHttpMessagesAsync(appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns examples to be reviewed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IExamples operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the labeled example with the specified ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The example ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IExamples operations, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, versionId, exampleId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Features.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Features.cs new file mode 100644 index 000000000000..3c95eec68cec --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Features.cs @@ -0,0 +1,1086 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Features operations. + /// + public partial class Features : IServiceOperations, IFeatures + { + /// + /// Initializes a new instance of the Features class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Features(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Creates a new phraselist feature. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A Phraselist object containing Name, comma-separated Phrases and the + /// isExchangeable boolean. Default value for isExchangeable is true. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (phraselistCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "phraselistCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("phraselistCreateObject", phraselistCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddPhraseList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(phraselistCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the phraselist features. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListPhraseListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListPhraseLists", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the extraction features for the specified application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/features"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets phraselist feature info. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be retrieved. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("phraselistId", phraselistId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetPhraseList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{phraselistId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the phrases, the state and the name of the phraselist feature. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be updated. + /// + /// + /// The new values for: - Just a boolean called IsActive, in which case the + /// status of the feature will be changed. - Name, Pattern, Mode, and a boolean + /// called IsActive to update the feature. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdatePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("phraselistId", phraselistId); + tracingParameters.Add("phraselistUpdateObject", phraselistUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdatePhraseList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{phraselistId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(phraselistUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a phraselist feature. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be deleted. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeletePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("phraselistId", phraselistId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeletePhraseList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{phraselistId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/FeaturesExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/FeaturesExtensions.cs new file mode 100644 index 000000000000..a4e00a009e13 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/FeaturesExtensions.cs @@ -0,0 +1,193 @@ +// +// 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.Programmatic +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Features. + /// + public static partial class FeaturesExtensions + { + /// + /// Creates a new phraselist feature. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A Phraselist object containing Name, comma-separated Phrases and the + /// isExchangeable boolean. Default value for isExchangeable is true. + /// + /// + /// The cancellation token. + /// + public static async Task AddPhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddPhraseListWithHttpMessagesAsync(appId, versionId, phraselistCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the phraselist features. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListPhraseListsAsync(this IFeatures operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPhraseListsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the extraction features for the specified application version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task ListAsync(this IFeatures operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets phraselist feature info. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be retrieved. + /// + /// + /// The cancellation token. + /// + public static async Task GetPhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetPhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the phrases, the state and the name of the phraselist feature. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be updated. + /// + /// + /// The new values for: - Just a boolean called IsActive, in which case the + /// status of the feature will be changed. - Name, Pattern, Mode, and a boolean + /// called IsActive to update the feature. + /// + /// + /// The cancellation token. + /// + public static async Task UpdatePhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdatePhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, phraselistUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a phraselist feature. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task DeletePhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeletePhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IApps.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IApps.cs new file mode 100644 index 000000000000..b5264fb16653 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IApps.cs @@ -0,0 +1,399 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Apps operations. + /// + public partial interface IApps + { + /// + /// Creates a new LUIS app. + /// + /// + /// A model containing Name, Description (optional), Culture, Usage + /// Scenario (optional), Domain (optional) and initial version ID + /// (optional) of the application. Default value for the version ID is + /// 0.1. Note: the culture cannot be changed after the app is created. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddWithHttpMessagesAsync(ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the user applications. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListWithHttpMessagesAsync(int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports an application to LUIS, the application's structure should + /// be included in in the request body. + /// + /// + /// A LUIS application structure. + /// + /// + /// The application name to create. If not specified, the application + /// name will be read from the imported object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportWithHttpMessagesAsync(LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the endpoint URLs for the prebuilt Cortana applications. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task> ListCortanaEndpointsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the available application domains. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the application available usage scenarios. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListUsageScenariosWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the supported application cultures. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListSupportedCulturesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the query logs of the past month for the application. + /// + /// + /// The application ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task> DownloadQueryLogsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the application info. + /// + /// + /// The application ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task> GetWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the name or description of the application. + /// + /// + /// The application ID. + /// + /// + /// A model containing Name and Description of the application. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an application. + /// + /// + /// The application ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task> DeleteWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Publishes a specific version of the application. + /// + /// + /// The application ID. + /// + /// + /// The application publish object. The region is the target region + /// that the application is published to. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PublishWithHttpMessagesAsync(System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the application settings. + /// + /// + /// The application ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task> GetSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the application settings. + /// + /// + /// The application ID. + /// + /// + /// An object containing the new application settings. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateSettingsWithHttpMessagesAsync(System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns the available endpoint deployment regions and URLs. + /// + /// + /// The application ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListEndpointsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the available custom prebuilt domains for all cultures. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a prebuilt domain along with its models as a new application. + /// + /// + /// A prebuilt domain create object containing the name and culture of + /// the domain. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the available custom prebuilt domains for a specific + /// culture. + /// + /// + /// Culture. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IExamples.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IExamples.cs new file mode 100644 index 000000000000..5c8c2de0b3e2 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IExamples.cs @@ -0,0 +1,142 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Examples operations. + /// + public partial interface IExamples + { + /// + /// Adds a labeled example to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// An example label with the expected intent and entities. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddWithHttpMessagesAsync(System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a batch of labeled examples to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Array of examples. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> BatchWithHttpMessagesAsync(System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns examples to be reviewed. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the labeled example with the specified ID. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The example ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IFeatures.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IFeatures.cs new file mode 100644 index 000000000000..77099145a36d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IFeatures.cs @@ -0,0 +1,211 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Features operations. + /// + public partial interface IFeatures + { + /// + /// Creates a new phraselist feature. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A Phraselist object containing Name, comma-separated Phrases and + /// the isExchangeable boolean. Default value for isExchangeable is + /// true. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the phraselist features. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListPhraseListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the extraction features for the specified application + /// version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets phraselist feature info. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be retrieved. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the phrases, the state and the name of the phraselist + /// feature. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be updated. + /// + /// + /// The new values for: - Just a boolean called IsActive, in which case + /// the status of the feature will be changed. - Name, Pattern, Mode, + /// and a boolean called IsActive to update the feature. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdatePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a phraselist feature. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The ID of the feature to be deleted. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeletePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ILuisProgrammaticAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ILuisProgrammaticAPI.cs new file mode 100644 index 000000000000..65d7f316db99 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ILuisProgrammaticAPI.cs @@ -0,0 +1,86 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + + /// + /// + public partial interface ILuisProgrammaticAPI : System.IDisposable + { + /// + /// The base URI of the service. + /// + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth' + /// + AzureRegions AzureRegion { get; set; } + + /// + /// Subscription credentials which uniquely identify client + /// subscription. + /// + ServiceClientCredentials Credentials { get; } + + + /// + /// Gets the IFeatures. + /// + IFeatures Features { get; } + + /// + /// Gets the IExamples. + /// + IExamples Examples { get; } + + /// + /// Gets the IModel. + /// + IModel Model { get; } + + /// + /// Gets the IApps. + /// + IApps Apps { get; } + + /// + /// Gets the IVersions. + /// + IVersions Versions { get; } + + /// + /// Gets the ITrain. + /// + ITrain Train { get; } + + /// + /// Gets the IPermissions. + /// + IPermissions Permissions { get; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IModel.cs new file mode 100644 index 000000000000..060e4a741711 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IModel.cs @@ -0,0 +1,1519 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Model operations. + /// + public partial interface IModel + { + /// + /// Adds an intent classifier to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the new intent classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddIntentWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the intent models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds an entity extractor to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name for the new entity extractor. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddEntityWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a hierarchical entity extractor to the application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and children of the new entity + /// extractor. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the hierarchical entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a composite entity extractor to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and children of the new entity + /// extractor. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the composite entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListCompositeEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the closedlist models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListClosedListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a closed list model to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and words for the new closed list + /// entity extractor. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a list of prebuilt entity extractors to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// An array of prebuilt entity extractor names. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> AddPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the prebuilt entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListPrebuiltsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the available prebuilt entity extractors for the + /// application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the application version models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListModelsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the intent model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the name of an intent classifier. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// A model object containing the new intent classifier name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an intent classifier from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// Also delete the intent's utterances (true). Or move the utterances + /// to the None intent (false - the default value). + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the name of an entity extractor. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// A model object containing the new entity extractor name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an entity extractor from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the name and children of a hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// Model containing names of the children of the hierarchical entity. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a hierarchical entity extractor from the application + /// version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the composite entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the composite entity extractor. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// A model object containing the new entity extractor name and + /// children. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a composite entity extractor from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information of a closed list model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the closed list model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The new entity name and words list. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a batch of sublists to an existing closedlist. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// A words list batch. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PatchClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a closed list model from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the prebuilt entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The prebuilt entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a prebuilt entity extractor from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The prebuilt entity extractor ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeletePrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a sublist of a specific closed list model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// The sublist ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates one of the closed list's sublists. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// The sublist ID. + /// + /// + /// A sublist update object containing the new canonical form and the + /// list of words. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Suggests examples that would improve the accuracy of the intent + /// model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> GetIntentSuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get suggestion examples that would improve the accuracy of the + /// entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The target entity extractor model to enhance. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> GetEntitySuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a list to an existing closed list. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// Words list. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a customizable prebuilt domain along with all of its models to + /// this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A prebuilt domain create object containing the name of the domain. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a custom prebuilt intent model to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the custom prebuilt intent + /// and the name of the domain to which this model belongs. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets custom prebuilt intents information of this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a custom prebuilt entity model to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the custom prebuilt entity + /// and the name of the domain to which this model belongs. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all custom prebuilt entities information of this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all custom prebuilt models information of this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a prebuilt domain's models from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Domain name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the hierarchical entity child model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Renames a single child in an existing hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// Model object containing new name of the hierarchical entity child. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a hierarchical entity extractor child from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a single child in an existing hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// A model object containing the name of the new hierarchical child + /// model. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a single child in an existing composite entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// A model object containing the name of the new composite child + /// model. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a composite entity extractor child from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IPermissions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IPermissions.cs new file mode 100644 index 000000000000..5ac4f037fc47 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IPermissions.cs @@ -0,0 +1,125 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Permissions operations. + /// + public partial interface IPermissions + { + /// + /// Gets the list of user emails that have permissions to access your + /// application. + /// + /// + /// The application ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task> ListWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Adds a user to the allowed list of users to access this LUIS + /// application. Users are added using their email address. + /// + /// + /// The application ID. + /// + /// + /// A model containing the user's email address. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Removes a user from the allowed list of users to access this LUIS + /// application. Users are removed using their email address. + /// + /// + /// The application ID. + /// + /// + /// A model containing the user's email address. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Replaces the current users access list with the one sent in the + /// body. If an empty list is sent, all access to other users will be + /// removed. + /// + /// + /// The application ID. + /// + /// + /// A model containing a list of user's email addresses. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ITrain.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ITrain.cs new file mode 100644 index 000000000000..22fff97602e1 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ITrain.cs @@ -0,0 +1,86 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Train operations. + /// + public partial interface ITrain + { + /// + /// Sends a training request for a version of a specified LUIS app. + /// This POST request initiates a request asynchronously. To determine + /// whether the training request is successful, submit a GET request to + /// get training status. Note: The application version is not fully + /// trained unless all the models (intents and entities) are trained + /// successfully or are up to date. To verify training success, get the + /// training status at least once after training is complete. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> TrainVersionWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the training status of all models (intents and entities) for + /// the specified LUIS app. You must call the train API to train the + /// LUIS app before you call this API to get training status. "appID" + /// specifies the LUIS app ID. "versionId" specifies the version number + /// of the LUIS app. For example, "0.1". + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> GetStatusWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IVersions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IVersions.cs new file mode 100644 index 000000000000..6761a123ee1c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/IVersions.cs @@ -0,0 +1,241 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Versions operations. + /// + public partial interface IVersions + { + /// + /// Creates a new version using the current snapshot of the selected + /// application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the new version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CloneWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionCloneObject = default(TaskUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the application versions info. + /// + /// + /// The application ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + Task>> ListWithHttpMessagesAsync(System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the version info. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the name or description of the application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing Name and Description of the application. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports a LUIS application to JSON format. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports a new version into a LUIS application. + /// + /// + /// The application ID. + /// + /// + /// A LUIS application structure. + /// + /// + /// The new versionId to import. If not specified, the versionId will + /// be read from the imported object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportWithHttpMessagesAsync(System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deleted an unlabelled utterance. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The utterance text to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/LuisProgrammaticAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/LuisProgrammaticAPI.cs new file mode 100644 index 000000000000..e6aacc270fe5 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/LuisProgrammaticAPI.cs @@ -0,0 +1,210 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + + public partial class LuisProgrammaticAPI : ServiceClient, ILuisProgrammaticAPI + { + /// + /// The base URI of the service. + /// + internal string BaseUri {get; set;} + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth' + /// + public AzureRegions AzureRegion { get; set; } + + /// + /// Subscription credentials which uniquely identify client subscription. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Gets the IFeatures. + /// + public virtual IFeatures Features { get; private set; } + + /// + /// Gets the IExamples. + /// + public virtual IExamples Examples { get; private set; } + + /// + /// Gets the IModel. + /// + public virtual IModel Model { get; private set; } + + /// + /// Gets the IApps. + /// + public virtual IApps Apps { get; private set; } + + /// + /// Gets the IVersions. + /// + public virtual IVersions Versions { get; private set; } + + /// + /// Gets the ITrain. + /// + public virtual ITrain Train { get; private set; } + + /// + /// Gets the IPermissions. + /// + public virtual IPermissions Permissions { get; private set; } + + /// + /// Initializes a new instance of the LuisProgrammaticAPI class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected LuisProgrammaticAPI(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the LuisProgrammaticAPI class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected LuisProgrammaticAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the LuisProgrammaticAPI class. + /// + /// + /// Required. Subscription credentials which uniquely identify client subscription. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public LuisProgrammaticAPI(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the LuisProgrammaticAPI class. + /// + /// + /// Required. Subscription credentials which uniquely identify client subscription. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public LuisProgrammaticAPI(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Features = new Features(this); + Examples = new Examples(this); + Model = new Model(this); + Apps = new Apps(this); + Versions = new Versions(this); + Train = new Train(this); + Permissions = new Permissions(this); + BaseUri = "https://{AzureRegion}.api.cognitive.microsoft.com/luis/api/v2.0"; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Model.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Model.cs new file mode 100644 index 000000000000..e2597fc1d861 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Model.cs @@ -0,0 +1,8504 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Model operations. + /// + public partial class Model : IServiceOperations, IModel + { + /// + /// Initializes a new instance of the Model class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Model(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Adds an intent classifier to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the new intent classifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddIntentWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (intentCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "intentCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("intentCreateObject", intentCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddIntent", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(intentCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(intentCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + if (_httpResponse.Content != null) { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + } + else { + _responseContent = string.Empty; + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the intent models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListIntents", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds an entity extractor to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name for the new entity extractor. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddEntityWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (modelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "modelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("modelCreateObject", modelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(modelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(modelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListEntities", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a hierarchical entity extractor to the application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and children of the new entity extractor. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (hierarchicalModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "hierarchicalModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hierarchicalModelCreateObject", hierarchicalModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddHierarchicalEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(hierarchicalModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(hierarchicalModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the hierarchical entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListHierarchicalEntities", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a composite entity extractor to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and children of the new entity extractor. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (compositeModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "compositeModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("compositeModelCreateObject", compositeModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddCompositeEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(compositeModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(compositeModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the composite entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListCompositeEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListCompositeEntities", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the closedlist models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListClosedListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListClosedLists", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a closed list model to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and words for the new closed list entity + /// extractor. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (closedListModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "closedListModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("closedListModelCreateObject", closedListModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddClosedList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(closedListModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(closedListModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a list of prebuilt entity extractors to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// An array of prebuilt entity extractor names. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> AddPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (prebuiltExtractorNames == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltExtractorNames"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("prebuiltExtractorNames", prebuiltExtractorNames); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddPrebuilt", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(prebuiltExtractorNames != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltExtractorNames, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the prebuilt entity models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListPrebuiltsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListPrebuilts", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the available prebuilt entity extractors for the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListPrebuiltEntities", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/listprebuilts"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the application version models. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListModelsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListModels", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/models"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the intent model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("intentId", intentId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetIntent", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the name of an intent classifier. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// A model object containing the new intent classifier name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (modelUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "modelUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("intentId", intentId); + tracingParameters.Add("modelUpdateObject", modelUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateIntent", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(modelUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(modelUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes an intent classifier from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// Also delete the intent's utterances (true). Or move the utterances to the + /// None intent (false - the default value). + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("intentId", intentId); + tracingParameters.Add("deleteUtterances", deleteUtterances); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteIntent", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); + List _queryParameters = new List(); + if (deleteUtterances != null) + { + _queryParameters.Add(string.Format("deleteUtterances={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(deleteUtterances, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("entityId", entityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the name of an entity extractor. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// A model object containing the new entity extractor name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (modelUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "modelUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("entityId", entityId); + tracingParameters.Add("modelUpdateObject", modelUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(modelUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(modelUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes an entity extractor from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("entityId", entityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetHierarchicalEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the name and children of a hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// Model containing names of the children of the hierarchical entity. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (hierarchicalModelUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "hierarchicalModelUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("hierarchicalModelUpdateObject", hierarchicalModelUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateHierarchicalEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(hierarchicalModelUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(hierarchicalModelUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a hierarchical entity extractor from the application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteHierarchicalEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the composite entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cEntityId", cEntityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetCompositeEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the composite entity extractor. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// A model object containing the new entity extractor name and children. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (compositeModelUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "compositeModelUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cEntityId", cEntityId); + tracingParameters.Add("compositeModelUpdateObject", compositeModelUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateCompositeEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(compositeModelUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(compositeModelUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a composite entity extractor from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cEntityId", cEntityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCompositeEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information of a closed list model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetClosedList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the closed list model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The new entity name and words list. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (closedListModelUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "closedListModelUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("closedListModelUpdateObject", closedListModelUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateClosedList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(closedListModelUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(closedListModelUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a batch of sublists to an existing closedlist. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// A words list batch. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> PatchClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (closedListModelPatchObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "closedListModelPatchObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("closedListModelPatchObject", closedListModelPatchObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "PatchClosedList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(closedListModelPatchObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(closedListModelPatchObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a closed list model from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteClosedList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the prebuilt entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The prebuilt entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("prebuiltId", prebuiltId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetPrebuilt", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{prebuiltId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a prebuilt entity extractor from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The prebuilt entity extractor ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeletePrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("prebuiltId", prebuiltId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeletePrebuilt", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{prebuiltId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a sublist of a specific closed list model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// The sublist ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("subListId", subListId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteSubList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subListId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(subListId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates one of the closed list's sublists. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// The sublist ID. + /// + /// + /// A sublist update object containing the new canonical form and the list of + /// words. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (wordListBaseUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "wordListBaseUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("subListId", subListId); + tracingParameters.Add("wordListBaseUpdateObject", wordListBaseUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateSubList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subListId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(subListId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(wordListBaseUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(wordListBaseUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Suggests examples that would improve the accuracy of the intent model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetIntentSuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("intentId", intentId); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetIntentSuggestions", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}/suggest"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); + List _queryParameters = new List(); + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get suggestion examples that would improve the accuracy of the entity + /// model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The target entity extractor model to enhance. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetEntitySuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("entityId", entityId); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetEntitySuggestions", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/suggest"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); + List _queryParameters = new List(); + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a list to an existing closed list. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// Words list. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (wordListCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "wordListCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("clEntityId", clEntityId); + tracingParameters.Add("wordListCreateObject", wordListCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddSubList", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(wordListCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(wordListCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a customizable prebuilt domain along with all of its models to this + /// application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A prebuilt domain create object containing the name of the domain. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (prebuiltDomainObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltDomainObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("prebuiltDomainObject", prebuiltDomainObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddCustomPrebuiltDomain", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltdomains"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(prebuiltDomainObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltDomainObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a custom prebuilt intent model to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the custom prebuilt intent and the + /// name of the domain to which this model belongs. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (prebuiltDomainModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltDomainModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("prebuiltDomainModelCreateObject", prebuiltDomainModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddCustomPrebuiltIntent", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltintents"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(prebuiltDomainModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltDomainModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets custom prebuilt intents information of this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListCustomPrebuiltIntents", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltintents"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a custom prebuilt entity model to the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the custom prebuilt entity and the + /// name of the domain to which this model belongs. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (prebuiltDomainModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltDomainModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("prebuiltDomainModelCreateObject", prebuiltDomainModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddCustomPrebuiltEntity", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(prebuiltDomainModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltDomainModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all custom prebuilt entities information of this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListCustomPrebuiltEntities", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all custom prebuilt models information of this application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListCustomPrebuiltModels", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltmodels"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a prebuilt domain's models from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Domain name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (domainName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "domainName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("domainName", domainName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCustomPrebuiltDomain", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{domainName}", System.Uri.EscapeDataString(domainName)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets information about the hierarchical entity child model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("hChildId", hChildId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetHierarchicalEntityChild", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{hChildId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hChildId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Renames a single child in an existing hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// Model object containing new name of the hierarchical entity child. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (hierarchicalChildModelUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "hierarchicalChildModelUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("hChildId", hChildId); + tracingParameters.Add("hierarchicalChildModelUpdateObject", hierarchicalChildModelUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateHierarchicalEntityChild", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{hChildId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hChildId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(hierarchicalChildModelUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(hierarchicalChildModelUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a hierarchical entity extractor child from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("hChildId", hChildId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteHierarchicalEntityChild", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{hChildId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hChildId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a single child in an existing hierarchical entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// A model object containing the name of the new hierarchical child model. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (hierarchicalChildModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "hierarchicalChildModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("hEntityId", hEntityId); + tracingParameters.Add("hierarchicalChildModelCreateObject", hierarchicalChildModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddHierarchicalEntityChild", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(hierarchicalChildModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(hierarchicalChildModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a single child in an existing composite entity model. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// A model object containing the name of the new composite child model. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (compositeChildModelCreateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "compositeChildModelCreateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cEntityId", cEntityId); + tracingParameters.Add("compositeChildModelCreateObject", compositeChildModelCreateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddCompositeEntityChild", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(compositeChildModelCreateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(compositeChildModelCreateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a composite entity extractor child from the application. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cEntityId", cEntityId); + tracingParameters.Add("cChildId", cChildId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCompositeEntityChild", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{cChildId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cChildId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ModelExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ModelExtensions.cs new file mode 100644 index 000000000000..938c6de8eab7 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/ModelExtensions.cs @@ -0,0 +1,1401 @@ +// +// 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.Programmatic +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Model. + /// + public static partial class ModelExtensions + { + /// + /// Adds an intent classifier to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the new intent classifier. + /// + /// + /// The cancellation token. + /// + public static async Task AddIntentAsync(this IModel operations, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddIntentWithHttpMessagesAsync(appId, versionId, intentCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the intent models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListIntentsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListIntentsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds an entity extractor to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name for the new entity extractor. + /// + /// + /// The cancellation token. + /// + public static async Task AddEntityAsync(this IModel operations, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddEntityWithHttpMessagesAsync(appId, versionId, modelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the entity models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a hierarchical entity extractor to the application version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and children of the new entity extractor. + /// + /// + /// The cancellation token. + /// + public static async Task AddHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hierarchicalModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the hierarchical entity models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListHierarchicalEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListHierarchicalEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a composite entity extractor to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and children of the new entity extractor. + /// + /// + /// The cancellation token. + /// + public static async Task AddCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddCompositeEntityWithHttpMessagesAsync(appId, versionId, compositeModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the composite entity models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListCompositeEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListCompositeEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the closedlist models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListClosedListsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListClosedListsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a closed list model to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the name and words for the new closed list entity + /// extractor. + /// + /// + /// The cancellation token. + /// + public static async Task AddClosedListAsync(this IModel operations, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddClosedListWithHttpMessagesAsync(appId, versionId, closedListModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a list of prebuilt entity extractors to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// An array of prebuilt entity extractor names. + /// + /// + /// The cancellation token. + /// + public static async Task> AddPrebuiltAsync(this IModel operations, System.Guid appId, string versionId, IList prebuiltExtractorNames, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltExtractorNames, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the prebuilt entity models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListPrebuiltsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPrebuiltsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the available prebuilt entity extractors for the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task> ListPrebuiltEntitiesAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the application version models. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListModelsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListModelsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the intent model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetIntentWithHttpMessagesAsync(appId, versionId, intentId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the name of an intent classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// A model object containing the new intent classifier name. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateIntentWithHttpMessagesAsync(appId, versionId, intentId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an intent classifier from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// Also delete the intent's utterances (true). Or move the utterances to the + /// None intent (false - the default value). + /// + /// + /// The cancellation token. + /// + public static async Task DeleteIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteIntentWithHttpMessagesAsync(appId, versionId, intentId, deleteUtterances, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetEntityWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the name of an entity extractor. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// A model object containing the new entity extractor name. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateEntityWithHttpMessagesAsync(appId, versionId, entityId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an entity extractor from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteEntityWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the hierarchical entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the name and children of a hierarchical entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// Model containing names of the children of the hierarchical entity. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a hierarchical entity extractor from the application version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the composite entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the composite entity extractor. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// A model object containing the new entity extractor name and children. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, compositeModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a composite entity extractor from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information of a closed list model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the closed list model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The new entity name and words list. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, closedListModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a batch of sublists to an existing closedlist. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// A words list batch. + /// + /// + /// The cancellation token. + /// + public static async Task PatchClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PatchClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, closedListModelPatchObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a closed list model from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list model ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the prebuilt entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The prebuilt entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetPrebuiltAsync(this IModel operations, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a prebuilt entity extractor from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The prebuilt entity extractor ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeletePrebuiltAsync(this IModel operations, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeletePrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a sublist of a specific closed list model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// The sublist ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, int subListId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteSubListWithHttpMessagesAsync(appId, versionId, clEntityId, subListId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates one of the closed list's sublists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// The sublist ID. + /// + /// + /// A sublist update object containing the new canonical form and the list of + /// words. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateSubListWithHttpMessagesAsync(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Suggests examples that would improve the accuracy of the intent model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The intent classifier ID. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> GetIntentSuggestionsAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetIntentSuggestionsWithHttpMessagesAsync(appId, versionId, intentId, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get suggestion examples that would improve the accuracy of the entity + /// model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The target entity extractor model to enhance. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> GetEntitySuggestionsAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetEntitySuggestionsWithHttpMessagesAsync(appId, versionId, entityId, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a list to an existing closed list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The closed list entity extractor ID. + /// + /// + /// Words list. + /// + /// + /// The cancellation token. + /// + public static async Task AddSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddSubListWithHttpMessagesAsync(appId, versionId, clEntityId, wordListCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a customizable prebuilt domain along with all of its models to this + /// application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A prebuilt domain create object containing the name of the domain. + /// + /// + /// The cancellation token. + /// + public static async Task> AddCustomPrebuiltDomainAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, prebuiltDomainObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a custom prebuilt intent model to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the custom prebuilt intent and the + /// name of the domain to which this model belongs. + /// + /// + /// The cancellation token. + /// + public static async Task AddCustomPrebuiltIntentAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddCustomPrebuiltIntentWithHttpMessagesAsync(appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets custom prebuilt intents information of this application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task> ListCustomPrebuiltIntentsAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListCustomPrebuiltIntentsWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a custom prebuilt entity model to the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model object containing the name of the custom prebuilt entity and the + /// name of the domain to which this model belongs. + /// + /// + /// The cancellation token. + /// + public static async Task AddCustomPrebuiltEntityAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddCustomPrebuiltEntityWithHttpMessagesAsync(appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all custom prebuilt entities information of this application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task> ListCustomPrebuiltEntitiesAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListCustomPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all custom prebuilt models information of this application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task> ListCustomPrebuiltModelsAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListCustomPrebuiltModelsWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a prebuilt domain's models from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Domain name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteCustomPrebuiltDomainAsync(this IModel operations, System.Guid appId, string versionId, string domainName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, domainName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about the hierarchical entity child model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Renames a single child in an existing hierarchical entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// Model object containing new name of the hierarchical entity child. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, hierarchicalChildModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a hierarchical entity extractor child from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a single child in an existing hierarchical entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The hierarchical entity extractor ID. + /// + /// + /// A model object containing the name of the new hierarchical child model. + /// + /// + /// The cancellation token. + /// + public static async Task AddHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hierarchicalChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a single child in an existing composite entity model. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// A model object containing the name of the new composite child model. + /// + /// + /// The cancellation token. + /// + public static async Task AddCompositeEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEntityId, compositeChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a composite entity extractor child from the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The composite entity extractor ID. + /// + /// + /// The hierarchical entity extractor child ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteCompositeEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEntityId, cChildId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationCreateObject.cs new file mode 100644 index 000000000000..83399bf5740e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationCreateObject.cs @@ -0,0 +1,121 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties for creating a new LUIS Application + /// + public partial class ApplicationCreateObject + { + /// + /// Initializes a new instance of the ApplicationCreateObject class. + /// + public ApplicationCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationCreateObject class. + /// + /// The culture for the new application. It is + /// the language that your app understands and speaks. E.g.: "en-us". + /// Note: the culture cannot be changed after the app is + /// created. + /// The name for the new application. + /// The domain for the new application. Optional. + /// E.g.: Comics. + /// Description of the new application. + /// Optional. + /// The initial version ID. Optional. + /// Default value is: "0.1" + /// Defines the scenario for the new + /// application. Optional. E.g.: IoT. + public ApplicationCreateObject(string culture, string name, string domain = default(string), string description = default(string), string initialVersionId = default(string), string usageScenario = default(string)) + { + Culture = culture; + Domain = domain; + Description = description; + InitialVersionId = initialVersionId; + UsageScenario = usageScenario; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the culture for the new application. It is the + /// language that your app understands and speaks. E.g.: "en-us". Note: + /// the culture cannot be changed after the app is created. + /// + [JsonProperty(PropertyName = "culture")] + public string Culture { get; set; } + + /// + /// Gets or sets the domain for the new application. Optional. E.g.: + /// Comics. + /// + [JsonProperty(PropertyName = "domain")] + public string Domain { get; set; } + + /// + /// Gets or sets description of the new application. Optional. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the initial version ID. Optional. Default value is: + /// "0.1" + /// + [JsonProperty(PropertyName = "initialVersionId")] + public string InitialVersionId { get; set; } + + /// + /// Gets or sets defines the scenario for the new application. + /// Optional. E.g.: IoT. + /// + [JsonProperty(PropertyName = "usageScenario")] + public string UsageScenario { get; set; } + + /// + /// Gets or sets the name for the new application. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Culture == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Culture"); + } + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationInfoResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationInfoResponse.cs new file mode 100644 index 000000000000..4e6709b74e9a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationInfoResponse.cs @@ -0,0 +1,142 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response containing the Application Info. + /// + public partial class ApplicationInfoResponse + { + /// + /// Initializes a new instance of the ApplicationInfoResponse class. + /// + public ApplicationInfoResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationInfoResponse class. + /// + /// The ID (GUID) of the application. + /// The name of the application. + /// The description of the + /// application. + /// The culture of the application. E.g.: + /// en-us. + /// Defines the scenario for the new + /// application. Optional. E.g.: IoT. + /// The domain for the new application. Optional. + /// E.g.: Comics. + /// Amount of model versions within the + /// application. + /// The version's creation + /// timestamp. + /// The Runtime endpoint URL for this model + /// version. + /// Number of calls made to this + /// endpoint. + /// The version ID currently marked as + /// active. + public ApplicationInfoResponse(System.Guid? id = default(System.Guid?), string name = default(string), string description = default(string), string culture = default(string), string usageScenario = default(string), string domain = default(string), int? versionsCount = default(int?), string createdDateTime = default(string), object endpoints = default(object), int? endpointHitsCount = default(int?), string activeVersion = default(string)) + { + Id = id; + Name = name; + Description = description; + Culture = culture; + UsageScenario = usageScenario; + Domain = domain; + VersionsCount = versionsCount; + CreatedDateTime = createdDateTime; + Endpoints = endpoints; + EndpointHitsCount = endpointHitsCount; + ActiveVersion = activeVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID (GUID) of the application. + /// + [JsonProperty(PropertyName = "id")] + public System.Guid? Id { get; set; } + + /// + /// Gets or sets the name of the application. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the description of the application. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the culture of the application. E.g.: en-us. + /// + [JsonProperty(PropertyName = "culture")] + public string Culture { get; set; } + + /// + /// Gets or sets defines the scenario for the new application. + /// Optional. E.g.: IoT. + /// + [JsonProperty(PropertyName = "usageScenario")] + public string UsageScenario { get; set; } + + /// + /// Gets or sets the domain for the new application. Optional. E.g.: + /// Comics. + /// + [JsonProperty(PropertyName = "domain")] + public string Domain { get; set; } + + /// + /// Gets or sets amount of model versions within the application. + /// + [JsonProperty(PropertyName = "versionsCount")] + public int? VersionsCount { get; set; } + + /// + /// Gets or sets the version's creation timestamp. + /// + [JsonProperty(PropertyName = "createdDateTime")] + public string CreatedDateTime { get; set; } + + /// + /// Gets or sets the Runtime endpoint URL for this model version. + /// + [JsonProperty(PropertyName = "endpoints")] + public object Endpoints { get; set; } + + /// + /// Gets or sets number of calls made to this endpoint. + /// + [JsonProperty(PropertyName = "endpointHitsCount")] + public int? EndpointHitsCount { get; set; } + + /// + /// Gets or sets the version ID currently marked as active. + /// + [JsonProperty(PropertyName = "activeVersion")] + public string ActiveVersion { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationPublishObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationPublishObject.cs new file mode 100644 index 000000000000..56125641056e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationPublishObject.cs @@ -0,0 +1,71 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for publishing a specific application version. + /// + public partial class ApplicationPublishObject + { + /// + /// Initializes a new instance of the ApplicationPublishObject class. + /// + public ApplicationPublishObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationPublishObject class. + /// + /// The version ID to publish. + /// Indicates if the staging slot should be + /// used, instead of the Production one. + /// The target region that the application is + /// published to. + public ApplicationPublishObject(string versionId = default(string), bool? isStaging = default(bool?), string region = default(string)) + { + VersionId = versionId; + IsStaging = isStaging; + Region = region; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the version ID to publish. + /// + [JsonProperty(PropertyName = "versionId")] + public string VersionId { get; set; } + + /// + /// Gets or sets indicates if the staging slot should be used, instead + /// of the Production one. + /// + [JsonProperty(PropertyName = "isStaging")] + public bool? IsStaging { get; set; } + + /// + /// Gets or sets the target region that the application is published + /// to. + /// + [JsonProperty(PropertyName = "region")] + public string Region { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationSettingUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationSettingUpdateObject.cs new file mode 100644 index 000000000000..e9fe3c07eb0a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationSettingUpdateObject.cs @@ -0,0 +1,56 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for updating an application's settings. + /// + public partial class ApplicationSettingUpdateObject + { + /// + /// Initializes a new instance of the ApplicationSettingUpdateObject + /// class. + /// + public ApplicationSettingUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationSettingUpdateObject + /// class. + /// + /// Setting your application as public + /// allows other people to use your application's endpoint using their + /// own keys. + public ApplicationSettingUpdateObject(bool publicProperty = default(bool)) + { + PublicProperty = publicProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets setting your application as public allows other people + /// to use your application's endpoint using their own keys. + /// + [JsonProperty(PropertyName = "public")] + public bool PublicProperty { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationSettings.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationSettings.cs new file mode 100644 index 000000000000..71107a083171 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationSettings.cs @@ -0,0 +1,72 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The application settings. + /// + public partial class ApplicationSettings + { + /// + /// Initializes a new instance of the ApplicationSettings class. + /// + public ApplicationSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationSettings class. + /// + /// The application ID. + /// Setting your application as public allows + /// other people to use your application's endpoint using their own + /// keys. + public ApplicationSettings(System.Guid id, bool isPublic) + { + Id = id; + IsPublic = isPublic; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the application ID. + /// + [JsonProperty(PropertyName = "id")] + public System.Guid Id { get; set; } + + /// + /// Gets or sets setting your application as public allows other people + /// to use your application's endpoint using their own keys. + /// + [JsonProperty(PropertyName = "public")] + public bool IsPublic { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationUpdateObject.cs new file mode 100644 index 000000000000..9ba17a9b0c89 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ApplicationUpdateObject.cs @@ -0,0 +1,60 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for updating the name or description of an application. + /// + public partial class ApplicationUpdateObject + { + /// + /// Initializes a new instance of the ApplicationUpdateObject class. + /// + public ApplicationUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApplicationUpdateObject class. + /// + /// The application's new name. + /// The application's new + /// description. + public ApplicationUpdateObject(string name = default(string), string description = default(string)) + { + Name = name; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the application's new name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the application's new description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AvailableCulture.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AvailableCulture.cs new file mode 100644 index 000000000000..c32f2ea4510a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AvailableCulture.cs @@ -0,0 +1,59 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Available culture for using in a new application. + /// + public partial class AvailableCulture + { + /// + /// Initializes a new instance of the AvailableCulture class. + /// + public AvailableCulture() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailableCulture class. + /// + /// The language name. + /// The ISO value for the language. + public AvailableCulture(string name = default(string), string code = default(string)) + { + Name = name; + Code = code; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the language name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the ISO value for the language. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AvailablePrebuiltEntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AvailablePrebuiltEntityModel.cs new file mode 100644 index 000000000000..58fc51d9b12c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AvailablePrebuiltEntityModel.cs @@ -0,0 +1,70 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Available Prebuilt entity model for using in an application. + /// + public partial class AvailablePrebuiltEntityModel + { + /// + /// Initializes a new instance of the AvailablePrebuiltEntityModel + /// class. + /// + public AvailablePrebuiltEntityModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailablePrebuiltEntityModel + /// class. + /// + /// The entity name. + /// The entity description and usage + /// information. + /// Usage examples. + public AvailablePrebuiltEntityModel(string name = default(string), string description = default(string), string examples = default(string)) + { + Name = name; + Description = description; + Examples = examples; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the entity name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the entity description and usage information. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets usage examples. + /// + [JsonProperty(PropertyName = "examples")] + public string Examples { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AzureRegions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AzureRegions.cs new file mode 100644 index 000000000000..4c940de57c2d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/AzureRegions.cs @@ -0,0 +1,120 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AzureRegions. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AzureRegions + { + [EnumMember(Value = "westus")] + Westus, + [EnumMember(Value = "westeurope")] + Westeurope, + [EnumMember(Value = "southeastasia")] + Southeastasia, + [EnumMember(Value = "eastus2")] + Eastus2, + [EnumMember(Value = "westcentralus")] + Westcentralus, + [EnumMember(Value = "westus2")] + Westus2, + [EnumMember(Value = "eastus")] + Eastus, + [EnumMember(Value = "southcentralus")] + Southcentralus, + [EnumMember(Value = "northeurope")] + Northeurope, + [EnumMember(Value = "eastasia")] + Eastasia, + [EnumMember(Value = "australiaeast")] + Australiaeast, + [EnumMember(Value = "brazilsouth")] + Brazilsouth + } + internal static class AzureRegionsEnumExtension + { + internal static string ToSerializedValue(this AzureRegions? value) + { + return value == null ? null : ((AzureRegions)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AzureRegions value) + { + switch( value ) + { + case AzureRegions.Westus: + return "westus"; + case AzureRegions.Westeurope: + return "westeurope"; + case AzureRegions.Southeastasia: + return "southeastasia"; + case AzureRegions.Eastus2: + return "eastus2"; + case AzureRegions.Westcentralus: + return "westcentralus"; + case AzureRegions.Westus2: + return "westus2"; + case AzureRegions.Eastus: + return "eastus"; + case AzureRegions.Southcentralus: + return "southcentralus"; + case AzureRegions.Northeurope: + return "northeurope"; + case AzureRegions.Eastasia: + return "eastasia"; + case AzureRegions.Australiaeast: + return "australiaeast"; + case AzureRegions.Brazilsouth: + return "brazilsouth"; + } + return null; + } + + internal static AzureRegions? ParseAzureRegions(this string value) + { + switch( value ) + { + case "westus": + return AzureRegions.Westus; + case "westeurope": + return AzureRegions.Westeurope; + case "southeastasia": + return AzureRegions.Southeastasia; + case "eastus2": + return AzureRegions.Eastus2; + case "westcentralus": + return AzureRegions.Westcentralus; + case "westus2": + return AzureRegions.Westus2; + case "eastus": + return AzureRegions.Eastus; + case "southcentralus": + return AzureRegions.Southcentralus; + case "northeurope": + return AzureRegions.Northeurope; + case "eastasia": + return AzureRegions.Eastasia; + case "australiaeast": + return AzureRegions.Australiaeast; + case "brazilsouth": + return AzureRegions.Brazilsouth; + } + return null; + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/BatchLabelExample.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/BatchLabelExample.cs new file mode 100644 index 000000000000..c19b101e395a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/BatchLabelExample.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response when adding a batch of labeled examples. + /// + public partial class BatchLabelExample + { + /// + /// Initializes a new instance of the BatchLabelExample class. + /// + public BatchLabelExample() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BatchLabelExample class. + /// + public BatchLabelExample(LabelExampleResponse value = default(LabelExampleResponse), bool? hasError = default(bool?), OperationStatus error = default(OperationStatus)) + { + Value = value; + HasError = hasError; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "value")] + public LabelExampleResponse Value { get; set; } + + /// + /// + [JsonProperty(PropertyName = "hasError")] + public bool? HasError { get; set; } + + /// + /// + [JsonProperty(PropertyName = "error")] + public OperationStatus Error { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ChildEntity.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ChildEntity.cs new file mode 100644 index 000000000000..a6b82ac12d02 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ChildEntity.cs @@ -0,0 +1,69 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The base child entity type. + /// + public partial class ChildEntity + { + /// + /// Initializes a new instance of the ChildEntity class. + /// + public ChildEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ChildEntity class. + /// + /// The ID (GUID) belonging to a child entity. + /// The name of a child entity. + public ChildEntity(System.Guid id, string name = default(string)) + { + Id = id; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID (GUID) belonging to a child entity. + /// + [JsonProperty(PropertyName = "id")] + public System.Guid Id { get; set; } + + /// + /// Gets or sets the name of a child entity. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedList.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedList.cs new file mode 100644 index 000000000000..ec1ccfdbcd5b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedList.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Exported Model - A Closed List. + /// + public partial class ClosedList + { + /// + /// Initializes a new instance of the ClosedList class. + /// + public ClosedList() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClosedList class. + /// + /// Name of the closed list feature. + /// Sublists for the feature. + public ClosedList(string name = default(string), IList subLists = default(IList)) + { + Name = name; + SubLists = subLists; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the closed list feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets sublists for the feature. + /// + [JsonProperty(PropertyName = "subLists")] + public IList SubLists { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListEntityExtractor.cs new file mode 100644 index 000000000000..1b4025661a15 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListEntityExtractor.cs @@ -0,0 +1,72 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Closed List Entity Extractor. + /// + public partial class ClosedListEntityExtractor : ModelInfo + { + /// + /// Initializes a new instance of the ClosedListEntityExtractor class. + /// + public ClosedListEntityExtractor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClosedListEntityExtractor class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + /// List of sub-lists. + public ClosedListEntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), IList subLists = default(IList)) + : base(id, readableType, name, typeId) + { + SubLists = subLists; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of sub-lists. + /// + [JsonProperty(PropertyName = "subLists")] + public IList SubLists { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelCreateObject.cs new file mode 100644 index 000000000000..91d1335189e3 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelCreateObject.cs @@ -0,0 +1,63 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model for creating a closed list. + /// + public partial class ClosedListModelCreateObject + { + /// + /// Initializes a new instance of the ClosedListModelCreateObject + /// class. + /// + public ClosedListModelCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClosedListModelCreateObject + /// class. + /// + /// Sublists for the feature. + /// Name of the closed list feature. + public ClosedListModelCreateObject(IList subLists = default(IList), string name = default(string)) + { + SubLists = subLists; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets sublists for the feature. + /// + [JsonProperty(PropertyName = "subLists")] + public IList SubLists { get; set; } + + /// + /// Gets or sets name of the closed list feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelPatchObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelPatchObject.cs new file mode 100644 index 000000000000..77f2b756677d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelPatchObject.cs @@ -0,0 +1,53 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model for adding a batch of sublists to an existing closedlist. + /// + public partial class ClosedListModelPatchObject + { + /// + /// Initializes a new instance of the ClosedListModelPatchObject class. + /// + public ClosedListModelPatchObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClosedListModelPatchObject class. + /// + /// Sublists to add. + public ClosedListModelPatchObject(IList subLists = default(IList)) + { + SubLists = subLists; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets sublists to add. + /// + [JsonProperty(PropertyName = "subLists")] + public IList SubLists { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelUpdateObject.cs new file mode 100644 index 000000000000..755cade0f118 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ClosedListModelUpdateObject.cs @@ -0,0 +1,63 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model for updating a closed list. + /// + public partial class ClosedListModelUpdateObject + { + /// + /// Initializes a new instance of the ClosedListModelUpdateObject + /// class. + /// + public ClosedListModelUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClosedListModelUpdateObject + /// class. + /// + /// The new sublists for the feature. + /// The new name of the closed list feature. + public ClosedListModelUpdateObject(IList subLists = default(IList), string name = default(string)) + { + SubLists = subLists; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the new sublists for the feature. + /// + [JsonProperty(PropertyName = "subLists")] + public IList SubLists { get; set; } + + /// + /// Gets or sets the new name of the closed list feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CollaboratorsArray.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CollaboratorsArray.cs new file mode 100644 index 000000000000..c5398518c071 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CollaboratorsArray.cs @@ -0,0 +1,50 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class CollaboratorsArray + { + /// + /// Initializes a new instance of the CollaboratorsArray class. + /// + public CollaboratorsArray() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CollaboratorsArray class. + /// + /// The email address of the users. + public CollaboratorsArray(IList emails = default(IList)) + { + Emails = emails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the email address of the users. + /// + [JsonProperty(PropertyName = "emails")] + public IList Emails { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeChildModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeChildModelCreateObject.cs new file mode 100644 index 000000000000..cdb0fec2c3f5 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeChildModelCreateObject.cs @@ -0,0 +1,48 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class CompositeChildModelCreateObject + { + /// + /// Initializes a new instance of the CompositeChildModelCreateObject + /// class. + /// + public CompositeChildModelCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CompositeChildModelCreateObject + /// class. + /// + public CompositeChildModelCreateObject(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeEntityExtractor.cs new file mode 100644 index 000000000000..ffb9eef28490 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeEntityExtractor.cs @@ -0,0 +1,82 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A Composite Entity Extractor. + /// + public partial class CompositeEntityExtractor : ModelInfo + { + /// + /// Initializes a new instance of the CompositeEntityExtractor class. + /// + public CompositeEntityExtractor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CompositeEntityExtractor class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + /// List of child entities. + public CompositeEntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), IList children = default(IList)) + : base(id, readableType, name, typeId) + { + Children = children; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of child entities. + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Children != null) + { + foreach (var element in Children) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeEntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeEntityModel.cs new file mode 100644 index 000000000000..5d2fd00da50c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CompositeEntityModel.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A composite entity. + /// + public partial class CompositeEntityModel + { + /// + /// Initializes a new instance of the CompositeEntityModel class. + /// + public CompositeEntityModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CompositeEntityModel class. + /// + /// Child entities. + /// Entity name. + public CompositeEntityModel(IList children = default(IList), string name = default(string)) + { + Children = children; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets child entities. + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// Gets or sets entity name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CustomPrebuiltModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CustomPrebuiltModel.cs new file mode 100644 index 000000000000..45d4e3843daf --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/CustomPrebuiltModel.cs @@ -0,0 +1,113 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A Custom Prebuilt model. + /// + public partial class CustomPrebuiltModel + { + /// + /// Initializes a new instance of the CustomPrebuiltModel class. + /// + public CustomPrebuiltModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CustomPrebuiltModel class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + /// The domain name. + /// The intent name or entity + /// name. + public CustomPrebuiltModel(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), string customPrebuiltDomainName = default(string), string customPrebuiltModelName = default(string)) + { + Id = id; + Name = name; + TypeId = typeId; + ReadableType = readableType; + CustomPrebuiltDomainName = customPrebuiltDomainName; + CustomPrebuiltModelName = customPrebuiltModelName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the Entity Model. + /// + [JsonProperty(PropertyName = "id")] + public System.Guid Id { get; set; } + + /// + /// Gets or sets name of the Entity Model. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the type ID of the Entity Model. + /// + [JsonProperty(PropertyName = "typeId")] + public int? TypeId { get; set; } + + /// + /// Gets or sets possible values include: 'Entity Extractor', + /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + /// Extractor', 'Composite Entity Extractor', 'Closed List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier' + /// + [JsonProperty(PropertyName = "readableType")] + public string ReadableType { get; set; } + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "customPrebuiltDomainName")] + public string CustomPrebuiltDomainName { get; set; } + + /// + /// Gets or sets the intent name or entity name. + /// + [JsonProperty(PropertyName = "customPrebuiltModelName")] + public string CustomPrebuiltModelName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReadableType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReadableType"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EndpointInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EndpointInfo.cs new file mode 100644 index 000000000000..f48ca841d806 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EndpointInfo.cs @@ -0,0 +1,105 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The base class "ProductionOrStagingEndpointInfo" inherits from. + /// + public partial class EndpointInfo + { + /// + /// Initializes a new instance of the EndpointInfo class. + /// + public EndpointInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EndpointInfo class. + /// + /// The version ID to publish. + /// Indicates if the staging slot should be + /// used, instead of the Production one. + /// The Runtime endpoint URL for this model + /// version. + /// The target region that the application is + /// published to. + /// The endpoint key. + /// The endpoint's region. + /// Timestamp when was last + /// published. + public EndpointInfo(string versionId = default(string), bool? isStaging = default(bool?), string endpointUrl = default(string), string region = default(string), string assignedEndpointKey = default(string), string endpointRegion = default(string), string publishedDateTime = default(string)) + { + VersionId = versionId; + IsStaging = isStaging; + EndpointUrl = endpointUrl; + Region = region; + AssignedEndpointKey = assignedEndpointKey; + EndpointRegion = endpointRegion; + PublishedDateTime = publishedDateTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the version ID to publish. + /// + [JsonProperty(PropertyName = "versionId")] + public string VersionId { get; set; } + + /// + /// Gets or sets indicates if the staging slot should be used, instead + /// of the Production one. + /// + [JsonProperty(PropertyName = "isStaging")] + public bool? IsStaging { get; set; } + + /// + /// Gets or sets the Runtime endpoint URL for this model version. + /// + [JsonProperty(PropertyName = "endpointUrl")] + public string EndpointUrl { get; set; } + + /// + /// Gets or sets the target region that the application is published + /// to. + /// + [JsonProperty(PropertyName = "region")] + public string Region { get; set; } + + /// + /// Gets or sets the endpoint key. + /// + [JsonProperty(PropertyName = "assignedEndpointKey")] + public string AssignedEndpointKey { get; set; } + + /// + /// Gets or sets the endpoint's region. + /// + [JsonProperty(PropertyName = "endpointRegion")] + public string EndpointRegion { get; set; } + + /// + /// Gets or sets timestamp when was last published. + /// + [JsonProperty(PropertyName = "publishedDateTime")] + public string PublishedDateTime { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EnqueueTrainingResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EnqueueTrainingResponse.cs new file mode 100644 index 000000000000..d5cea5301b97 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EnqueueTrainingResponse.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response model when requesting to train the model. + /// + public partial class EnqueueTrainingResponse + { + /// + /// Initializes a new instance of the EnqueueTrainingResponse class. + /// + public EnqueueTrainingResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EnqueueTrainingResponse class. + /// + /// The train request status ID. + /// Possible values include: 'Queued', + /// 'InProgress', 'UpToDate', 'Fail', 'Success' + public EnqueueTrainingResponse(int? statusId = default(int?), string status = default(string)) + { + StatusId = statusId; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the train request status ID. + /// + [JsonProperty(PropertyName = "statusId")] + public int? StatusId { get; set; } + + /// + /// Gets or sets possible values include: 'Queued', 'InProgress', + /// 'UpToDate', 'Fail', 'Success' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntitiesSuggestionExample.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntitiesSuggestionExample.cs new file mode 100644 index 000000000000..9e36e2cecf7c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntitiesSuggestionExample.cs @@ -0,0 +1,81 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Predicted/suggested entity. + /// + public partial class EntitiesSuggestionExample + { + /// + /// Initializes a new instance of the EntitiesSuggestionExample class. + /// + public EntitiesSuggestionExample() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EntitiesSuggestionExample class. + /// + /// The utterance. E.g.: what's the weather like in + /// seattle? + /// The utterance tokenized. + /// Predicted/suggested + /// intents. + /// Predicted/suggested + /// entities. + public EntitiesSuggestionExample(string text = default(string), IList tokenizedText = default(IList), IList intentPredictions = default(IList), IList entityPredictions = default(IList)) + { + Text = text; + TokenizedText = tokenizedText; + IntentPredictions = intentPredictions; + EntityPredictions = entityPredictions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the utterance. E.g.: what's the weather like in + /// seattle? + /// + [JsonProperty(PropertyName = "text")] + public string Text { get; set; } + + /// + /// Gets or sets the utterance tokenized. + /// + [JsonProperty(PropertyName = "tokenizedText")] + public IList TokenizedText { get; set; } + + /// + /// Gets or sets predicted/suggested intents. + /// + [JsonProperty(PropertyName = "intentPredictions")] + public IList IntentPredictions { get; set; } + + /// + /// Gets or sets predicted/suggested entities. + /// + [JsonProperty(PropertyName = "entityPredictions")] + public IList EntityPredictions { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityExtractor.cs new file mode 100644 index 000000000000..5a6dd37dfc9d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityExtractor.cs @@ -0,0 +1,79 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Entity Extractor. + /// + public partial class EntityExtractor : ModelInfo + { + /// + /// Initializes a new instance of the EntityExtractor class. + /// + public EntityExtractor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EntityExtractor class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + /// The domain name. + /// The intent name or entity + /// name. + public EntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), string customPrebuiltDomainName = default(string), string customPrebuiltModelName = default(string)) + : base(id, readableType, name, typeId) + { + CustomPrebuiltDomainName = customPrebuiltDomainName; + CustomPrebuiltModelName = customPrebuiltModelName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "customPrebuiltDomainName")] + public string CustomPrebuiltDomainName { get; set; } + + /// + /// Gets or sets the intent name or entity name. + /// + [JsonProperty(PropertyName = "customPrebuiltModelName")] + public string CustomPrebuiltModelName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityLabel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityLabel.cs new file mode 100644 index 000000000000..e05ccc841ab8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityLabel.cs @@ -0,0 +1,86 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines the entity type and position of the extracted entity within the + /// example. + /// + public partial class EntityLabel + { + /// + /// Initializes a new instance of the EntityLabel class. + /// + public EntityLabel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EntityLabel class. + /// + /// The entity type. + /// The index within the utterance where + /// the extracted entity starts. + /// The index within the utterance where + /// the extracted entity ends. + public EntityLabel(string entityName, int startTokenIndex, int endTokenIndex) + { + EntityName = entityName; + StartTokenIndex = startTokenIndex; + EndTokenIndex = endTokenIndex; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the entity type. + /// + [JsonProperty(PropertyName = "entityName")] + public string EntityName { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity starts. + /// + [JsonProperty(PropertyName = "startTokenIndex")] + public int StartTokenIndex { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity ends. + /// + [JsonProperty(PropertyName = "endTokenIndex")] + public int EndTokenIndex { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EntityName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EntityName"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityLabelObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityLabelObject.cs new file mode 100644 index 000000000000..fa497752c11a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityLabelObject.cs @@ -0,0 +1,86 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines the entity type and position of the extracted entity within the + /// example. + /// + public partial class EntityLabelObject + { + /// + /// Initializes a new instance of the EntityLabelObject class. + /// + public EntityLabelObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EntityLabelObject class. + /// + /// The entity type. + /// The index within the utterance where + /// the extracted entity starts. + /// The index within the utterance where the + /// extracted entity ends. + public EntityLabelObject(string entityName, int startCharIndex, int endCharIndex) + { + EntityName = entityName; + StartCharIndex = startCharIndex; + EndCharIndex = endCharIndex; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the entity type. + /// + [JsonProperty(PropertyName = "entityName")] + public string EntityName { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity starts. + /// + [JsonProperty(PropertyName = "startCharIndex")] + public int StartCharIndex { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity ends. + /// + [JsonProperty(PropertyName = "endCharIndex")] + public int EndCharIndex { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EntityName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EntityName"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityPrediction.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityPrediction.cs new file mode 100644 index 000000000000..3f2b43952c84 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/EntityPrediction.cs @@ -0,0 +1,98 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A suggested entity. + /// + public partial class EntityPrediction + { + /// + /// Initializes a new instance of the EntityPrediction class. + /// + public EntityPrediction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EntityPrediction class. + /// + /// The entity's name + /// The index within the utterance where + /// the extracted entity starts. + /// The index within the utterance where + /// the extracted entity ends. + /// The actual token(s) that comprise the + /// entity. + public EntityPrediction(string entityName, int startTokenIndex, int endTokenIndex, string phrase) + { + EntityName = entityName; + StartTokenIndex = startTokenIndex; + EndTokenIndex = endTokenIndex; + Phrase = phrase; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the entity's name + /// + [JsonProperty(PropertyName = "entityName")] + public string EntityName { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity starts. + /// + [JsonProperty(PropertyName = "startTokenIndex")] + public int StartTokenIndex { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity ends. + /// + [JsonProperty(PropertyName = "endTokenIndex")] + public int EndTokenIndex { get; set; } + + /// + /// Gets or sets the actual token(s) that comprise the entity. + /// + [JsonProperty(PropertyName = "phrase")] + public string Phrase { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EntityName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EntityName"); + } + if (Phrase == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Phrase"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ErrorResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ErrorResponse.cs new file mode 100644 index 000000000000..ca0b520af68c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ErrorResponse.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Error response when invoking an operation on the API. + /// + public partial class ErrorResponse + { + /// + /// Initializes a new instance of the ErrorResponse class. + /// + public ErrorResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + public ErrorResponse(IDictionary additionalProperties = default(IDictionary), string errorType = default(string)) + { + AdditionalProperties = additionalProperties; + ErrorType = errorType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// + [JsonProperty(PropertyName = "errorType")] + public string ErrorType { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ErrorResponseException.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ErrorResponseException.cs new file mode 100644 index 000000000000..29f502869cb7 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ErrorResponseException.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.Programmatic.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorResponse + /// information. + /// + public partial class ErrorResponseException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorResponse Body { get; set; } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + public ErrorResponseException() + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + public ErrorResponseException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + /// Inner exception. + public ErrorResponseException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ExampleLabelObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ExampleLabelObject.cs new file mode 100644 index 000000000000..672b8a08e6a9 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ExampleLabelObject.cs @@ -0,0 +1,71 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A labeled example. + /// + public partial class ExampleLabelObject + { + /// + /// Initializes a new instance of the ExampleLabelObject class. + /// + public ExampleLabelObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExampleLabelObject class. + /// + /// The sample's utterance. + /// The idenfied entities within the + /// utterance. + /// The idenfitied intent representing the + /// utterance. + public ExampleLabelObject(string text = default(string), IList entityLabels = default(IList), string intentName = default(string)) + { + Text = text; + EntityLabels = entityLabels; + IntentName = intentName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the sample's utterance. + /// + [JsonProperty(PropertyName = "text")] + public string Text { get; set; } + + /// + /// Gets or sets the idenfied entities within the utterance. + /// + [JsonProperty(PropertyName = "entityLabels")] + public IList EntityLabels { get; set; } + + /// + /// Gets or sets the idenfitied intent representing the utterance. + /// + [JsonProperty(PropertyName = "intentName")] + public string IntentName { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/FeatureInfoObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/FeatureInfoObject.cs new file mode 100644 index 000000000000..58e3873f779b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/FeatureInfoObject.cs @@ -0,0 +1,67 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The base class Features-related response objects inherit from. + /// + public partial class FeatureInfoObject + { + /// + /// Initializes a new instance of the FeatureInfoObject class. + /// + public FeatureInfoObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FeatureInfoObject class. + /// + /// A six-digit ID used for Features. + /// The name of the Feature. + /// Indicates if the feature is enabled. + public FeatureInfoObject(int? id = default(int?), string name = default(string), bool? isActive = default(bool?)) + { + Id = id; + Name = name; + IsActive = isActive; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a six-digit ID used for Features. + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// Gets or sets the name of the Feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets indicates if the feature is enabled. + /// + [JsonProperty(PropertyName = "isActive")] + public bool? IsActive { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/FeaturesResponseObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/FeaturesResponseObject.cs new file mode 100644 index 000000000000..a0354d34d4c0 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/FeaturesResponseObject.cs @@ -0,0 +1,57 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Model Features, including Patterns and Phraselists. + /// + public partial class FeaturesResponseObject + { + /// + /// Initializes a new instance of the FeaturesResponseObject class. + /// + public FeaturesResponseObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FeaturesResponseObject class. + /// + public FeaturesResponseObject(IList phraselistFeatures = default(IList), IList patternFeatures = default(IList)) + { + PhraselistFeatures = phraselistFeatures; + PatternFeatures = patternFeatures; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "phraselistFeatures")] + public IList PhraselistFeatures { get; set; } + + /// + /// + [JsonProperty(PropertyName = "patternFeatures")] + public IList PatternFeatures { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildEntity.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildEntity.cs new file mode 100644 index 000000000000..d519110671ce --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildEntity.cs @@ -0,0 +1,79 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A Hierarchical Child Entity. + /// + public partial class HierarchicalChildEntity : ChildEntity + { + /// + /// Initializes a new instance of the HierarchicalChildEntity class. + /// + public HierarchicalChildEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HierarchicalChildEntity class. + /// + /// The ID (GUID) belonging to a child entity. + /// The name of a child entity. + /// The type ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + public HierarchicalChildEntity(System.Guid id, string name = default(string), int? typeId = default(int?), string readableType = default(string)) + : base(id, name) + { + TypeId = typeId; + ReadableType = readableType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type ID of the Entity Model. + /// + [JsonProperty(PropertyName = "typeId")] + public int? TypeId { get; set; } + + /// + /// Gets or sets possible values include: 'Entity Extractor', + /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + /// Extractor', 'Composite Entity Extractor', 'Closed List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier' + /// + [JsonProperty(PropertyName = "readableType")] + public string ReadableType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildModelCreateObject.cs new file mode 100644 index 000000000000..3d8d28f1664b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildModelCreateObject.cs @@ -0,0 +1,48 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class HierarchicalChildModelCreateObject + { + /// + /// Initializes a new instance of the + /// HierarchicalChildModelCreateObject class. + /// + public HierarchicalChildModelCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// HierarchicalChildModelCreateObject class. + /// + public HierarchicalChildModelCreateObject(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildModelUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildModelUpdateObject.cs new file mode 100644 index 000000000000..7b61acf5cf84 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalChildModelUpdateObject.cs @@ -0,0 +1,48 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class HierarchicalChildModelUpdateObject + { + /// + /// Initializes a new instance of the + /// HierarchicalChildModelUpdateObject class. + /// + public HierarchicalChildModelUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// HierarchicalChildModelUpdateObject class. + /// + public HierarchicalChildModelUpdateObject(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalEntityExtractor.cs new file mode 100644 index 000000000000..c07f39039a38 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalEntityExtractor.cs @@ -0,0 +1,84 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Hierarchical Entity Extractor. + /// + public partial class HierarchicalEntityExtractor : ModelInfo + { + /// + /// Initializes a new instance of the HierarchicalEntityExtractor + /// class. + /// + public HierarchicalEntityExtractor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HierarchicalEntityExtractor + /// class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + /// List of child entities. + public HierarchicalEntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), IList children = default(IList)) + : base(id, readableType, name, typeId) + { + Children = children; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of child entities. + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Children != null) + { + foreach (var element in Children) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalEntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalEntityModel.cs new file mode 100644 index 000000000000..2974d532b9f6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalEntityModel.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A Hierarchical Entity Extractor. + /// + public partial class HierarchicalEntityModel + { + /// + /// Initializes a new instance of the HierarchicalEntityModel class. + /// + public HierarchicalEntityModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HierarchicalEntityModel class. + /// + /// Child entities. + /// Entity name. + public HierarchicalEntityModel(IList children = default(IList), string name = default(string)) + { + Children = children; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets child entities. + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// Gets or sets entity name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalModel.cs new file mode 100644 index 000000000000..2da9b43f6b31 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/HierarchicalModel.cs @@ -0,0 +1,54 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class HierarchicalModel + { + /// + /// Initializes a new instance of the HierarchicalModel class. + /// + public HierarchicalModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HierarchicalModel class. + /// + public HierarchicalModel(string name = default(string), IList children = default(IList)) + { + Name = name; + Children = children; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentClassifier.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentClassifier.cs new file mode 100644 index 000000000000..f3d257f5d5af --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentClassifier.cs @@ -0,0 +1,79 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Intent Classifier. + /// + public partial class IntentClassifier : ModelInfo + { + /// + /// Initializes a new instance of the IntentClassifier class. + /// + public IntentClassifier() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntentClassifier class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + /// The domain name. + /// The intent name or entity + /// name. + public IntentClassifier(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), string customPrebuiltDomainName = default(string), string customPrebuiltModelName = default(string)) + : base(id, readableType, name, typeId) + { + CustomPrebuiltDomainName = customPrebuiltDomainName; + CustomPrebuiltModelName = customPrebuiltModelName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "customPrebuiltDomainName")] + public string CustomPrebuiltDomainName { get; set; } + + /// + /// Gets or sets the intent name or entity name. + /// + [JsonProperty(PropertyName = "customPrebuiltModelName")] + public string CustomPrebuiltModelName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentPrediction.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentPrediction.cs new file mode 100644 index 000000000000..6f4f417e2a61 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentPrediction.cs @@ -0,0 +1,60 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A suggested intent. + /// + public partial class IntentPrediction + { + /// + /// Initializes a new instance of the IntentPrediction class. + /// + public IntentPrediction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntentPrediction class. + /// + /// The intent's name + /// The intent's score, based on the prediction + /// model. + public IntentPrediction(string name = default(string), double? score = default(double?)) + { + Name = name; + Score = score; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the intent's name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the intent's score, based on the prediction model. + /// + [JsonProperty(PropertyName = "score")] + public double? Score { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentsSuggestionExample.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentsSuggestionExample.cs new file mode 100644 index 000000000000..b1a77dcb4998 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/IntentsSuggestionExample.cs @@ -0,0 +1,81 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Predicted/suggested intent. + /// + public partial class IntentsSuggestionExample + { + /// + /// Initializes a new instance of the IntentsSuggestionExample class. + /// + public IntentsSuggestionExample() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntentsSuggestionExample class. + /// + /// The utterance. E.g.: what's the weather like in + /// seattle? + /// The utterance tokenized. + /// Predicted/suggested + /// intents. + /// Predicted/suggested + /// entities. + public IntentsSuggestionExample(string text = default(string), IList tokenizedText = default(IList), IList intentPredictions = default(IList), IList entityPredictions = default(IList)) + { + Text = text; + TokenizedText = tokenizedText; + IntentPredictions = intentPredictions; + EntityPredictions = entityPredictions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the utterance. E.g.: what's the weather like in + /// seattle? + /// + [JsonProperty(PropertyName = "text")] + public string Text { get; set; } + + /// + /// Gets or sets the utterance tokenized. + /// + [JsonProperty(PropertyName = "tokenizedText")] + public IList TokenizedText { get; set; } + + /// + /// Gets or sets predicted/suggested intents. + /// + [JsonProperty(PropertyName = "intentPredictions")] + public IList IntentPredictions { get; set; } + + /// + /// Gets or sets predicted/suggested entities. + /// + [JsonProperty(PropertyName = "entityPredictions")] + public IList EntityPredictions { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONEntity.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONEntity.cs new file mode 100644 index 000000000000..8a7623d74059 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONEntity.cs @@ -0,0 +1,85 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Exported Model - Extracted Entity from utterance. + /// + public partial class JSONEntity + { + /// + /// Initializes a new instance of the JSONEntity class. + /// + public JSONEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JSONEntity class. + /// + /// The index within the utterance where the + /// extracted entity starts. + /// The index within the utterance where the + /// extracted entity ends. + /// The entity name. + public JSONEntity(int startPos, int endPos, string entity) + { + StartPos = startPos; + EndPos = endPos; + Entity = entity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity starts. + /// + [JsonProperty(PropertyName = "startPos")] + public int StartPos { get; set; } + + /// + /// Gets or sets the index within the utterance where the extracted + /// entity ends. + /// + [JsonProperty(PropertyName = "endPos")] + public int EndPos { get; set; } + + /// + /// Gets or sets the entity name. + /// + [JsonProperty(PropertyName = "entity")] + public string Entity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Entity == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Entity"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONModelFeature.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONModelFeature.cs new file mode 100644 index 000000000000..a3cae8ab3a07 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONModelFeature.cs @@ -0,0 +1,100 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Exported Model - Phraselist Model Feature. + /// + public partial class JSONModelFeature + { + /// + /// Initializes a new instance of the JSONModelFeature class. + /// + public JSONModelFeature() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JSONModelFeature class. + /// + /// Indicates if the feature is + /// enabled. + /// The Phraselist name. + /// List of comma-separated phrases that represent + /// the Phraselist. + /// An exchangeable phrase list feature are serves + /// as single feature to the LUIS underlying training algorithm. 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. Think of an + /// exchangeable as a synonyms list. A non-exchangeable phrase list + /// feature has all the phrases in the list serve as separate features + /// to the underlying training algorithm. So, if you your phrase list + /// feature contains 5 phrases, they will be mapped to 5 separate + /// features. You can think of the non-exchangeable phrase list feature + /// as an additional bag of words that you are willing to add to LUIS + /// existing vocabulary features. Think of a non-exchangeable as set of + /// different words. Default value is true. + public JSONModelFeature(bool? activated = default(bool?), string name = default(string), string words = default(string), bool? mode = default(bool?)) + { + Activated = activated; + Name = name; + Words = words; + Mode = mode; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets indicates if the feature is enabled. + /// + [JsonProperty(PropertyName = "activated")] + public bool? Activated { get; set; } + + /// + /// Gets or sets the Phraselist name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets list of comma-separated phrases that represent the + /// Phraselist. + /// + [JsonProperty(PropertyName = "words")] + public string Words { get; set; } + + /// + /// Gets or sets an exchangeable phrase list feature are serves as + /// single feature to the LUIS underlying training algorithm. 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. Think of an + /// exchangeable as a synonyms list. A non-exchangeable phrase list + /// feature has all the phrases in the list serve as separate features + /// to the underlying training algorithm. So, if you your phrase list + /// feature contains 5 phrases, they will be mapped to 5 separate + /// features. You can think of the non-exchangeable phrase list feature + /// as an additional bag of words that you are willing to add to LUIS + /// existing vocabulary features. Think of a non-exchangeable as set of + /// different words. Default value is true. + /// + [JsonProperty(PropertyName = "mode")] + public bool? Mode { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONRegexFeature.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONRegexFeature.cs new file mode 100644 index 000000000000..c35ec21b9fca --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONRegexFeature.cs @@ -0,0 +1,68 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Exported Model - A Pattern feature. + /// + public partial class JSONRegexFeature + { + /// + /// Initializes a new instance of the JSONRegexFeature class. + /// + public JSONRegexFeature() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JSONRegexFeature class. + /// + /// The Regular Expression to match. + /// Indicates if the Pattern feature is + /// enabled. + /// Name of the feature. + public JSONRegexFeature(string pattern = default(string), bool? activated = default(bool?), string name = default(string)) + { + Pattern = pattern; + Activated = activated; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Regular Expression to match. + /// + [JsonProperty(PropertyName = "pattern")] + public string Pattern { get; set; } + + /// + /// Gets or sets indicates if the Pattern feature is enabled. + /// + [JsonProperty(PropertyName = "activated")] + public bool? Activated { get; set; } + + /// + /// Gets or sets name of the feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONUtterance.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONUtterance.cs new file mode 100644 index 000000000000..c9011e9e2e5f --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/JSONUtterance.cs @@ -0,0 +1,69 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Exported Model - Utterance that was used to train the model. + /// + public partial class JSONUtterance + { + /// + /// Initializes a new instance of the JSONUtterance class. + /// + public JSONUtterance() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JSONUtterance class. + /// + /// The utterance. + /// The matched intent. + /// The matched entities. + public JSONUtterance(string text = default(string), string intent = default(string), IList entities = default(IList)) + { + Text = text; + Intent = intent; + Entities = entities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the utterance. + /// + [JsonProperty(PropertyName = "text")] + public string Text { get; set; } + + /// + /// Gets or sets the matched intent. + /// + [JsonProperty(PropertyName = "intent")] + public string Intent { get; set; } + + /// + /// Gets or sets the matched entities. + /// + [JsonProperty(PropertyName = "entities")] + public IList Entities { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LabelExampleResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LabelExampleResponse.cs new file mode 100644 index 000000000000..2f5411676186 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LabelExampleResponse.cs @@ -0,0 +1,59 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response when adding a labeled example. + /// + public partial class LabelExampleResponse + { + /// + /// Initializes a new instance of the LabelExampleResponse class. + /// + public LabelExampleResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LabelExampleResponse class. + /// + /// The sample's utterance. + /// The newly created sample ID. + public LabelExampleResponse(string utteranceText = default(string), int? exampleId = default(int?)) + { + UtteranceText = utteranceText; + ExampleId = exampleId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the sample's utterance. + /// + [JsonProperty(PropertyName = "UtteranceText")] + public string UtteranceText { get; set; } + + /// + /// Gets or sets the newly created sample ID. + /// + [JsonProperty(PropertyName = "ExampleId")] + public int? ExampleId { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LabeledUtterance.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LabeledUtterance.cs new file mode 100644 index 000000000000..334ee85aaa7f --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LabeledUtterance.cs @@ -0,0 +1,104 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A prediction and label pair of an example. + /// + public partial class LabeledUtterance + { + /// + /// Initializes a new instance of the LabeledUtterance class. + /// + public LabeledUtterance() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LabeledUtterance class. + /// + /// ID of Labeled Utterance. + /// The utterance. E.g.: what's the weather like in + /// seattle? + /// The utterance tokenized. + /// The intent matching the example. + /// The entities matching the + /// example. + /// List of suggested intents. + /// List of suggested entities. + public LabeledUtterance(int? id = default(int?), string text = default(string), IList tokenizedText = default(IList), string intentLabel = default(string), IList entityLabels = default(IList), IList intentPredictions = default(IList), IList entityPredictions = default(IList)) + { + Id = id; + Text = text; + TokenizedText = tokenizedText; + IntentLabel = intentLabel; + EntityLabels = entityLabels; + IntentPredictions = intentPredictions; + EntityPredictions = entityPredictions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of Labeled Utterance. + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// Gets or sets the utterance. E.g.: what's the weather like in + /// seattle? + /// + [JsonProperty(PropertyName = "text")] + public string Text { get; set; } + + /// + /// Gets or sets the utterance tokenized. + /// + [JsonProperty(PropertyName = "tokenizedText")] + public IList TokenizedText { get; set; } + + /// + /// Gets or sets the intent matching the example. + /// + [JsonProperty(PropertyName = "intentLabel")] + public string IntentLabel { get; set; } + + /// + /// Gets or sets the entities matching the example. + /// + [JsonProperty(PropertyName = "entityLabels")] + public IList EntityLabels { get; set; } + + /// + /// Gets or sets list of suggested intents. + /// + [JsonProperty(PropertyName = "intentPredictions")] + public IList IntentPredictions { get; set; } + + /// + /// Gets or sets list of suggested entities. + /// + [JsonProperty(PropertyName = "entityPredictions")] + public IList EntityPredictions { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LuisApp.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LuisApp.cs new file mode 100644 index 000000000000..d3ee2c5578ed --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/LuisApp.cs @@ -0,0 +1,153 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Exported Model - An exported LUIS Application. + /// + public partial class LuisApp + { + /// + /// Initializes a new instance of the LuisApp class. + /// + public LuisApp() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LuisApp class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The name of the application. + /// The version ID of the application that was + /// exported. + /// The description of the application. + /// The culture of the application. E.g.: + /// en-us. + /// List of intents. + /// List of entities. + /// List of prebuilt intents. + /// List of closed lists. + /// List of composite entities. + /// List of pattern features. + /// List of model features. + /// List of sample 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 bingEntities = default(IList), IList closedLists = default(IList), IList composites = default(IList), IList regexFeatures = default(IList), IList modelFeatures = default(IList), IList utterances = default(IList)) + { + AdditionalProperties = additionalProperties; + Name = name; + VersionId = versionId; + Desc = desc; + Culture = culture; + Intents = intents; + Entities = entities; + BingEntities = bingEntities; + ClosedLists = closedLists; + Composites = composites; + RegexFeatures = regexFeatures; + ModelFeatures = modelFeatures; + Utterances = utterances; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets the name of the application. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the version ID of the application that was exported. + /// + [JsonProperty(PropertyName = "versionId")] + public string VersionId { get; set; } + + /// + /// Gets or sets the description of the application. + /// + [JsonProperty(PropertyName = "desc")] + public string Desc { get; set; } + + /// + /// Gets or sets the culture of the application. E.g.: en-us. + /// + [JsonProperty(PropertyName = "culture")] + public string Culture { get; set; } + + /// + /// Gets or sets list of intents. + /// + [JsonProperty(PropertyName = "intents")] + public IList Intents { get; set; } + + /// + /// Gets or sets list of entities. + /// + [JsonProperty(PropertyName = "entities")] + public IList Entities { get; set; } + + /// + /// Gets or sets list of prebuilt intents. + /// + [JsonProperty(PropertyName = "bing_entities")] + public IList BingEntities { get; set; } + + /// + /// Gets or sets list of closed lists. + /// + [JsonProperty(PropertyName = "closedLists")] + public IList ClosedLists { get; set; } + + /// + /// Gets or sets list of composite entities. + /// + [JsonProperty(PropertyName = "composites")] + public IList Composites { get; set; } + + /// + /// Gets or sets list of pattern features. + /// + [JsonProperty(PropertyName = "regex_features")] + public IList RegexFeatures { get; set; } + + /// + /// Gets or sets list of model features. + /// + [JsonProperty(PropertyName = "model_features")] + public IList ModelFeatures { get; set; } + + /// + /// Gets or sets list of sample utterances. + /// + [JsonProperty(PropertyName = "utterances")] + public IList Utterances { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelCreateObject.cs new file mode 100644 index 000000000000..427635d7ce46 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelCreateObject.cs @@ -0,0 +1,51 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for creating a new entity extractor. + /// + public partial class ModelCreateObject + { + /// + /// Initializes a new instance of the ModelCreateObject class. + /// + public ModelCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ModelCreateObject class. + /// + /// Name of the new entity extractor. + public ModelCreateObject(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the new entity extractor. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelInfo.cs new file mode 100644 index 000000000000..58ebb376fc82 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelInfo.cs @@ -0,0 +1,96 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Base type used in entity types. + /// + public partial class ModelInfo + { + /// + /// Initializes a new instance of the ModelInfo class. + /// + public ModelInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ModelInfo class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + public ModelInfo(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?)) + { + Id = id; + Name = name; + TypeId = typeId; + ReadableType = readableType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the Entity Model. + /// + [JsonProperty(PropertyName = "id")] + public System.Guid Id { get; set; } + + /// + /// Gets or sets name of the Entity Model. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the type ID of the Entity Model. + /// + [JsonProperty(PropertyName = "typeId")] + public int? TypeId { get; set; } + + /// + /// Gets or sets possible values include: 'Entity Extractor', + /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + /// Extractor', 'Composite Entity Extractor', 'Closed List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier' + /// + [JsonProperty(PropertyName = "readableType")] + public string ReadableType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReadableType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReadableType"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelInfoResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelInfoResponse.cs new file mode 100644 index 000000000000..36b6c38916cc --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelInfoResponse.cs @@ -0,0 +1,141 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An application model info. + /// + public partial class ModelInfoResponse + { + /// + /// Initializes a new instance of the ModelInfoResponse class. + /// + public ModelInfoResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ModelInfoResponse class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// List of child entities. + /// List of sub-lists. + /// The domain name. + /// The intent name or entity + /// name. + /// Name of the Entity Model. + /// The type ID of the Entity Model. + public ModelInfoResponse(System.Guid id, string readableType, IList children = default(IList), IList subLists = default(IList), string customPrebuiltDomainName = default(string), string customPrebuiltModelName = default(string), string name = default(string), int? typeId = default(int?)) + { + Children = children; + SubLists = subLists; + CustomPrebuiltDomainName = customPrebuiltDomainName; + CustomPrebuiltModelName = customPrebuiltModelName; + Id = id; + Name = name; + TypeId = typeId; + ReadableType = readableType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of child entities. + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// Gets or sets list of sub-lists. + /// + [JsonProperty(PropertyName = "subLists")] + public IList SubLists { get; set; } + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "customPrebuiltDomainName")] + public string CustomPrebuiltDomainName { get; set; } + + /// + /// Gets or sets the intent name or entity name. + /// + [JsonProperty(PropertyName = "customPrebuiltModelName")] + public string CustomPrebuiltModelName { get; set; } + + /// + /// Gets or sets the ID of the Entity Model. + /// + [JsonProperty(PropertyName = "id")] + public System.Guid Id { get; set; } + + /// + /// Gets or sets name of the Entity Model. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the type ID of the Entity Model. + /// + [JsonProperty(PropertyName = "typeId")] + public int? TypeId { get; set; } + + /// + /// Gets or sets possible values include: 'Entity Extractor', + /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity + /// Extractor', 'Composite Entity Extractor', 'Closed List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier' + /// + [JsonProperty(PropertyName = "readableType")] + public string ReadableType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReadableType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReadableType"); + } + if (Children != null) + { + foreach (var element in Children) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelTrainingDetails.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelTrainingDetails.cs new file mode 100644 index 000000000000..8dfe6746a2f4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelTrainingDetails.cs @@ -0,0 +1,87 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Model Training Details. + /// + public partial class ModelTrainingDetails + { + /// + /// Initializes a new instance of the ModelTrainingDetails class. + /// + public ModelTrainingDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ModelTrainingDetails class. + /// + /// The train request status ID. + /// Possible values include: 'Queued', + /// 'InProgress', 'UpToDate', 'Fail', 'Success' + /// The count of examples used to train the + /// model. + /// When the model was trained. + /// Reason for the training + /// failure. + public ModelTrainingDetails(int? statusId = default(int?), string status = default(string), int? exampleCount = default(int?), System.DateTime? trainingDateTime = default(System.DateTime?), string failureReason = default(string)) + { + StatusId = statusId; + Status = status; + ExampleCount = exampleCount; + TrainingDateTime = trainingDateTime; + FailureReason = failureReason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the train request status ID. + /// + [JsonProperty(PropertyName = "statusId")] + public int? StatusId { get; set; } + + /// + /// Gets or sets possible values include: 'Queued', 'InProgress', + /// 'UpToDate', 'Fail', 'Success' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the count of examples used to train the model. + /// + [JsonProperty(PropertyName = "exampleCount")] + public int? ExampleCount { get; set; } + + /// + /// Gets or sets when the model was trained. + /// + [JsonProperty(PropertyName = "trainingDateTime")] + public System.DateTime? TrainingDateTime { get; set; } + + /// + /// Gets or sets reason for the training failure. + /// + [JsonProperty(PropertyName = "failureReason")] + public string FailureReason { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelTrainingInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelTrainingInfo.cs new file mode 100644 index 000000000000..cfa18f3e641b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelTrainingInfo.cs @@ -0,0 +1,57 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Model Training Info. + /// + public partial class ModelTrainingInfo + { + /// + /// Initializes a new instance of the ModelTrainingInfo class. + /// + public ModelTrainingInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ModelTrainingInfo class. + /// + /// The ID (GUID) of the model. + public ModelTrainingInfo(System.Guid? modelId = default(System.Guid?), ModelTrainingDetails details = default(ModelTrainingDetails)) + { + ModelId = modelId; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID (GUID) of the model. + /// + [JsonProperty(PropertyName = "modelId")] + public System.Guid? ModelId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "details")] + public ModelTrainingDetails Details { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelUpdateObject.cs new file mode 100644 index 000000000000..961119306883 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ModelUpdateObject.cs @@ -0,0 +1,51 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for updating an intent classifier. + /// + public partial class ModelUpdateObject + { + /// + /// Initializes a new instance of the ModelUpdateObject class. + /// + public ModelUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ModelUpdateObject class. + /// + /// The entity's new name. + public ModelUpdateObject(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the entity's new name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationError.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationError.cs new file mode 100644 index 000000000000..010c295de0d0 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationError.cs @@ -0,0 +1,55 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operation error details when invoking an operation on the API. + /// + public partial class OperationError + { + /// + /// Initializes a new instance of the OperationError class. + /// + public OperationError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationError class. + /// + public OperationError(string code = default(string), string message = default(string)) + { + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationStatus.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationStatus.cs new file mode 100644 index 000000000000..297ca89f8100 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationStatus.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response of an Operation status. + /// + public partial class OperationStatus + { + /// + /// Initializes a new instance of the OperationStatus class. + /// + public OperationStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationStatus class. + /// + /// Status Code. Possible values include: 'Failed', + /// 'FAILED', 'Success' + /// Status details. + public OperationStatus(string code = default(string), string message = default(string)) + { + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets status Code. Possible values include: 'Failed', + /// 'FAILED', 'Success' + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets status details. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationStatusType.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationStatusType.cs new file mode 100644 index 000000000000..62f170b5e4e7 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/OperationStatusType.cs @@ -0,0 +1,23 @@ +// +// 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.Programmatic.Models +{ + + /// + /// Defines values for OperationStatusType. + /// + public static class OperationStatusType + { + public const string Failed = "Failed"; + public const string FAILED = "FAILED"; + public const string Success = "Success"; + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternCreateObject.cs new file mode 100644 index 000000000000..3a8e5c86f9e7 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternCreateObject.cs @@ -0,0 +1,59 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for creating a Pattern feature. + /// + public partial class PatternCreateObject + { + /// + /// Initializes a new instance of the PatternCreateObject class. + /// + public PatternCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PatternCreateObject class. + /// + /// The Regular Expression to match. + /// Name of the feature. + public PatternCreateObject(string pattern = default(string), string name = default(string)) + { + Pattern = pattern; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Regular Expression to match. + /// + [JsonProperty(PropertyName = "pattern")] + public string Pattern { get; set; } + + /// + /// Gets or sets name of the feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternFeatureInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternFeatureInfo.cs new file mode 100644 index 000000000000..a083775f88ea --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternFeatureInfo.cs @@ -0,0 +1,55 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Pattern feature. + /// + public partial class PatternFeatureInfo : FeatureInfoObject + { + /// + /// Initializes a new instance of the PatternFeatureInfo class. + /// + public PatternFeatureInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PatternFeatureInfo class. + /// + /// A six-digit ID used for Features. + /// The name of the Feature. + /// Indicates if the feature is enabled. + /// The Regular Expression to match. + public PatternFeatureInfo(int? id = default(int?), string name = default(string), bool? isActive = default(bool?), string pattern = default(string)) + : base(id, name, isActive) + { + Pattern = pattern; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Regular Expression to match. + /// + [JsonProperty(PropertyName = "pattern")] + public string Pattern { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternUpdateObject.cs new file mode 100644 index 000000000000..459677693043 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PatternUpdateObject.cs @@ -0,0 +1,68 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for updating an existing Pattern feature. + /// + public partial class PatternUpdateObject + { + /// + /// Initializes a new instance of the PatternUpdateObject class. + /// + public PatternUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PatternUpdateObject class. + /// + /// The Regular Expression to match. + /// Name of the feature. + /// Indicates if the Pattern feature is + /// enabled. + public PatternUpdateObject(string pattern = default(string), string name = default(string), bool? isActive = default(bool?)) + { + Pattern = pattern; + Name = name; + IsActive = isActive; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Regular Expression to match. + /// + [JsonProperty(PropertyName = "pattern")] + public string Pattern { get; set; } + + /// + /// Gets or sets name of the feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets indicates if the Pattern feature is enabled. + /// + [JsonProperty(PropertyName = "isActive")] + public bool? IsActive { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PersonalAssistantsResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PersonalAssistantsResponse.cs new file mode 100644 index 000000000000..55e0d3800871 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PersonalAssistantsResponse.cs @@ -0,0 +1,58 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Response containing user's endpoint keys and the endpoint URLs of the + /// prebuilt Cortana applications. + /// + public partial class PersonalAssistantsResponse + { + /// + /// Initializes a new instance of the PersonalAssistantsResponse class. + /// + public PersonalAssistantsResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PersonalAssistantsResponse class. + /// + public PersonalAssistantsResponse(IList endpointKeys = default(IList), IDictionary endpointUrls = default(IDictionary)) + { + EndpointKeys = endpointKeys; + EndpointUrls = endpointUrls; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "endpointKeys")] + public IList EndpointKeys { get; set; } + + /// + /// + [JsonProperty(PropertyName = "endpointUrls")] + public IDictionary EndpointUrls { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraseListFeatureInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraseListFeatureInfo.cs new file mode 100644 index 000000000000..51b3904bc15c --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraseListFeatureInfo.cs @@ -0,0 +1,86 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Phraselist Feature. + /// + public partial class PhraseListFeatureInfo : FeatureInfoObject + { + /// + /// Initializes a new instance of the PhraseListFeatureInfo class. + /// + public PhraseListFeatureInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PhraseListFeatureInfo class. + /// + /// A six-digit ID used for Features. + /// The name of the Feature. + /// Indicates if the feature is enabled. + /// A list of comma-separated values. + /// An exchangeable phrase list feature + /// are serves as single feature to the LUIS underlying training + /// algorithm. 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. Think + /// of an exchangeable as a synonyms list. A non-exchangeable phrase + /// list feature has all the phrases in the list serve as separate + /// features to the underlying training algorithm. So, if you your + /// phrase list feature contains 5 phrases, they will be mapped to 5 + /// separate features. You can think of the non-exchangeable phrase + /// list feature as an additional bag of words that you are willing to + /// add to LUIS existing vocabulary features. Think of a + /// non-exchangeable as set of different words. Default value is + /// true. + public PhraseListFeatureInfo(int? id = default(int?), string name = default(string), bool? isActive = default(bool?), string phrases = default(string), bool? isExchangeable = default(bool?)) + : base(id, name, isActive) + { + Phrases = phrases; + IsExchangeable = isExchangeable; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a list of comma-separated values. + /// + [JsonProperty(PropertyName = "phrases")] + public string Phrases { get; set; } + + /// + /// Gets or sets an exchangeable phrase list feature are serves as + /// single feature to the LUIS underlying training algorithm. 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. Think of an + /// exchangeable as a synonyms list. A non-exchangeable phrase list + /// feature has all the phrases in the list serve as separate features + /// to the underlying training algorithm. So, if you your phrase list + /// feature contains 5 phrases, they will be mapped to 5 separate + /// features. You can think of the non-exchangeable phrase list feature + /// as an additional bag of words that you are willing to add to LUIS + /// existing vocabulary features. Think of a non-exchangeable as set of + /// different words. Default value is true. + /// + [JsonProperty(PropertyName = "isExchangeable")] + public bool? IsExchangeable { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraselistCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraselistCreateObject.cs new file mode 100644 index 000000000000..2efac5062b72 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraselistCreateObject.cs @@ -0,0 +1,92 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for creating a phraselist model. + /// + public partial class PhraselistCreateObject + { + /// + /// Initializes a new instance of the PhraselistCreateObject class. + /// + public PhraselistCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PhraselistCreateObject class. + /// + /// List of comma-separated phrases that + /// represent the Phraselist. + /// The Phraselist name. + /// An exchangeable phrase list feature + /// are serves as single feature to the LUIS underlying training + /// algorithm. 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. Think + /// of an exchangeable as a synonyms list. A non-exchangeable phrase + /// list feature has all the phrases in the list serve as separate + /// features to the underlying training algorithm. So, if you your + /// phrase list feature contains 5 phrases, they will be mapped to 5 + /// separate features. You can think of the non-exchangeable phrase + /// list feature as an additional bag of words that you are willing to + /// add to LUIS existing vocabulary features. Think of a + /// non-exchangeable as set of different words. Default value is + /// true. + public PhraselistCreateObject(string phrases = default(string), string name = default(string), bool? isExchangeable = default(bool?)) + { + Phrases = phrases; + Name = name; + IsExchangeable = isExchangeable; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of comma-separated phrases that represent the + /// Phraselist. + /// + [JsonProperty(PropertyName = "phrases")] + public string Phrases { get; set; } + + /// + /// Gets or sets the Phraselist name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets an exchangeable phrase list feature are serves as + /// single feature to the LUIS underlying training algorithm. 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. Think of an + /// exchangeable as a synonyms list. A non-exchangeable phrase list + /// feature has all the phrases in the list serve as separate features + /// to the underlying training algorithm. So, if you your phrase list + /// feature contains 5 phrases, they will be mapped to 5 separate + /// features. You can think of the non-exchangeable phrase list feature + /// as an additional bag of words that you are willing to add to LUIS + /// existing vocabulary features. Think of a non-exchangeable as set of + /// different words. Default value is true. + /// + [JsonProperty(PropertyName = "isExchangeable")] + public bool? IsExchangeable { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraselistUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraselistUpdateObject.cs new file mode 100644 index 000000000000..17ee4e3bb103 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PhraselistUpdateObject.cs @@ -0,0 +1,101 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for updating a Phraselist. + /// + public partial class PhraselistUpdateObject + { + /// + /// Initializes a new instance of the PhraselistUpdateObject class. + /// + public PhraselistUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PhraselistUpdateObject class. + /// + /// List of comma-separated phrases that + /// represent the Phraselist. + /// The Phraselist name. + /// Indicates if the Phraselist is + /// enabled. + /// An exchangeable phrase list feature + /// are serves as single feature to the LUIS underlying training + /// algorithm. 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. Think + /// of an exchangeable as a synonyms list. A non-exchangeable phrase + /// list feature has all the phrases in the list serve as separate + /// features to the underlying training algorithm. So, if you your + /// phrase list feature contains 5 phrases, they will be mapped to 5 + /// separate features. You can think of the non-exchangeable phrase + /// list feature as an additional bag of words that you are willing to + /// add to LUIS existing vocabulary features. Think of a + /// non-exchangeable as set of different words. Default value is + /// true. + public PhraselistUpdateObject(string phrases = default(string), string name = default(string), bool? isActive = default(bool?), bool? isExchangeable = default(bool?)) + { + Phrases = phrases; + Name = name; + IsActive = isActive; + IsExchangeable = isExchangeable; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of comma-separated phrases that represent the + /// Phraselist. + /// + [JsonProperty(PropertyName = "phrases")] + public string Phrases { get; set; } + + /// + /// Gets or sets the Phraselist name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets indicates if the Phraselist is enabled. + /// + [JsonProperty(PropertyName = "isActive")] + public bool? IsActive { get; set; } + + /// + /// Gets or sets an exchangeable phrase list feature are serves as + /// single feature to the LUIS underlying training algorithm. 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. Think of an + /// exchangeable as a synonyms list. A non-exchangeable phrase list + /// feature has all the phrases in the list serve as separate features + /// to the underlying training algorithm. So, if you your phrase list + /// feature contains 5 phrases, they will be mapped to 5 separate + /// features. You can think of the non-exchangeable phrase list feature + /// as an additional bag of words that you are willing to add to LUIS + /// existing vocabulary features. Think of a non-exchangeable as set of + /// different words. Default value is true. + /// + [JsonProperty(PropertyName = "isExchangeable")] + public bool? IsExchangeable { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomain.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomain.cs new file mode 100644 index 000000000000..fc75fbb7f67d --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomain.cs @@ -0,0 +1,81 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Prebuilt Domain. + /// + public partial class PrebuiltDomain + { + /// + /// Initializes a new instance of the PrebuiltDomain class. + /// + public PrebuiltDomain() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrebuiltDomain class. + /// + public PrebuiltDomain(string name = default(string), string culture = default(string), string description = default(string), string examples = default(string), IList intents = default(IList), IList entities = default(IList)) + { + Name = name; + Culture = culture; + Description = description; + Examples = examples; + Intents = intents; + Entities = entities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "culture")] + public string Culture { get; set; } + + /// + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// + [JsonProperty(PropertyName = "examples")] + public string Examples { get; set; } + + /// + /// + [JsonProperty(PropertyName = "intents")] + public IList Intents { get; set; } + + /// + /// + [JsonProperty(PropertyName = "entities")] + public IList Entities { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainCreateBaseObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainCreateBaseObject.cs new file mode 100644 index 000000000000..b528667b6619 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainCreateBaseObject.cs @@ -0,0 +1,54 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A model object containing the name of the custom prebuilt entity and + /// the name of the domain to which this model belongs. + /// + public partial class PrebuiltDomainCreateBaseObject + { + /// + /// Initializes a new instance of the PrebuiltDomainCreateBaseObject + /// class. + /// + public PrebuiltDomainCreateBaseObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrebuiltDomainCreateBaseObject + /// class. + /// + /// The domain name. + public PrebuiltDomainCreateBaseObject(string domainName = default(string)) + { + DomainName = domainName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "domainName")] + public string DomainName { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainCreateObject.cs new file mode 100644 index 000000000000..48da3decba52 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainCreateObject.cs @@ -0,0 +1,60 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A prebuilt domain create object containing the name and culture of the + /// domain. + /// + public partial class PrebuiltDomainCreateObject + { + /// + /// Initializes a new instance of the PrebuiltDomainCreateObject class. + /// + public PrebuiltDomainCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrebuiltDomainCreateObject class. + /// + /// The domain name. + /// The culture of the new domain. + public PrebuiltDomainCreateObject(string domainName = default(string), string culture = default(string)) + { + DomainName = domainName; + Culture = culture; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "domainName")] + public string DomainName { get; set; } + + /// + /// Gets or sets the culture of the new domain. + /// + [JsonProperty(PropertyName = "culture")] + public string Culture { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainItem.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainItem.cs new file mode 100644 index 000000000000..5ce1fd21e4be --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainItem.cs @@ -0,0 +1,58 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class PrebuiltDomainItem + { + /// + /// Initializes a new instance of the PrebuiltDomainItem class. + /// + public PrebuiltDomainItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrebuiltDomainItem class. + /// + public PrebuiltDomainItem(string name = default(string), string description = default(string), string examples = default(string)) + { + Name = name; + Description = description; + Examples = examples; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// + [JsonProperty(PropertyName = "examples")] + public string Examples { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainModelCreateObject.cs new file mode 100644 index 000000000000..bde72c0d8e4e --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltDomainModelCreateObject.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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A model object containing the name of the custom prebuilt intent or + /// entity and the name of the domain to which this model belongs. + /// + public partial class PrebuiltDomainModelCreateObject + { + /// + /// Initializes a new instance of the PrebuiltDomainModelCreateObject + /// class. + /// + public PrebuiltDomainModelCreateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrebuiltDomainModelCreateObject + /// class. + /// + /// The domain name. + /// The intent name or entity name. + public PrebuiltDomainModelCreateObject(string domainName = default(string), string modelName = default(string)) + { + DomainName = domainName; + ModelName = modelName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "domainName")] + public string DomainName { get; set; } + + /// + /// Gets or sets the intent name or entity name. + /// + [JsonProperty(PropertyName = "modelName")] + public string ModelName { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltEntityExtractor.cs new file mode 100644 index 000000000000..087a38c8a4b4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/PrebuiltEntityExtractor.cs @@ -0,0 +1,61 @@ +// +// 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.Programmatic.Models +{ + using System.Linq; + + /// + /// Prebuilt Entity Extractor. + /// + public partial class PrebuiltEntityExtractor : ModelInfo + { + /// + /// Initializes a new instance of the PrebuiltEntityExtractor class. + /// + public PrebuiltEntityExtractor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrebuiltEntityExtractor class. + /// + /// The ID of the Entity Model. + /// Possible values include: 'Entity + /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child + /// Entity Extractor', 'Composite Entity Extractor', 'Closed List + /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent + /// Classifier' + /// Name of the Entity Model. + /// The type ID of the Entity Model. + public PrebuiltEntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?)) + : base(id, readableType, name, typeId) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ProductionOrStagingEndpointInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ProductionOrStagingEndpointInfo.cs new file mode 100644 index 000000000000..e940e907f81b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/ProductionOrStagingEndpointInfo.cs @@ -0,0 +1,53 @@ +// +// 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.Programmatic.Models +{ + using System.Linq; + + public partial class ProductionOrStagingEndpointInfo : EndpointInfo + { + /// + /// Initializes a new instance of the ProductionOrStagingEndpointInfo + /// class. + /// + public ProductionOrStagingEndpointInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProductionOrStagingEndpointInfo + /// class. + /// + /// The version ID to publish. + /// Indicates if the staging slot should be + /// used, instead of the Production one. + /// The Runtime endpoint URL for this model + /// version. + /// The target region that the application is + /// published to. + /// The endpoint key. + /// The endpoint's region. + /// Timestamp when was last + /// published. + public ProductionOrStagingEndpointInfo(string versionId = default(string), bool? isStaging = default(bool?), string endpointUrl = default(string), string region = default(string), string assignedEndpointKey = default(string), string endpointRegion = default(string), string publishedDateTime = default(string)) + : base(versionId, isStaging, endpointUrl, region, assignedEndpointKey, endpointRegion, publishedDateTime) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/SubClosedList.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/SubClosedList.cs new file mode 100644 index 000000000000..2380025e2a95 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/SubClosedList.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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Sublist of items for a Closed list. + /// + public partial class SubClosedList + { + /// + /// Initializes a new instance of the SubClosedList class. + /// + public SubClosedList() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubClosedList class. + /// + /// The standard form that the list + /// represents. + /// List of synonym words. + public SubClosedList(string canonicalForm = default(string), IList list = default(IList)) + { + CanonicalForm = canonicalForm; + List = list; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the standard form that the list represents. + /// + [JsonProperty(PropertyName = "canonicalForm")] + public string CanonicalForm { get; set; } + + /// + /// Gets or sets list of synonym words. + /// + [JsonProperty(PropertyName = "list")] + public IList List { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/SubClosedListResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/SubClosedListResponse.cs new file mode 100644 index 000000000000..0e0b1752f390 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/SubClosedListResponse.cs @@ -0,0 +1,57 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Sublist of items for a Closed list. + /// + public partial class SubClosedListResponse : SubClosedList + { + /// + /// Initializes a new instance of the SubClosedListResponse class. + /// + public SubClosedListResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubClosedListResponse class. + /// + /// The standard form that the list + /// represents. + /// List of synonym words. + /// The sublist ID + public SubClosedListResponse(string canonicalForm = default(string), IList list = default(IList), int id = default(int)) + : base(canonicalForm, list) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the sublist ID + /// + [JsonProperty(PropertyName = "id")] + public int Id { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/TaskUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/TaskUpdateObject.cs new file mode 100644 index 000000000000..0ac25f1feba5 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/TaskUpdateObject.cs @@ -0,0 +1,51 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Object model for cloning an application's version. + /// + public partial class TaskUpdateObject + { + /// + /// Initializes a new instance of the TaskUpdateObject class. + /// + public TaskUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TaskUpdateObject class. + /// + /// The new version for the cloned model. + public TaskUpdateObject(string version = default(string)) + { + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the new version for the cloned model. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/TrainingStatus.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/TrainingStatus.cs new file mode 100644 index 000000000000..f95b5c7084f6 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/TrainingStatus.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.Programmatic.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for TrainingStatus. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TrainingStatus + { + [EnumMember(Value = "NeedsTraining")] + NeedsTraining, + [EnumMember(Value = "InProgress")] + InProgress, + [EnumMember(Value = "Trained")] + Trained + } + internal static class TrainingStatusEnumExtension + { + internal static string ToSerializedValue(this TrainingStatus? value) + { + return value == null ? null : ((TrainingStatus)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this TrainingStatus value) + { + switch( value ) + { + case TrainingStatus.NeedsTraining: + return "NeedsTraining"; + case TrainingStatus.InProgress: + return "InProgress"; + case TrainingStatus.Trained: + return "Trained"; + } + return null; + } + + internal static TrainingStatus? ParseTrainingStatus(this string value) + { + switch( value ) + { + case "NeedsTraining": + return TrainingStatus.NeedsTraining; + case "InProgress": + return TrainingStatus.InProgress; + case "Trained": + return TrainingStatus.Trained; + } + return null; + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/UserAccessList.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/UserAccessList.cs new file mode 100644 index 000000000000..c5a63a39e742 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/UserAccessList.cs @@ -0,0 +1,60 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// List of user permissions. + /// + public partial class UserAccessList + { + /// + /// Initializes a new instance of the UserAccessList class. + /// + public UserAccessList() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserAccessList class. + /// + /// The email address of owner of the + /// application. + public UserAccessList(string owner = default(string), IList emails = default(IList)) + { + Owner = owner; + Emails = emails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the email address of owner of the application. + /// + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// + [JsonProperty(PropertyName = "emails")] + public IList Emails { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/UserCollaborator.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/UserCollaborator.cs new file mode 100644 index 000000000000..6a73bde79b47 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/UserCollaborator.cs @@ -0,0 +1,48 @@ +// +// 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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class UserCollaborator + { + /// + /// Initializes a new instance of the UserCollaborator class. + /// + public UserCollaborator() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserCollaborator class. + /// + /// The email address of the user. + public UserCollaborator(string email = default(string)) + { + Email = email; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the email address of the user. + /// + [JsonProperty(PropertyName = "email")] + public string Email { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/VersionInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/VersionInfo.cs new file mode 100644 index 000000000000..4e2fa16bcb82 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/VersionInfo.cs @@ -0,0 +1,164 @@ +// +// 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.Programmatic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model of an application version. + /// + public partial class VersionInfo + { + /// + /// Initializes a new instance of the VersionInfo class. + /// + public VersionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VersionInfo class. + /// + /// The version ID. E.g.: "0.1" + /// The current training status. Possible + /// values include: 'NeedsTraining', 'InProgress', 'Trained' + /// The version's creation + /// timestamp. + /// Timestamp of the last + /// update. + /// Timestamp of the last time the + /// model was trained. + /// Timestamp when was last + /// published. + /// The Runtime endpoint URL for this model + /// version. + /// The endpoint key. + /// External keys. + /// Number of intents in this model. + /// Number of entities in this + /// model. + /// Number of calls made to this + /// endpoint. + public VersionInfo(string version, TrainingStatus trainingStatus, System.DateTime? createdDateTime = default(System.DateTime?), System.DateTime? lastModifiedDateTime = default(System.DateTime?), System.DateTime? lastTrainedDateTime = default(System.DateTime?), System.DateTime? lastPublishedDateTime = default(System.DateTime?), string endpointUrl = default(string), IDictionary assignedEndpointKey = default(IDictionary), object externalApiKeys = default(object), int? intentsCount = default(int?), int? entitiesCount = default(int?), int? endpointHitsCount = default(int?)) + { + Version = version; + CreatedDateTime = createdDateTime; + LastModifiedDateTime = lastModifiedDateTime; + LastTrainedDateTime = lastTrainedDateTime; + LastPublishedDateTime = lastPublishedDateTime; + EndpointUrl = endpointUrl; + AssignedEndpointKey = assignedEndpointKey; + ExternalApiKeys = externalApiKeys; + IntentsCount = intentsCount; + EntitiesCount = entitiesCount; + EndpointHitsCount = endpointHitsCount; + TrainingStatus = trainingStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the version ID. E.g.: "0.1" + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// Gets or sets the version's creation timestamp. + /// + [JsonProperty(PropertyName = "createdDateTime")] + public System.DateTime? CreatedDateTime { get; set; } + + /// + /// Gets or sets timestamp of the last update. + /// + [JsonProperty(PropertyName = "lastModifiedDateTime")] + public System.DateTime? LastModifiedDateTime { get; set; } + + /// + /// Gets or sets timestamp of the last time the model was trained. + /// + [JsonProperty(PropertyName = "lastTrainedDateTime")] + public System.DateTime? LastTrainedDateTime { get; set; } + + /// + /// Gets or sets timestamp when was last published. + /// + [JsonProperty(PropertyName = "lastPublishedDateTime")] + public System.DateTime? LastPublishedDateTime { get; set; } + + /// + /// Gets or sets the Runtime endpoint URL for this model version. + /// + [JsonProperty(PropertyName = "endpointUrl")] + public string EndpointUrl { get; set; } + + /// + /// Gets or sets the endpoint key. + /// + [JsonProperty(PropertyName = "assignedEndpointKey")] + public IDictionary AssignedEndpointKey { get; set; } + + /// + /// Gets or sets external keys. + /// + [JsonProperty(PropertyName = "externalApiKeys")] + public object ExternalApiKeys { get; set; } + + /// + /// Gets or sets number of intents in this model. + /// + [JsonProperty(PropertyName = "intentsCount")] + public int? IntentsCount { get; set; } + + /// + /// Gets or sets number of entities in this model. + /// + [JsonProperty(PropertyName = "entitiesCount")] + public int? EntitiesCount { get; set; } + + /// + /// Gets or sets number of calls made to this endpoint. + /// + [JsonProperty(PropertyName = "endpointHitsCount")] + public int? EndpointHitsCount { get; set; } + + /// + /// Gets or sets the current training status. Possible values include: + /// 'NeedsTraining', 'InProgress', 'Trained' + /// + [JsonProperty(PropertyName = "trainingStatus")] + public TrainingStatus TrainingStatus { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Version == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Version"); + } + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/WordListBaseUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/WordListBaseUpdateObject.cs new file mode 100644 index 000000000000..8939ba5dc351 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/WordListBaseUpdateObject.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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model for updating one of the closed list's sublists. + /// + public partial class WordListBaseUpdateObject + { + /// + /// Initializes a new instance of the WordListBaseUpdateObject class. + /// + public WordListBaseUpdateObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WordListBaseUpdateObject class. + /// + /// The standard form that the list + /// represents. + /// List of synonym words. + public WordListBaseUpdateObject(string canonicalForm = default(string), IList list = default(IList)) + { + CanonicalForm = canonicalForm; + List = list; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the standard form that the list represents. + /// + [JsonProperty(PropertyName = "canonicalForm")] + public string CanonicalForm { get; set; } + + /// + /// Gets or sets list of synonym words. + /// + [JsonProperty(PropertyName = "list")] + public IList List { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/WordListObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/WordListObject.cs new file mode 100644 index 000000000000..cb2c1343492a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Models/WordListObject.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.Programmatic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Sublist of items for a Closed list. + /// + public partial class WordListObject + { + /// + /// Initializes a new instance of the WordListObject class. + /// + public WordListObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WordListObject class. + /// + /// The standard form that the list + /// represents. + /// List of synonym words. + public WordListObject(string canonicalForm = default(string), IList list = default(IList)) + { + CanonicalForm = canonicalForm; + List = list; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the standard form that the list represents. + /// + [JsonProperty(PropertyName = "canonicalForm")] + public string CanonicalForm { get; set; } + + /// + /// Gets or sets list of synonym words. + /// + [JsonProperty(PropertyName = "list")] + public IList List { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Permissions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Permissions.cs new file mode 100644 index 000000000000..1a9c87a6bb5b --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Permissions.cs @@ -0,0 +1,674 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Permissions operations. + /// + public partial class Permissions : IServiceOperations, IPermissions + { + /// + /// Initializes a new instance of the Permissions class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Permissions(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Gets the list of user emails that have permissions to access your + /// application. + /// + /// + /// The application ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Adds a user to the allowed list of users to access this LUIS application. + /// Users are added using their email address. + /// + /// + /// The application ID. + /// + /// + /// A model containing the user's email address. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (userToAdd == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "userToAdd"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("userToAdd", userToAdd); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(userToAdd != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(userToAdd, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Removes a user from the allowed list of users to access this LUIS + /// application. Users are removed using their email address. + /// + /// + /// The application ID. + /// + /// + /// A model containing the user's email address. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (userToDelete == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "userToDelete"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("userToDelete", userToDelete); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(userToDelete != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(userToDelete, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Replaces the current users access list with the one sent in the body. If an + /// empty list is sent, all access to other users will be removed. + /// + /// + /// The application ID. + /// + /// + /// A model containing a list of user's email addresses. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (collaborators == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "collaborators"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("collaborators", collaborators); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(collaborators != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(collaborators, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/PermissionsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/PermissionsExtensions.cs new file mode 100644 index 000000000000..7dcd23d6db48 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/PermissionsExtensions.cs @@ -0,0 +1,116 @@ +// +// 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.Programmatic +{ + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Permissions. + /// + public static partial class PermissionsExtensions + { + /// + /// Gets the list of user emails that have permissions to access your + /// application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The cancellation token. + /// + public static async Task ListAsync(this IPermissions operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Adds a user to the allowed list of users to access this LUIS application. + /// Users are added using their email address. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// A model containing the user's email address. + /// + /// + /// The cancellation token. + /// + public static async Task AddAsync(this IPermissions operations, System.Guid appId, UserCollaborator userToAdd, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddWithHttpMessagesAsync(appId, userToAdd, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Removes a user from the allowed list of users to access this LUIS + /// application. Users are removed using their email address. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// A model containing the user's email address. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPermissions operations, System.Guid appId, UserCollaborator userToDelete, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, userToDelete, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Replaces the current users access list with the one sent in the body. If an + /// empty list is sent, all access to other users will be removed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// A model containing a list of user's email addresses. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IPermissions operations, System.Guid appId, CollaboratorsArray collaborators, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, collaborators, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Train.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Train.cs new file mode 100644 index 000000000000..629039d0b543 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Train.cs @@ -0,0 +1,372 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Train operations. + /// + public partial class Train : IServiceOperations, ITrain + { + /// + /// Initializes a new instance of the Train class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Train(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Sends a training request for a version of a specified LUIS app. This POST + /// request initiates a request asynchronously. To determine whether the + /// training request is successful, submit a GET request to get training + /// status. Note: The application version is not fully trained unless all the + /// models (intents and entities) are trained successfully or are up to date. + /// To verify training success, get the training status at least once after + /// training is complete. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> TrainVersionWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "TrainVersion", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/train"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the training status of all models (intents and entities) for the + /// specified LUIS app. You must call the train API to train the LUIS app + /// before you call this API to get training status. "appID" specifies the LUIS + /// app ID. "versionId" specifies the version number of the LUIS app. For + /// example, "0.1". + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetStatusWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetStatus", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/train"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/TrainExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/TrainExtensions.cs new file mode 100644 index 000000000000..60a13cc445ba --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/TrainExtensions.cs @@ -0,0 +1,81 @@ +// +// 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.Programmatic +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Train. + /// + public static partial class TrainExtensions + { + /// + /// Sends a training request for a version of a specified LUIS app. This POST + /// request initiates a request asynchronously. To determine whether the + /// training request is successful, submit a GET request to get training + /// status. Note: The application version is not fully trained unless all the + /// models (intents and entities) are trained successfully or are up to date. + /// To verify training success, get the training status at least once after + /// training is complete. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task TrainVersionAsync(this ITrain operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.TrainVersionWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the training status of all models (intents and entities) for the + /// specified LUIS app. You must call the train API to train the LUIS app + /// before you call this API to get training status. "appID" specifies the LUIS + /// app ID. "versionId" specifies the version number of the LUIS app. For + /// example, "0.1". + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task> GetStatusAsync(this ITrain operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetStatusWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Versions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Versions.cs new file mode 100644 index 000000000000..6d2ce1501be4 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/Versions.cs @@ -0,0 +1,1362 @@ +// +// 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.Programmatic +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Versions operations. + /// + public partial class Versions : IServiceOperations, IVersions + { + /// + /// Initializes a new instance of the Versions class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + public Versions(LuisProgrammaticAPI client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LuisProgrammaticAPI + /// + public LuisProgrammaticAPI Client { get; private set; } + + /// + /// Creates a new version using the current snapshot of the selected + /// application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the new version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CloneWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionCloneObject = default(TaskUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("versionCloneObject", versionCloneObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Clone", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/clone"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(versionCloneObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(versionCloneObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the application versions info. + /// + /// + /// The application ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the version info. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the name or description of the application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing Name and Description of the application. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (versionUpdateObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionUpdateObject"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("versionUpdateObject", versionUpdateObject); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(versionUpdateObject != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(versionUpdateObject, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes an application version. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Exports a LUIS application to JSON format. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ExportWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Export", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/export"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Imports a new version into a LUIS application. + /// + /// + /// The application ID. + /// + /// + /// A LUIS application structure. + /// + /// + /// The new versionId to import. If not specified, the versionId will be read + /// from the imported object. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ImportWithHttpMessagesAsync(System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (luisApp == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "luisApp"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("luisApp", luisApp); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Import", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/import"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + List _queryParameters = new List(); + if (versionId != null) + { + _queryParameters.Add(string.Format("versionId={0}", System.Uri.EscapeDataString(versionId))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(luisApp != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(luisApp, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deleted an unlabelled utterance. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The utterance text to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (utterance == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "utterance"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("utterance", utterance); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteUnlabelledUtterance", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/suggest"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AzureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(utterance != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(utterance, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/VersionsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/VersionsExtensions.cs new file mode 100644 index 000000000000..fa0200d5eb45 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Generated/VersionsExtensions.cs @@ -0,0 +1,226 @@ +// +// 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.Programmatic +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Versions. + /// + public static partial class VersionsExtensions + { + /// + /// Creates a new version using the current snapshot of the selected + /// application version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing the new version ID. + /// + /// + /// The cancellation token. + /// + public static async Task CloneAsync(this IVersions operations, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject = default(TaskUpdateObject), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CloneWithHttpMessagesAsync(appId, versionId, versionCloneObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the application versions info. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IVersions operations, System.Guid appId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(appId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the version info. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the name or description of the application version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// A model containing Name and Description of the application. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IVersions operations, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, versionId, versionUpdateObject, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an application version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports a LUIS application to JSON format. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The cancellation token. + /// + public static async Task ExportAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Imports a new version into a LUIS application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// A LUIS application structure. + /// + /// + /// The new versionId to import. If not specified, the versionId will be read + /// from the imported object. + /// + /// + /// The cancellation token. + /// + public static async Task ImportAsync(this IVersions operations, System.Guid appId, LuisApp luisApp, string versionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportWithHttpMessagesAsync(appId, luisApp, versionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deleted an unlabelled utterance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The utterance text to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteUnlabelledUtteranceAsync(this IVersions operations, System.Guid appId, string versionId, string utterance, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteUnlabelledUtteranceWithHttpMessagesAsync(appId, versionId, utterance, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Microsoft.Azure.CognitiveServices.LUIS.Programmatic.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Microsoft.Azure.CognitiveServices.LUIS.Programmatic.csproj new file mode 100644 index 000000000000..5116de7d57c0 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/Microsoft.Azure.CognitiveServices.LUIS.Programmatic.csproj @@ -0,0 +1,22 @@ + + + + + + + Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic + Provides API functions for consuming the Microsoft Azure Cognitive Services LUIS Programmatic API. + 2.0.0 + Microsoft.Azure.CognitiveServices.Language.LUIS.Programmatic + Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;LUIS;Language Understanding Intelligent Service;Language Understanding;REST HTTP client + This is a preview release of the Cognitive Services LUIS Programmatic SDK. + + + + net452;netstandard1.4 + + + + + + \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/generate.cmd b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/generate.cmd new file mode 100644 index 000000000000..1c063d993284 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Programmatic/generate.cmd @@ -0,0 +1,7 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +call %~dp0..\..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/LUIS/Programmatic %* \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/BaseTest.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/BaseTest.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/BaseTest.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/BaseTest.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/Luis/PredictionTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/Luis/PredictionTests.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/Luis/PredictionTests.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/Luis/PredictionTests.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj new file mode 100644 index 000000000000..31a2346e4fc8 --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj @@ -0,0 +1,28 @@ + + + + Microsoft.Azure.CognitiveServices.LUIS.Tests Class Library + Microsoft.Azure.CognitiveServices.LUIS.Tests + 2.0.0 + + + + netcoreapp1.1 + + + + + + + + + + PreserveNewest + + + + + + + + diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_InvalidKey_ThrowsAPIErrorException.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_InvalidKey_ThrowsAPIErrorException.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_InvalidKey_ThrowsAPIErrorException.json rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_InvalidKey_ThrowsAPIErrorException.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_Post.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_Post.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_Post.json rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_Post.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_QueryTooLong_ThrowsValidationException.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_QueryTooLong_ThrowsValidationException.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_QueryTooLong_ThrowsValidationException.json rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_QueryTooLong_ThrowsValidationException.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_WithSpellCheck.json b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_WithSpellCheck.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_WithSpellCheck.json rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.Tests/SessionRecords/LUIS.Tests.PredictionTests/Prediction_WithSpellCheck.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.sln b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.sln similarity index 90% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.sln rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.sln index f96c66cb528c..3a2aff281ace 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime.sln +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime.sln @@ -2,9 +2,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26730.12 MinimumVisualStudioVersion = 15.0.26124.0 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.CognitiveServices.LUIS", "LUIS-Runtime\Microsoft.Azure.CognitiveServices.LUIS.csproj", "{EDD669F1-B4F9-4014-BBAD-C3BFFE7C4041}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.CognitiveServices.LUIS", "Runtime\Microsoft.Azure.CognitiveServices.LUIS.csproj", "{EDD669F1-B4F9-4014-BBAD-C3BFFE7C4041}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.CognitiveServices.LUIS.Tests", "LUIS-Runtime.Tests\Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj", "{EDD989BB-7B18-49E8-8B93-81D0740DFE8A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.CognitiveServices.LUIS.Tests", "Runtime.Tests\Microsoft.Azure.CognitiveServices.LUIS.Tests.csproj", "{EDD989BB-7B18-49E8-8B93-81D0740DFE8A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Customizations/ApiKeyServiceClientCredentials.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Customizations/ApiKeyServiceClientCredentials.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Customizations/ApiKeyServiceClientCredentials.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Customizations/ApiKeyServiceClientCredentials.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/ILuisRuntimeAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/ILuisRuntimeAPI.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/ILuisRuntimeAPI.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/ILuisRuntimeAPI.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/IPrediction.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/IPrediction.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/IPrediction.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/IPrediction.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/LuisRuntimeAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/LuisRuntimeAPI.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/LuisRuntimeAPI.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/LuisRuntimeAPI.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/APIError.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/APIError.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/APIError.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/APIError.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/APIErrorException.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/APIErrorException.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/APIErrorException.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/APIErrorException.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/AzureRegions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/AzureRegions.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/AzureRegions.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/AzureRegions.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/CompositeChildModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/CompositeChildModel.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/CompositeChildModel.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/CompositeChildModel.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/CompositeEntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/CompositeEntityModel.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/CompositeEntityModel.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/CompositeEntityModel.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/EntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/EntityModel.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/EntityModel.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/EntityModel.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/EntityWithResolution.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/EntityWithResolution.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/EntityWithResolution.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/EntityWithResolution.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/EntityWithScore.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/EntityWithScore.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/EntityWithScore.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/EntityWithScore.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/IntentModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/IntentModel.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/IntentModel.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/IntentModel.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/LuisResult.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/LuisResult.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Models/LuisResult.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Models/LuisResult.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Prediction.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Prediction.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/Prediction.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/Prediction.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/PredictionExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/PredictionExtensions.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated/PredictionExtensions.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Generated/PredictionExtensions.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Microsoft.Azure.CognitiveServices.LUIS.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Microsoft.Azure.CognitiveServices.LUIS.csproj similarity index 69% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Microsoft.Azure.CognitiveServices.LUIS.csproj rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Microsoft.Azure.CognitiveServices.LUIS.csproj index 95992cc6dbbb..c24e879daa62 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/Microsoft.Azure.CognitiveServices.LUIS.csproj +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/Microsoft.Azure.CognitiveServices.LUIS.csproj @@ -1,11 +1,12 @@ + + + Microsoft.Azure.CognitiveServices.Language.LUIS Provides API functions for consuming the Microsoft Azure Cognitive Services LUIS Runtime API. - 2.0.0 - $(DefineConstants);CODESIGN - true + 2.0.0 Microsoft.Azure.CognitiveServices.Language.LUIS Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;LUIS;Language Understanding Intelligent Service;Language Understanding;REST HTTP client This is a preview release of the Cognitive Services LUIS Runtime SDK. Included with this release is support for LUIS Prediction API. @@ -14,4 +15,8 @@ net452;netstandard1.4 + + + + diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/generate.cmd b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/generate.cmd similarity index 58% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/generate.cmd rename to src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/generate.cmd index 16d3d2b1f33f..64c50221cac4 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/Language/generate.cmd +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Runtime/generate.cmd @@ -4,4 +4,4 @@ :: @echo off -call %~dp0..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/TextAnalytics %* \ No newline at end of file +call %~dp0..\..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/LUIS/Runtime %* \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/BaseTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/BaseTests.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/BaseTests.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/BaseTests.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/Microsoft.Azure.CognitiveServices.Language.Tests.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/Microsoft.Azure.CognitiveServices.Language.Tests.csproj similarity index 85% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/Microsoft.Azure.CognitiveServices.Language.Tests.csproj rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/Microsoft.Azure.CognitiveServices.Language.Tests.csproj index 5c6e3875d1bc..33ba5df4721f 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/Microsoft.Azure.CognitiveServices.Language.Tests.csproj +++ b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/Microsoft.Azure.CognitiveServices.Language.Tests.csproj @@ -3,27 +3,26 @@ Microsoft.Azure.CognitiveServices.Language.Tests Class Library Microsoft.Azure.CognitiveServices.Language.Tests - 1.0.0-preview + 1.0.0-preview + netcoreapp1.1 - Language.Tests + PreserveNewest + - - - diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.DetectLanguageTests/DetectLanguage.json b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.DetectLanguageTests/DetectLanguage.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.DetectLanguageTests/DetectLanguage.json rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.DetectLanguageTests/DetectLanguage.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.KeyPhrasesTests/KeyPhrases.json b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.KeyPhrasesTests/KeyPhrases.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.KeyPhrasesTests/KeyPhrases.json rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.KeyPhrasesTests/KeyPhrases.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.SentimentTests/Sentiment.json b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.SentimentTests/Sentiment.json similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.SentimentTests/Sentiment.json rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/SessionRecords/Language.TextAnalytics.Tests.SentimentTests/Sentiment.json diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/TextAnalytics/DetectLanguageTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/TextAnalytics/DetectLanguageTests.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/TextAnalytics/DetectLanguageTests.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/TextAnalytics/DetectLanguageTests.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/TextAnalytics/KeyPhrasesTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/TextAnalytics/KeyPhrasesTests.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/TextAnalytics/KeyPhrasesTests.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/TextAnalytics/KeyPhrasesTests.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/TextAnalytics/SentimentTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/TextAnalytics/SentimentTests.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.Tests/TextAnalytics/SentimentTests.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.Tests/TextAnalytics/SentimentTests.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language.sln b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.sln similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language.sln rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language.sln diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/ITextAnalyticsAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/ITextAnalyticsAPI.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/ITextAnalyticsAPI.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/ITextAnalyticsAPI.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/AzureRegions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/AzureRegions.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/AzureRegions.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/AzureRegions.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/BatchInput.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/BatchInput.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/BatchInput.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/BatchInput.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/DetectedLanguage.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/DetectedLanguage.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/DetectedLanguage.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/DetectedLanguage.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/ErrorRecord.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/ErrorRecord.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/ErrorRecord.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/ErrorRecord.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/ErrorResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/ErrorResponse.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/ErrorResponse.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/ErrorResponse.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/ErrorResponseException.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/ErrorResponseException.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/ErrorResponseException.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/ErrorResponseException.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/Input.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/Input.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/Input.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/Input.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/InternalError.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/InternalError.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/InternalError.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/InternalError.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResult.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResult.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResult.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResult.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResultItem.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResultItem.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResultItem.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/KeyPhraseBatchResultItem.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResult.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResult.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResult.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResult.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResultItem.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResultItem.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResultItem.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/LanguageBatchResultItem.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/MultiLanguageBatchInput.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/MultiLanguageBatchInput.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/MultiLanguageBatchInput.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/MultiLanguageBatchInput.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/MultiLanguageInput.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/MultiLanguageInput.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/MultiLanguageInput.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/MultiLanguageInput.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResult.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResult.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResult.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResult.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResultItem.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResultItem.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResultItem.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/Models/SentimentBatchResultItem.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/TextAnalyticsAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/TextAnalyticsAPI.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/TextAnalyticsAPI.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/TextAnalyticsAPI.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/TextAnalyticsAPIExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/TextAnalyticsAPIExtensions.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Generated/TextAnalytics/TextAnalyticsAPIExtensions.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Generated/TextAnalytics/TextAnalyticsAPIExtensions.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Microsoft.Azure.CognitiveServices.Language.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Microsoft.Azure.CognitiveServices.Language.csproj similarity index 70% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Microsoft.Azure.CognitiveServices.Language.csproj rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Microsoft.Azure.CognitiveServices.Language.csproj index 55014a8b47d7..52d44f0864cb 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Microsoft.Azure.CognitiveServices.Language.csproj +++ b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Microsoft.Azure.CognitiveServices.Language.csproj @@ -1,17 +1,21 @@  + + + Microsoft.Azure.CognitiveServices.Language This client library provides access to the Microsoft Cognitive Services Language APIs. 1.0.0-preview - $(DefineConstants);CODESIGN - true Microsoft.Azure.CognitiveServices.Language Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;Text Analytics API;Text Analytics;REST HTTP client;netcore451511 This is a preview release of the Cognitive Services Language SDK. Included with this release is support for Text Analytics API. - net452;netstandard1.4 + + + + \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Properties/AssemblyInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Properties/AssemblyInfo.cs similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Properties/AssemblyInfo.cs rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Properties/AssemblyInfo.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/Language/Readme.md b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Readme.md similarity index 100% rename from src/SDKs/CognitiveServices/dataPlane/Language/Language/Readme.md rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/Readme.md diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/generate.cmd b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/generate.cmd similarity index 58% rename from src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/generate.cmd rename to src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/generate.cmd index be63c91f71cc..ee0240cdbb0f 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS-Runtime/generate.cmd +++ b/src/SDKs/CognitiveServices/dataPlane/Language/Language/Language/generate.cmd @@ -4,4 +4,4 @@ :: @echo off -call %~dp0..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/LUIS/Runtime %* \ No newline at end of file +call %~dp0..\..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/TextAnalytics %* \ No newline at end of file diff --git a/src/SDKs/_metadata/cognitiveservices_data-plane_LUIS_Programmatic.txt b/src/SDKs/_metadata/cognitiveservices_data-plane_LUIS_Programmatic.txt new file mode 100644 index 000000000000..7fab1cc40a2c --- /dev/null +++ b/src/SDKs/_metadata/cognitiveservices_data-plane_LUIS_Programmatic.txt @@ -0,0 +1,11 @@ +2017-12-13 16:13:08 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: current +Commit: 27e1b95a1cca02e7b9a4f9c86b48ce5079442422 + +2) AutoRest information +Requested version: latest +Bootstrapper version: C:\Program Files\nodejs `-- autorest@2.0.4215 +Latest installed version: