forked from microsoft/botbuilder-js
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into southworks/fix/proxy-issue-authentication
- Loading branch information
Showing
65 changed files
with
1,676 additions
and
1,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
|
||
import { ServiceClient, ServiceClientCredentials, ServiceClientOptions } from '@azure/core-http'; | ||
|
||
/** | ||
* Client for LUIS context | ||
*/ | ||
export class LUISRuntimeClientContext extends ServiceClient { | ||
endpoint: string; | ||
credentials: ServiceClientCredentials; | ||
|
||
/** | ||
* Initializes a new instance of the LUISRuntimeClientContext class. | ||
* | ||
* @param credentials Subscription credentials which uniquely identify client subscription. | ||
* @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example: | ||
* https://westus.api.cognitive.microsoft.com). | ||
* @param [options] The parameter options | ||
*/ | ||
constructor(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions) { | ||
if (endpoint == undefined) { | ||
throw new Error("'endpoint' cannot be null."); | ||
} | ||
if (credentials == undefined) { | ||
throw new Error("'credentials' cannot be null."); | ||
} | ||
|
||
if (!options) { | ||
options = {}; | ||
} | ||
|
||
super(credentials, options); | ||
|
||
this.baseUri = '{Endpoint}/luis/v3.0-preview'; | ||
this.requestContentType = 'application/json; charset=utf-8'; | ||
this.endpoint = endpoint; | ||
this.credentials = credentials; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.