Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LuisRecognizer refactor and addition of V3 endpoint #1479

Merged
merged 9 commits into from
Dec 9, 2019
516 changes: 165 additions & 351 deletions libraries/botbuilder-ai/src/luisRecognizer.ts

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions libraries/botbuilder-ai/src/luisRecognizerOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* @module botbuilder-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

import {LuisApplication, LuisRecognizerOptions} from './luisRecognizer'
import { RecognizerResult, TurnContext } from 'botbuilder-core';

export abstract class LuisRecognizerInternal {

constructor(application: LuisApplication, options?: LuisRecognizerOptions)
{
if (!application) {
throw new Error('Null Application\n');
}
this.application = application;
this.application.endpoint = this.application.endpoint ? this.application.endpoint : 'https://westus.api.cognitive.microsoft.com';
}

application: LuisApplication;

abstract recognizeInternalAsync(context: TurnContext): Promise<RecognizerResult>;

}
Loading