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 (#2168)
Browse files Browse the repository at this point in the history
  • Loading branch information
xieofxie authored Aug 30, 2019
1 parent e50244d commit 4d391d6
Show file tree
Hide file tree
Showing 32 changed files with 10 additions and 10 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 @@ -41,7 +41,7 @@ public virtual void InitializeSkill()
LuisServices = new Dictionary<string, ITelemetryRecognizer>
{
{ "General", GeneralTestUtil.CreateRecognizer() },
{ "skill", SkillTestUtil.CreateRecognizer() }
{ "Skill", SkillTestUtil.CreateRecognizer() }
}
}
}
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(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 4d391d6

Please sign in to comment.