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

Commit

Permalink
update skill template
Browse files Browse the repository at this point in the history
  • Loading branch information
Hualiang Xie committed Aug 8, 2019
1 parent 45a870b commit ff99d25
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public SampleDialog(
private async Task<DialogTurnResult> PromptForName(WaterfallStepContext stepContext, CancellationToken cancellationToken)
{
// NOTE: Uncomment the following lines to access LUIS result for this turn.
// var state = await ConversationStateAccessor.GetAsync(stepContext.Context);
// var state = await StateAccessor.GetAsync(stepContext.Context);
// var intent = state.LuisResult.TopIntent().intent;
// var entities = state.LuisResult.Entities;
var prompt = ResponseManager.GetResponse(SampleResponses.NamePrompt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public SkillDialogBase(
IBotTelemetryClient telemetryClient)
: base(dialogId)
{
Settings = settings;
Services = services;
ResponseManager = responseManager;
StateAccessor = conversationState.CreateProperty<SkillState>(nameof(SkillState));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"replies": [
{
"text": "This feature is not yet available in this skill. Please try asking something else.",
"speak": "This feature is not yet available in thiskill. Please try asking something else."
"speak": "This feature is not yet available in this skill. Please try asking something else."
}
],
"inputHint": "acceptingInput"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <auto-generated>
// Code generated by LUISGen C:\Users\lamil\source\repos\AI\templates\Skill-Template\csharp\Sample\SkillSample\Deployment\Resources\LU\en\general.luis -cs Luis.GeneralLuis -o C:\Users\lamil\source\repos\AI\templates\Skill-Template\csharp\Sample\SkillSample\Services
// Code generated by LUISGen
// Tool github: https://github.com/microsoft/botbuilder-tools
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <auto-generated>
// Code generated by LUISGen C:\Users\lamil\source\repos\AI\templates\Skill-Template\csharp\Sample\SkillSample\Deployment\Resources\LU\en\skill.luis -cs Luis.SkillLuis -o C:\Users\lamil\source\repos\AI\templates\Skill-Template\csharp\Sample\SkillSample\Services
// Code generated by LUISGen
// Tool github: https://github.com/microsoft/botbuilder-tools
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public SampleDialog(
private async Task<DialogTurnResult> PromptForName(WaterfallStepContext stepContext, CancellationToken cancellationToken)
{
// NOTE: Uncomment the following lines to access LUIS result for this turn.
// var state = await ConversationStateAccessor.GetAsync(stepContext.Context);
// var state = await StateAccessor.GetAsync(stepContext.Context);
// var intent = state.LuisResult.TopIntent().intent;
// var entities = state.LuisResult.Entities;
var prompt = ResponseManager.GetResponse(SampleResponses.NamePrompt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public SkillDialogBase(
IBotTelemetryClient telemetryClient)
: base(dialogId)
{
Settings = settings;
Services = services;
ResponseManager = responseManager;
StateAccessor = conversationState.CreateProperty<SkillState>(nameof(SkillState));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"replies": [
{
"text": "This feature is not yet available in this skill. Please try asking something else.",
"speak": "This feature is not yet available in thiskill. Please try asking something else."
"speak": "This feature is not yet available in this skill. Please try asking something else."
}
],
"inputHint": "acceptingInput"
Expand Down

0 comments on commit ff99d25

Please sign in to comment.