-
Notifications
You must be signed in to change notification settings - Fork 479
/
LuisRecognizerOptions.cs
44 lines (40 loc) · 1.59 KB
/
LuisRecognizerOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
using System.Net.Http;
using Newtonsoft.Json;
namespace Microsoft.Bot.Builder.AI.Luis
{
/// <summary>
/// Optional parameters for a LUIS recognizer.
/// </summary>
public class LuisRecognizerOptions
{
/// <summary>
/// Gets or sets the time in milliseconds to wait before the request times out.
/// </summary>
/// <value>
/// The time in milliseconds to wait before the request times out. Default is 100000 milliseconds.
/// </value>
public uint Timeout { get; set; } = 100000;
/// <summary>
/// Gets or sets the IBotTelemetryClient used to log the LuisResult event.
/// </summary>
/// <value>
/// The client used to log telemetry events.
/// </value>
[JsonIgnore]
public IBotTelemetryClient TelemetryClient { get; set; } = new NullBotTelemetryClient();
/// <summary>
/// Gets or sets a value indicating whether to log personal information that came from the user to telemetry.
/// </summary>
/// <value>If true, personal information is logged to Telemetry; otherwise the properties will be filtered.</value>
public bool LogPersonalInformation { get; set; } = false;
/// <summary>
/// Gets or sets the handler for sending http calls.
/// </summary>
/// <value>
/// Handler for intercepting http calls for logging or testing.
/// </value>
public HttpClientHandler HttpClient { get; set; }
}
}