@@ -9,21 +9,21 @@ class LuisPredictionOptions(object):
9
9
Optional parameters for a LUIS prediction request.
10
10
"""
11
11
12
- def __init__ (self ):
12
+ def __init__ (self , timeout : float = 100000 ):
13
13
self ._bing_spell_check_subscription_key : str = None
14
14
self ._include_all_intents : bool = None
15
15
self ._include_instance_data : bool = None
16
16
self ._log : bool = None
17
17
self ._spell_check : bool = None
18
18
self ._staging : bool = None
19
- self ._timeout : float = 100000
19
+ self ._timeout : float = timeout
20
20
self ._timezone_offset : float = None
21
21
self ._telemetry_client : BotTelemetryClient = NullTelemetryClient ()
22
22
self ._log_personal_information : bool = False
23
23
24
24
@property
25
25
def bing_spell_check_subscription_key (self ) -> str :
26
- """Gets or sets the Bing Spell Check subscription key.
26
+ """Gets the Bing Spell Check subscription key.
27
27
28
28
:return: The Bing Spell Check subscription key.
29
29
:rtype: str
@@ -33,7 +33,7 @@ def bing_spell_check_subscription_key(self) -> str:
33
33
34
34
@bing_spell_check_subscription_key .setter
35
35
def bing_spell_check_subscription_key (self , value : str ) -> None :
36
- """Gets or sets the Bing Spell Check subscription key.
36
+ """Sets the Bing Spell Check subscription key.
37
37
38
38
:param value: The Bing Spell Check subscription key.
39
39
:type value: str
@@ -45,7 +45,7 @@ def bing_spell_check_subscription_key(self, value: str) -> None:
45
45
46
46
@property
47
47
def include_all_intents (self ) -> bool :
48
- """Gets or sets whether all intents come back or only the top one.
48
+ """Gets whether all intents come back or only the top one.
49
49
50
50
:return: True for returning all intents.
51
51
:rtype: bool
@@ -55,7 +55,7 @@ def include_all_intents(self) -> bool:
55
55
56
56
@include_all_intents .setter
57
57
def include_all_intents (self , value : bool ) -> None :
58
- """Gets or sets whether all intents come back or only the top one.
58
+ """Sets whether all intents come back or only the top one.
59
59
60
60
:param value: True for returning all intents.
61
61
:type value: bool
@@ -67,7 +67,7 @@ def include_all_intents(self, value: bool) -> None:
67
67
68
68
@property
69
69
def include_instance_data (self ) -> bool :
70
- """Gets or sets a value indicating whether or not instance data should be included in response.
70
+ """Gets a value indicating whether or not instance data should be included in response.
71
71
72
72
:return: A value indicating whether or not instance data should be included in response.
73
73
:rtype: bool
@@ -77,7 +77,7 @@ def include_instance_data(self) -> bool:
77
77
78
78
@include_instance_data .setter
79
79
def include_instance_data (self , value : bool ) -> None :
80
- """Gets or sets a value indicating whether or not instance data should be included in response.
80
+ """Sets a value indicating whether or not instance data should be included in response.
81
81
82
82
:param value: A value indicating whether or not instance data should be included in response.
83
83
:type value: bool
@@ -89,7 +89,7 @@ def include_instance_data(self, value: bool) -> None:
89
89
90
90
@property
91
91
def log (self ) -> bool :
92
- """Gets or sets if queries should be logged in LUIS.
92
+ """Gets if queries should be logged in LUIS.
93
93
94
94
:return: If queries should be logged in LUIS.
95
95
:rtype: bool
@@ -99,7 +99,7 @@ def log(self) -> bool:
99
99
100
100
@log .setter
101
101
def log (self , value : bool ) -> None :
102
- """Gets or sets if queries should be logged in LUIS.
102
+ """Sets if queries should be logged in LUIS.
103
103
104
104
:param value: If queries should be logged in LUIS.
105
105
:type value: bool
@@ -111,7 +111,7 @@ def log(self, value: bool) -> None:
111
111
112
112
@property
113
113
def spell_check (self ) -> bool :
114
- """Gets or sets whether to spell check queries.
114
+ """Gets whether to spell check queries.
115
115
116
116
:return: Whether to spell check queries.
117
117
:rtype: bool
@@ -121,7 +121,7 @@ def spell_check(self) -> bool:
121
121
122
122
@spell_check .setter
123
123
def spell_check (self , value : bool ) -> None :
124
- """Gets or sets whether to spell check queries.
124
+ """Sets whether to spell check queries.
125
125
126
126
:param value: Whether to spell check queries.
127
127
:type value: bool
@@ -133,7 +133,7 @@ def spell_check(self, value: bool) -> None:
133
133
134
134
@property
135
135
def staging (self ) -> bool :
136
- """Gets or sets whether to use the staging endpoint.
136
+ """Gets whether to use the staging endpoint.
137
137
138
138
:return: Whether to use the staging endpoint.
139
139
:rtype: bool
@@ -143,7 +143,7 @@ def staging(self) -> bool:
143
143
144
144
@staging .setter
145
145
def staging (self , value : bool ) -> None :
146
- """Gets or sets whether to use the staging endpoint.
146
+ """Sets whether to use the staging endpoint.
147
147
148
148
149
149
:param value: Whether to use the staging endpoint.
@@ -156,7 +156,7 @@ def staging(self, value: bool) -> None:
156
156
157
157
@property
158
158
def timeout (self ) -> float :
159
- """Gets or sets the time in milliseconds to wait before the request times out.
159
+ """Gets the time in milliseconds to wait before the request times out.
160
160
161
161
:return: The time in milliseconds to wait before the request times out. Default is 100000 milliseconds.
162
162
:rtype: float
@@ -166,7 +166,7 @@ def timeout(self) -> float:
166
166
167
167
@timeout .setter
168
168
def timeout (self , value : float ) -> None :
169
- """Gets or sets the time in milliseconds to wait before the request times out.
169
+ """Sets the time in milliseconds to wait before the request times out.
170
170
171
171
:param value: The time in milliseconds to wait before the request times out. Default is 100000 milliseconds.
172
172
:type value: float
@@ -178,7 +178,7 @@ def timeout(self, value: float) -> None:
178
178
179
179
@property
180
180
def timezone_offset (self ) -> float :
181
- """Gets or sets the time zone offset.
181
+ """Gets the time zone offset.
182
182
183
183
:return: The time zone offset.
184
184
:rtype: float
@@ -188,7 +188,7 @@ def timezone_offset(self) -> float:
188
188
189
189
@timezone_offset .setter
190
190
def timezone_offset (self , value : float ) -> None :
191
- """Gets or sets the time zone offset.
191
+ """Sets the time zone offset.
192
192
193
193
:param value: The time zone offset.
194
194
:type value: float
@@ -200,7 +200,7 @@ def timezone_offset(self, value: float) -> None:
200
200
201
201
@property
202
202
def telemetry_client (self ) -> BotTelemetryClient :
203
- """Gets or sets the IBotTelemetryClient used to log the LuisResult event.
203
+ """Gets the BotTelemetryClient used to log the LuisResult event.
204
204
205
205
:return: The client used to log telemetry events.
206
206
:rtype: BotTelemetryClient
@@ -210,7 +210,7 @@ def telemetry_client(self) -> BotTelemetryClient:
210
210
211
211
@telemetry_client .setter
212
212
def telemetry_client (self , value : BotTelemetryClient ) -> None :
213
- """Gets or sets the IBotTelemetryClient used to log the LuisResult event.
213
+ """Sets the BotTelemetryClient used to log the LuisResult event.
214
214
215
215
:param value: The client used to log telemetry events.
216
216
:type value: BotTelemetryClient
@@ -222,7 +222,7 @@ def telemetry_client(self, value: BotTelemetryClient) -> None:
222
222
223
223
@property
224
224
def log_personal_information (self ) -> bool :
225
- """Gets or sets a value indicating whether to log personal information that came from the user to telemetry.
225
+ """Gets a value indicating whether to log personal information that came from the user to telemetry.
226
226
227
227
:return: If true, personal information is logged to Telemetry; otherwise the properties will be filtered.
228
228
:rtype: bool
@@ -232,7 +232,7 @@ def log_personal_information(self) -> bool:
232
232
233
233
@log_personal_information .setter
234
234
def log_personal_information (self , value : bool ) -> None :
235
- """Gets or sets a value indicating whether to log personal information that came from the user to telemetry.
235
+ """Sets a value indicating whether to log personal information that came from the user to telemetry.
236
236
237
237
:param value: If true, personal information is logged to Telemetry; otherwise the properties will be filtered.
238
238
:type value: bool
0 commit comments