PredictionOperations class

Class representing a PredictionOperations.

Constructors

PredictionOperations(LUISRuntimeClientContext)

Create a PredictionOperations.

Methods

getSlotPrediction(string, string, PredictionRequest, Models.PredictionGetSlotPredictionOptionalParams)

Gets the predictions for an application slot.

getSlotPrediction(string, string, PredictionRequest, PredictionGetSlotPredictionOptionalParams, ServiceCallback<PredictionResponse>)
getSlotPrediction(string, string, PredictionRequest, ServiceCallback<PredictionResponse>)
getVersionPrediction(string, string, PredictionRequest, Models.PredictionGetVersionPredictionOptionalParams)

Gets the predictions for an application version.

getVersionPrediction(string, string, PredictionRequest, PredictionGetVersionPredictionOptionalParams, ServiceCallback<PredictionResponse>)
getVersionPrediction(string, string, PredictionRequest, ServiceCallback<PredictionResponse>)

Constructor Details

PredictionOperations(LUISRuntimeClientContext)

Create a PredictionOperations.

new PredictionOperations(client: LUISRuntimeClientContext)

Parameters

client
LUISRuntimeClientContext

Reference to the service client.

Method Details

getSlotPrediction(string, string, PredictionRequest, Models.PredictionGetSlotPredictionOptionalParams)

Gets the predictions for an application slot.

function getSlotPrediction(appId: string, slotName: string, predictionRequest: PredictionRequest, options?: Models.PredictionGetSlotPredictionOptionalParams): Promise<Models.PredictionGetSlotPredictionResponse>

Parameters

appId

string

The application ID.

slotName

string

The application slot name.

predictionRequest
PredictionRequest

The prediction request parameters.

options
Models.PredictionGetSlotPredictionOptionalParams

Returns

Promise<Models.PredictionGetSlotPredictionResponse>

Promise<Models.PredictionGetSlotPredictionResponse>

getSlotPrediction(string, string, PredictionRequest, PredictionGetSlotPredictionOptionalParams, ServiceCallback<PredictionResponse>)

function getSlotPrediction(appId: string, slotName: string, predictionRequest: PredictionRequest, options: PredictionGetSlotPredictionOptionalParams, callback: ServiceCallback<PredictionResponse>)

Parameters

appId

string

The application ID.

slotName

string

The application slot name.

predictionRequest
PredictionRequest

The prediction request parameters.

options
PredictionGetSlotPredictionOptionalParams

The optional parameters

callback

ServiceCallback<PredictionResponse>

The callback

getSlotPrediction(string, string, PredictionRequest, ServiceCallback<PredictionResponse>)

function getSlotPrediction(appId: string, slotName: string, predictionRequest: PredictionRequest, callback: ServiceCallback<PredictionResponse>)

Parameters

appId

string

The application ID.

slotName

string

The application slot name.

predictionRequest
PredictionRequest

The prediction request parameters.

callback

ServiceCallback<PredictionResponse>

The callback

getVersionPrediction(string, string, PredictionRequest, Models.PredictionGetVersionPredictionOptionalParams)

Gets the predictions for an application version.

function getVersionPrediction(appId: string, versionId: string, predictionRequest: PredictionRequest, options?: Models.PredictionGetVersionPredictionOptionalParams): Promise<Models.PredictionGetVersionPredictionResponse>

Parameters

appId

string

The application ID.

versionId

string

The application version ID.

predictionRequest
PredictionRequest

The prediction request parameters.

options
Models.PredictionGetVersionPredictionOptionalParams

Returns

Promise<Models.PredictionGetVersionPredictionResponse>

Promise<Models.PredictionGetVersionPredictionResponse>

getVersionPrediction(string, string, PredictionRequest, PredictionGetVersionPredictionOptionalParams, ServiceCallback<PredictionResponse>)

function getVersionPrediction(appId: string, versionId: string, predictionRequest: PredictionRequest, options: PredictionGetVersionPredictionOptionalParams, callback: ServiceCallback<PredictionResponse>)

Parameters

appId

string

The application ID.

versionId

string

The application version ID.

predictionRequest
PredictionRequest

The prediction request parameters.

options
PredictionGetVersionPredictionOptionalParams

The optional parameters

callback

ServiceCallback<PredictionResponse>

The callback

getVersionPrediction(string, string, PredictionRequest, ServiceCallback<PredictionResponse>)

function getVersionPrediction(appId: string, versionId: string, predictionRequest: PredictionRequest, callback: ServiceCallback<PredictionResponse>)

Parameters

appId

string

The application ID.

versionId

string

The application version ID.

predictionRequest
PredictionRequest

The prediction request parameters.

callback

ServiceCallback<PredictionResponse>

The callback