Predictions Interface

public interface Predictions

An instance of this class provides access to all the operations defined in Predictions.

Method Summary

Modifier and Type Method and Description
PredictionsResolveDefinitionStages.WithAppId resolve()

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

LuisResult resolve(String appId, String query, ResolveOptionalParameter resolveOptionalParameter)

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

Observable<LuisResult> resolveAsync(String appId, String query, ResolveOptionalParameter resolveOptionalParameter)

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

Method Details

resolve

public PredictionsResolveDefinitionStages.WithAppId resolve()

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

Returns:

the first stage of the resolve call

resolve

public LuisResult resolve(String appId, String query, ResolveOptionalParameter resolveOptionalParameter)

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

Parameters:

appId - The LUIS application ID (Guid).
query - The utterance to predict.
resolveOptionalParameter - the object representing the optional parameters to be set before calling this API

Returns:

the LuisResult object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
APIErrorException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

resolveAsync

public Observable resolveAsync(String appId, String query, ResolveOptionalParameter resolveOptionalParameter)

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

Parameters:

appId - The LUIS application ID (Guid).
query - The utterance to predict.
resolveOptionalParameter - the object representing the optional parameters to be set before calling this API

Returns:

the observable to the LuisResult object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to