-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update yarn lock without ms-rest-js * remove ms-rest-js in botbuilder-ai * update lint formats * add @azure/core-util to resolutions * change models class name * remove core-util of resolutions
- Loading branch information
1 parent
20ac13a
commit f3db3e9
Showing
15 changed files
with
410 additions
and
124 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.