LuisRecognizer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LuisRecognizer(LuisRecognizerOptions, HttpClientHandler) |
Initializes a new instance of the LuisRecognizer class. |
LuisRecognizer(LuisApplication, LuisPredictionOptions, Boolean, HttpClientHandler) |
Obsolete.
Initializes a new instance of the LuisRecognizer class. |
LuisRecognizer(LuisService, LuisPredictionOptions, Boolean, HttpClientHandler) |
Obsolete.
Initializes a new instance of the LuisRecognizer class. |
LuisRecognizer(String, LuisPredictionOptions, Boolean, HttpClientHandler) |
Obsolete.
Initializes a new instance of the LuisRecognizer class. |
LuisRecognizer(LuisApplication, IBotTelemetryClient, Boolean, LuisPredictionOptions, Boolean, HttpClientHandler) |
Obsolete.
Initializes a new instance of the LuisRecognizer class. |
LuisRecognizer(LuisRecognizerOptions, HttpClientHandler)
Initializes a new instance of the LuisRecognizer class.
public LuisRecognizer (Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Net.Http.HttpClientHandler clientHandler = default);
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (recognizerOptions As LuisRecognizerOptions, Optional clientHandler As HttpClientHandler = Nothing)
Parameters
- recognizerOptions
- LuisRecognizerOptions
The LUIS recognizer version options.
- clientHandler
- HttpClientHandler
(Optional) Custom handler for LUIS API calls to allow mocking.
Applies to
LuisRecognizer(LuisApplication, LuisPredictionOptions, Boolean, HttpClientHandler)
Caution
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
Initializes a new instance of the LuisRecognizer class.
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (Microsoft.Bot.Builder.AI.Luis.LuisApplication application, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Builder.AI.Luis.LuisApplication * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (application As LuisApplication, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
Parameters
- application
- LuisApplication
The LUIS application to use to recognize text.
- predictionOptions
- LuisPredictionOptions
(Optional) The LUIS prediction options to use.
- includeApiResults
- Boolean
(Optional) TRUE to include raw LUIS API response.
- clientHandler
- HttpClientHandler
(Optional) Custom handler for LUIS API calls to allow mocking.
- Attributes
Applies to
LuisRecognizer(LuisService, LuisPredictionOptions, Boolean, HttpClientHandler)
Caution
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
Initializes a new instance of the LuisRecognizer class.
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (Microsoft.Bot.Configuration.LuisService service, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Configuration.LuisService * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (service As LuisService, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
Parameters
- service
- LuisService
The LUIS service from configuration.
- predictionOptions
- LuisPredictionOptions
(Optional) The LUIS prediction options to use.
- includeApiResults
- Boolean
(Optional) TRUE to include raw LUIS API response.
- clientHandler
- HttpClientHandler
(Optional) Custom handler for LUIS API calls to allow mocking.
- Attributes
Applies to
LuisRecognizer(String, LuisPredictionOptions, Boolean, HttpClientHandler)
Caution
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
Initializes a new instance of the LuisRecognizer class.
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (string applicationEndpoint, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : string * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (applicationEndpoint As String, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
Parameters
- applicationEndpoint
- String
The LUIS endpoint as shown in https://luis.ai .
- predictionOptions
- LuisPredictionOptions
(Optional) The LUIS prediction options to use.
- includeApiResults
- Boolean
(Optional) TRUE to include raw LUIS API response.
- clientHandler
- HttpClientHandler
(Optional) Custom handler for LUIS API calls to allow mocking.
- Attributes
Applies to
LuisRecognizer(LuisApplication, IBotTelemetryClient, Boolean, LuisPredictionOptions, Boolean, HttpClientHandler)
Caution
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
Initializes a new instance of the LuisRecognizer class.
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (Microsoft.Bot.Builder.AI.Luis.LuisApplication application, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Builder.AI.Luis.LuisApplication * Microsoft.Bot.Builder.IBotTelemetryClient * bool * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (application As LuisApplication, telemetryClient As IBotTelemetryClient, logPersonalInformation As Boolean, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
Parameters
- application
- LuisApplication
The LUIS application to use to recognize text.
- telemetryClient
- IBotTelemetryClient
The IBotTelemetryClient used to log the LuisResult event.
- logPersonalInformation
- Boolean
TRUE to include personally indentifiable information.
- predictionOptions
- LuisPredictionOptions
(Optional) The LUIS prediction options to use.
- includeApiResults
- Boolean
(Optional) TRUE to include raw LUIS API response.
- clientHandler
- HttpClientHandler
(Optional) Custom handler for LUIS API calls to allow mocking.
- Attributes