File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
libraries/botbuilder-dialogs/botbuilder/dialogs/prompts Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 88
99
1010class PromptOptions :
11+ """
12+ Contains settings to pass to a :class:`Prompt` object when the prompt is started.
13+ """
14+
1115 def __init__ (
1216 self ,
1317 prompt : Activity = None ,
@@ -17,6 +21,23 @@ def __init__(
1721 validations : object = None ,
1822 number_of_attempts : int = 0 ,
1923 ):
24+ """
25+ Sets the initial prompt to send to the user as an :class:`botbuilder.schema.Activity`.
26+
27+ :param prompt: The initial prompt to send to the user
28+ :type prompt: :class:`botbuilder.schema.Activity`
29+ :param retry_prompt: The retry prompt to send to the user
30+ :type retry_prompt: :class:`botbuilder.schema.Activity`
31+ :param choices: The choices to send to the user
32+ :type choices: :class:`List`
33+ :param style: The style of the list of choices to send to the user
34+ :type style: :class:`ListStyle`
35+ :param validations: The prompt validations
36+ :type validations: :class:`Object`
37+ :param number_of_attempts: The number of attempts allowed
38+ :type number_of_attempts: :class:`int`
39+
40+ """
2041 self .prompt = prompt
2142 self .retry_prompt = retry_prompt
2243 self .choices = choices
You can’t perform that action at this time.
0 commit comments