שתף באמצעות


LuisRecognizerOptions Class

  • java.lang.Object
    • com.microsoft.bot.ai.luis.LuisRecognizerOptions

public abstract class LuisRecognizerOptions

Abstract class to enforce the Strategy pattern consumed by the Luis Recognizer through the options selected.

Constructor Summary

Modifier Constructor Description
protected LuisRecognizerOptions(LuisApplication application)

Initializes an instance of the LuisRecognizerOptions implementation.

Method Summary

Modifier and Type Method and Description
LuisApplication getApplication()

Gets the Luis Application instance.

BotTelemetryClient getTelemetryClient()

Gets the currently configured Bot Telemetry Client that logs the LuisResult event.

boolean isIncludeAPIResults()

Indicates if full results from the LUIS API should be returned with the recognizer result.

boolean isLogPersonalInformation()

Indicates if personal information should be sent as telemetry.

void setIncludeAPIResults(boolean includeAPIResults)

Indicates if full results from the LUIS API should be returned with the recognizer result.

void setLogPersonalInformation(boolean logPersonalInformation)

Indicates if personal information should be sent as telemetry.

void setTelemetryClient(BotTelemetryClient telemetryClient)

Sets the Bot Telemetry Client to log telemetry with.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

LuisRecognizerOptions

protected LuisRecognizerOptions(LuisApplication application)

Initializes an instance of the LuisRecognizerOptions implementation.

Parameters:

application - An instance of LuisApplication".

Method Details

getApplication

public LuisApplication getApplication()

Gets the Luis Application instance.

Returns:

The Luis Application instance used with this Options.

getTelemetryClient

public BotTelemetryClient getTelemetryClient()

Gets the currently configured Bot Telemetry Client that logs the LuisResult event.

Returns:

The Bot Telemetry Client.

isIncludeAPIResults

public boolean isIncludeAPIResults()

Indicates if full results from the LUIS API should be returned with the recognizer result.

Returns:

boolean value showing preference on LUIS API full response added to recognizer result.

isLogPersonalInformation

public boolean isLogPersonalInformation()

Indicates if personal information should be sent as telemetry.

Returns:

value boolean value to control personal information logging.

setIncludeAPIResults

public void setIncludeAPIResults(boolean includeAPIResults)

Indicates if full results from the LUIS API should be returned with the recognizer result.

Parameters:

includeAPIResults - to set full Luis API response to be added to the recognizer result.

setLogPersonalInformation

public void setLogPersonalInformation(boolean logPersonalInformation)

Indicates if personal information should be sent as telemetry.

Parameters:

logPersonalInformation - to set personal information logging preference.

setTelemetryClient

public void setTelemetryClient(BotTelemetryClient telemetryClient)

Sets the Bot Telemetry Client to log telemetry with.

Parameters:

telemetryClient - A Bot Telemetry Client instance

Applies to