@@ -88,14 +88,14 @@ async def continue_dialog(self, dialog_context: DialogContext) -> DialogTurnResu
88
88
contain a return value.
89
89
90
90
If this method is *not* overriden the component dialog calls the
91
- :meth:`DialogContext.continue_dialog` method on it's inner dialog
91
+ :meth:`botbuilder.dialogs. DialogContext.continue_dialog` method on it's inner dialog
92
92
context. If the inner dialog stack is empty, the component dialog ends,
93
- and if a :class:` DialogTurnResult.result` is available, the component dialog
93
+ and if a :var:`botbuilder.dialogs. DialogTurnResult.result` is available, the component dialog
94
94
uses that as it's return value.
95
95
96
96
97
- :param dialog_context: The parent :class:`DialogContext` for the current turn of the conversation.
98
- :type dialog_context: :class:`DialogContext`
97
+ :param dialog_context: The parent :class:`botbuilder.dialogs. DialogContext` for the current turn of the conversation.
98
+ :type dialog_context: :class:`botbuilder.dialogs. DialogContext`
99
99
:return: Signals the end of the turn
100
100
:rtype: :var:`Dialog.end_of_turn`
101
101
"""
@@ -126,8 +126,8 @@ async def resume_dialog(
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
- :param dialog_context: The :class:`DialogContext` for the current turn of the conversation.
130
- :type dialog_context: :class:`DialogContext`
129
+ :param dialog_context: The :class:`botbuilder.dialogs. DialogContext` for the current turn of the conversation.
130
+ :type dialog_context: :class:`botbuilder.dialogs. DialogContext`
131
131
:param reason: Reason why the dialog resumed.
132
132
:type reason: :class:`DialogReason`
133
133
:param result: Optional, value returned from the dialog that was called.
@@ -148,7 +148,7 @@ async def reprompt_dialog(
148
148
:param context: The context object for this turn.
149
149
:type context: :class:`botbuilder.core.TurnContext`
150
150
:param instance: State information for this dialog.
151
- :type instance: :class:`DialogInstance`
151
+ :type instance: :class:`botbuilder.dialogs. DialogInstance`
152
152
"""
153
153
# Delegate to inner dialog.
154
154
dialog_state = instance .state [self .persisted_dialog_state ]
@@ -167,9 +167,9 @@ async def end_dialog(
167
167
:param context: The context object for this turn.
168
168
:type context: :class:`botbuilder.core.TurnContext`
169
169
:param instance: State information associated with the instance of this component dialog.
170
- :type instance: :class:`DialogInstance`
170
+ :type instance: :class:`botbuilder.dialogs. DialogInstance`
171
171
:param reason: Reason why the dialog ended.
172
- :type reason: :class:`DialogReason`
172
+ :type reason: :class:`botbuilder.dialogs. DialogReason`
173
173
"""
174
174
# Forward cancel to inner dialog
175
175
if reason == DialogReason .CancelCalled :
@@ -183,7 +183,7 @@ def add_dialog(self, dialog: Dialog) -> object:
183
183
Adds a :class:`Dialog` to the component dialog and returns the updated component.
184
184
185
185
:param dialog: The dialog to add.
186
- :type dialog: :class:`Dialog`
186
+ :type dialog: :class:`botbuilder.dialogs. Dialog`
187
187
:return self: The updated :class:`ComponentDialog`
188
188
:rtype self: :class:`ComponentDialog`
189
189
"""
@@ -198,7 +198,7 @@ def find_dialog(self, dialog_id: str) -> Dialog:
198
198
199
199
:param dialog_id: The dialog to add.
200
200
:type dialog_id: str
201
- :return: The :class:`Dialog`; or None if there is not a match for the ID.
201
+ :return: The :class:`botbuilder.dialogs. Dialog`; or None if there is not a match for the ID.
202
202
"""
203
203
return self ._dialogs .find (dialog_id )
204
204
@@ -212,13 +212,13 @@ async def on_begin_dialog(
212
212
If the task is successful, the result indicates whether the dialog is still
213
213
active after the turn has been processed by the dialog.
214
214
215
- By default, this calls the :meth:`Dialog.begin_dialog()` method of the component
215
+ By default, this calls the :meth:`botbuilder.dialogs. Dialog.begin_dialog()` method of the component
216
216
dialog's initial dialog.
217
217
218
218
Override this method in a derived class to implement interrupt logic.
219
219
220
- :param inner_dc: The inner :class:`DialogContext` for the current turn of conversation.
221
- :type inner_dc: :class:`DialogContext`
220
+ :param inner_dc: The inner :class:`botbuilder.dialogs. DialogContext` for the current turn of conversation.
221
+ :type inner_dc: :class:`botbuilder.dialogs. DialogContext`
222
222
:param options: Optional, initial information to pass to the dialog.
223
223
:type options: object
224
224
"""
@@ -228,8 +228,8 @@ async def on_continue_dialog(self, inner_dc: DialogContext) -> DialogTurnResult:
228
228
"""
229
229
Called when the dialog is continued, where it is the active dialog and the user replies with a new activity.
230
230
231
- :param inner_dc: The inner :class:`DialogContext` for the current turn of conversation.
232
- :type inner_dc: :class:`DialogContext`
231
+ :param inner_dc: The inner :class:`botbuilder.dialogs. DialogContext` for the current turn of conversation.
232
+ :type inner_dc: :class:`botbuilder.dialogs. DialogContext`
233
233
"""
234
234
return await inner_dc .continue_dialog ()
235
235
@@ -242,9 +242,9 @@ async def on_end_dialog( # pylint: disable=unused-argument
242
242
:param turn_context: The :class:`botbuilder.core.TurnContext` for the current turn of the conversation.
243
243
:type turn_context: :class:`botbuilder.core.TurnContext`
244
244
:param instance: State information associated with the instance of this component dialog.
245
- :type instance: :class:`DialogInstance`
245
+ :type instance: :class:`botbuilder.dialogs. DialogInstance`
246
246
:param reason: Reason why the dialog ended.
247
- :type reason: :class:`DialogReason`
247
+ :type reason: :class:`botbuilder.dialogs. DialogReason`
248
248
"""
249
249
return
250
250
@@ -253,9 +253,9 @@ async def on_reprompt_dialog( # pylint: disable=unused-argument
253
253
) -> None :
254
254
"""
255
255
:param turn_context: The :class:`botbuilder.core.TurnContext` for the current turn of the conversation.
256
- :type turn_context: :class:`DialogInstance`
256
+ :type turn_context: :class:`botbuilder.dialogs. DialogInstance`
257
257
:param instance: State information associated with the instance of this component dialog.
258
- :type instance: :class:`DialogInstance`
258
+ :type instance: :class:`botbuilder.dialogs. DialogInstance`
259
259
"""
260
260
return
261
261
@@ -270,19 +270,19 @@ async def end_component(
270
270
turn was processed by the dialog.
271
271
272
272
In general, the parent context is the dialog or bot turn handler that started the dialog.
273
- If the parent is a dialog, the stack calls the parent's :meth:`Dialog.resume_dialog()` method
273
+ If the parent is a dialog, the stack calls the parent's :meth:`botbuilder.dialogs. Dialog.resume_dialog()` method
274
274
to return a result to the parent dialog. If the parent dialog does not implement
275
- :meth:`Dialog.resume_dialog()`, then the parent will end, too, and the result is passed to the next
275
+ :meth:`botbuilder.dialogs. Dialog.resume_dialog()`, then the parent will end, too, and the result is passed to the next
276
276
parent context, if one exists.
277
277
278
- The returned :class:`DialogTurnResult`contains the return value in its
279
- :class:` DialogTurnResult.result` property.
278
+ The returned :class:`botbuilder.dialogs. DialogTurnResult`contains the return value in its
279
+ :var:`botbuilder.dialogs. DialogTurnResult.result` property.
280
280
281
- :param outer_dc: The parent :class:`DialogContext` for the current turn of conversation.
282
- :type outer_dc: :class:`DialogContext`
281
+ :param outer_dc: The parent :class:`botbuilder.dialogs. DialogContext` for the current turn of conversation.
282
+ :type outer_dc: :class:`botbuilder.dialogs. DialogContext`
283
283
:param result: Optional, value to return from the dialog component to the parent context.
284
284
:type result: object
285
285
:return : Value to return.
286
- :rtype: :var:`DialogTurnResult.result`
286
+ :rtype: :var:`botbuilder.dialogs. DialogTurnResult.result`
287
287
"""
288
288
return await outer_dc .end_dialog (result )
0 commit comments