@@ -82,7 +82,7 @@ async def continue_dialog(self, dialog_context: DialogContext) -> DialogTurnResu
82
82
Called when the dialog is continued, where it is the active dialog and the
83
83
user replies with a new activity.
84
84
85
- .. note ::
85
+ .. remarks ::
86
86
If the task is successful, the result indicates whether the dialog is still
87
87
active after the turn has been processed by the dialog. The result may also
88
88
contain a return value.
@@ -119,23 +119,13 @@ async def resume_dialog(
119
119
Called when a child dialog on the parent's dialog stack completed this turn, returning
120
120
control to this dialog component.
121
121
122
- .. note ::
122
+ .. remarks ::
123
123
Containers are typically leaf nodes on the stack but the dev is free to push other dialogs
124
124
on top of the stack which will result in the container receiving an unexpected call to
125
- :meth:resume_dialog() when the pushed on dialog ends.
125
+ :meth:`ComponentDialog. resume_dialog()` when the pushed on dialog ends.
126
126
To avoid the container prematurely ending we need to implement this method and simply
127
127
ask our inner dialog stack to re-prompt.
128
128
129
- If the task is successful, the result indicates whether this dialog is still
130
- active after this dialog turn has been processed.
131
-
132
- Generally, the child dialog was started with a call to :meth:`def async begin_dialog()`
133
- in the parent's context. However, if the :meth:`DialogContext.replace_dialog()` method is
134
- is called, the logical child dialog may be different than the original.
135
-
136
- If this method is *not* overridden, the dialog automatically calls its
137
- :meth:`asyn def reprompt_dialog()` when the user replies.
138
-
139
129
:param dialog_context: The :class:`DialogContext` for the current turn of the conversation.
140
130
:type dialog_context: :class:`DialogContext`
141
131
:param reason: Reason why the dialog resumed.
@@ -157,7 +147,7 @@ async def reprompt_dialog(
157
147
Called when the dialog should re-prompt the user for input.
158
148
159
149
:param context: The context object for this turn.
160
- :type context: :class:`TurnContext`
150
+ :type context: :class:`botbuilder.core. TurnContext`
161
151
:param instance: State information for this dialog.
162
152
:type instance: :class:`DialogInstance`
163
153
"""
@@ -176,7 +166,7 @@ async def end_dialog(
176
166
Called when the dialog is ending.
177
167
178
168
:param context: The context object for this turn.
179
- :type context: :class:`TurnContext`
169
+ :type context: :class:`botbuilder.core. TurnContext`
180
170
:param instance: State information associated with the instance of this component dialog
181
171
on its parent's dialog stack.
182
172
:type instance: :class:`DialogInstance`
@@ -193,7 +183,6 @@ async def end_dialog(
193
183
def add_dialog (self , dialog : Dialog ) -> object :
194
184
"""
195
185
Adds a :class:`Dialog` to the component dialog and returns the updated component.
196
- Adding a new dialog will inherit the :class:`BotTelemetryClient` of the :class:`ComponentDialog`.
197
186
198
187
:param dialog: The dialog to add.
199
188
:return: The updated :class:`ComponentDialog`
@@ -220,7 +209,7 @@ async def on_begin_dialog(
220
209
"""
221
210
Called when the dialog is started and pushed onto the parent's dialog stack.
222
211
223
- .. note ::
212
+ .. remarks ::
224
213
If the task is successful, the result indicates whether the dialog is still
225
214
active after the turn has been processed by the dialog.
226
215
@@ -237,6 +226,12 @@ async def on_begin_dialog(
237
226
return await inner_dc .begin_dialog (self .initial_dialog_id , options )
238
227
239
228
async def on_continue_dialog (self , inner_dc : DialogContext ) -> DialogTurnResult :
229
+ """
230
+ Called when the dialog is continued, where it is the active dialog and the user replies with a new activity.
231
+
232
+ :param inner_dc: The inner :class:`DialogContext` for the current turn of conversation.
233
+ :type inner_dc: :class:`DialogContext`
234
+ """
240
235
return await inner_dc .continue_dialog ()
241
236
242
237
async def on_end_dialog ( # pylint: disable=unused-argument
@@ -245,8 +240,8 @@ async def on_end_dialog( # pylint: disable=unused-argument
245
240
"""
246
241
Ends the component dialog in its parent's context.
247
242
248
- :param turn_context: The :class:`TurnContext` for the current turn of the conversation.
249
- :type turn_context: :class:`TurnContext`
243
+ :param turn_context: The :class:`botbuilder.core. TurnContext` for the current turn of the conversation.
244
+ :type turn_context: :class:`botbuilder.core. TurnContext`
250
245
:param instance: State information associated with the instance of this component dialog on
251
246
its parent's dialog stack.
252
247
:type instance: :class:`DialogInstance`
@@ -259,7 +254,7 @@ async def on_reprompt_dialog( # pylint: disable=unused-argument
259
254
self , turn_context : TurnContext , instance : DialogInstance
260
255
) -> None :
261
256
"""
262
- :param turn_context: The :class:`TurnContext` for the current turn of the conversation.
257
+ :param turn_context: The :class:`botbuilder.core. TurnContext` for the current turn of the conversation.
263
258
:type turn_context: :class:`DialogInstance`
264
259
:param instance: State information associated with the instance of this component dialog
265
260
on its parent's dialog stack.
@@ -273,7 +268,7 @@ async def end_component(
273
268
"""
274
269
Ends the component dialog in its parent's context.
275
270
276
- .. note ::
271
+ .. remarks ::
277
272
If the task is successful, the result indicates that the dialog ended after the
278
273
turn was processed by the dialog.
279
274
0 commit comments