diff --git a/libraries/botbuilder-ai/src/luisRecognizer.ts b/libraries/botbuilder-ai/src/luisRecognizer.ts index 94b0a0e5df..8d34e93d69 100644 --- a/libraries/botbuilder-ai/src/luisRecognizer.ts +++ b/libraries/botbuilder-ai/src/luisRecognizer.ts @@ -397,7 +397,7 @@ export class LuisRecognizer implements LuisRecognizerTelemetryClient { entities: {}, }); } else { - recognizerPromise = luisRecognizer.recognizeInternalAsync(context); + recognizerPromise = luisRecognizer.recognizeInternal(context); } return recognizerPromise diff --git a/libraries/botbuilder-ai/src/luisRecognizerOptions.ts b/libraries/botbuilder-ai/src/luisRecognizerOptions.ts index 7003903d81..953cc44f58 100644 --- a/libraries/botbuilder-ai/src/luisRecognizerOptions.ts +++ b/libraries/botbuilder-ai/src/luisRecognizerOptions.ts @@ -22,6 +22,6 @@ export abstract class LuisRecognizerInternal { application: LuisApplication; - abstract recognizeInternalAsync(context: TurnContext): Promise; + abstract recognizeInternal(context: TurnContext): Promise; } \ No newline at end of file diff --git a/libraries/botbuilder-ai/src/luisRecognizerOptionsV2.ts b/libraries/botbuilder-ai/src/luisRecognizerOptionsV2.ts index f5c04d9e8d..49d2c632aa 100644 --- a/libraries/botbuilder-ai/src/luisRecognizerOptionsV2.ts +++ b/libraries/botbuilder-ai/src/luisRecognizerOptionsV2.ts @@ -51,7 +51,7 @@ export class LuisRecognizerV2 extends LuisRecognizerInternal { private luisClient: LuisClient; - async recognizeInternalAsync(context: TurnContext): Promise { + async recognizeInternal(context: TurnContext): Promise { const luisPredictionOptions = this.options; const utterance: string = context.activity.text || ''; diff --git a/libraries/botbuilder-ai/src/luisRecognizerOptionsV3.ts b/libraries/botbuilder-ai/src/luisRecognizerOptionsV3.ts index 57ac2357f1..b5ea33f964 100644 --- a/libraries/botbuilder-ai/src/luisRecognizerOptionsV3.ts +++ b/libraries/botbuilder-ai/src/luisRecognizerOptionsV3.ts @@ -44,7 +44,7 @@ export class LuisRecognizerV3 extends LuisRecognizerInternal { public predictionOptions: LuisRecognizerOptionsV3; - async recognizeInternalAsync(context: TurnContext): Promise { + async recognizeInternal(context: TurnContext): Promise { const utterance: string = context.activity.text || ''; if (!utterance.trim()) { // Bypass LUIS if the activity's text is null or whitespace diff --git a/libraries/botbuilder-ai/src/qnaMaker.ts b/libraries/botbuilder-ai/src/qnaMaker.ts index a21996f1b3..294dd3ab9e 100644 --- a/libraries/botbuilder-ai/src/qnaMaker.ts +++ b/libraries/botbuilder-ai/src/qnaMaker.ts @@ -255,7 +255,7 @@ export class QnAMaker implements QnAMakerTelemetryClient { * @param feedbackRecords Feedback records. */ public async callTrainAsync(feedbackRecords: FeedbackRecords) { - return await this.trainUtils.callTrainAsync(feedbackRecords); + return await this.trainUtils.callTrain(feedbackRecords); } /** diff --git a/libraries/botbuilder-ai/src/qnamaker-utils/trainUtils.ts b/libraries/botbuilder-ai/src/qnamaker-utils/trainUtils.ts index 9ce1eb7b36..04fca758a4 100644 --- a/libraries/botbuilder-ai/src/qnamaker-utils/trainUtils.ts +++ b/libraries/botbuilder-ai/src/qnamaker-utils/trainUtils.ts @@ -31,7 +31,7 @@ export class TrainUtils { * Train API to provide feedback. * @param feedbackRecords Feedback record list. */ - public async callTrainAsync(feedbackRecords: FeedbackRecords) { + public async callTrain(feedbackRecords: FeedbackRecords) { if (!feedbackRecords) { throw new TypeError('Feedback records can not be null.'); } @@ -41,10 +41,10 @@ export class TrainUtils { return; } - await this.queryTrainAsync(feedbackRecords); + await this.queryTrain(feedbackRecords); } - private async queryTrainAsync(feedbackRecords: FeedbackRecords) { + private async queryTrain(feedbackRecords: FeedbackRecords) { const url: string = `${ this.endpoint.host }/knowledgebases/${ this.endpoint.knowledgeBaseId }/train`; var payloadBody = JSON.stringify({ feedbackRecords: feedbackRecords diff --git a/libraries/teams-scenarios/taskModule/src/taskModuleBot.ts b/libraries/teams-scenarios/taskModule/src/taskModuleBot.ts index a7c44e8c9a..e1bf79f25c 100644 --- a/libraries/teams-scenarios/taskModule/src/taskModuleBot.ts +++ b/libraries/teams-scenarios/taskModule/src/taskModuleBot.ts @@ -47,7 +47,7 @@ export class TaskModuleBot extends TeamsActivityHandler { } protected async handleTeamsTaskModuleSubmit(context: TurnContext, taskModuleRequest: TaskModuleRequest): Promise { - var reply = MessageFactory.text("handleTeamsTaskModuleFetchAsync Value: " + JSON.stringify(taskModuleRequest)); + var reply = MessageFactory.text("handleTeamsTaskModuleSubmit Value: " + JSON.stringify(taskModuleRequest)); await context.sendActivity(reply); return {