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

update template for naming and DialogState #2168

Merged
merged 1 commit into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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