Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
update template for naming and DialogState
Browse files Browse the repository at this point in the history
  • Loading branch information
Hualiang Xie committed Aug 21, 2019
1 parent f3b4312 commit bd77da8
Show file tree
Hide file tree
Showing 31 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public CustomSkillAdapter(
Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true));
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
Use(new EventDebuggerMiddleware());
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(MusicSkill))));
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(DialogState))));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public CustomSkillAdapter(
Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true));
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
Use(new EventDebuggerMiddleware());
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(SkillSample))));
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(DialogState))));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public MainDialog(
await PopulateStateFromSemanticAction(dc.Context);

// Get skill LUIS model from configuration
localeConfig.LuisServices.TryGetValue("skill", out var luisService);
localeConfig.LuisServices.TryGetValue("Skill", out var luisService);

if (luisService == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected async Task GetLuisResult(DialogContext dc)
// Get luis service for current locale
var locale = CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;
var localeConfig = Services.CognitiveModelSets[locale];
var luisService = localeConfig.LuisServices["skill"];
var luisService = localeConfig.LuisServices["Skill"];

// Get intent and entities for activity
var result = await luisService.RecognizeAsync<SkillLuis>(dc.Context, CancellationToken.None);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"en": {
"languageModels": [
{
"id": "general",
"id": "General",
"name": "",
"appid": "",
"version": "0.1",
Expand All @@ -13,7 +13,7 @@
"subscriptionkey": ""
},
{
"id": "skill",
"id": "Skill",
"name": "",
"appid": "",
"version": "0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public CustomSkillAdapter(
Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true));
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
Use(new EventDebuggerMiddleware());
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof($safeprojectname$))));
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(DialogState))));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"en": {
"languageModels": [
{
"id": "general",
"id": "General",
"name": "",
"appid": "",
"version": "0.1",
Expand All @@ -13,7 +13,7 @@
"subscriptionkey": ""
},
{
"id": "skill",
"id": "Skill",
"name": "",
"appid": "",
"version": "0.1",
Expand Down

0 comments on commit bd77da8

Please sign in to comment.