(Optional) options that can be passed into the DialogContext.beginDialog() method.
Creates a new instance of the Dialog class.
(Optional) options that can be passed into the DialogContext.beginDialog() method.
OptionaldialogId: stringOptional. unique ID of the dialog.
ReadonlydialogsThe containers dialog set.
ProtectedinitialID of the child dialog that should be started anytime the component is started.
This defaults to the ID of the first child dialog added using addDialog().
StaticEndGets a default end-of-turn result.
Sets the unique ID of the dialog.
Adds a child Dialog or prompt to the components internal DialogSet.
The child Dialog or prompt to add.
The ComponentDialog after the operation is complete.
The Dialog.id of the first child added to the component will be assigned to the initialDialogId property.
Called when the dialog is started and pushed onto the parent's dialog stack.
The parent DialogContext for the current turn of conversation.
Optionaloptions: OOptional, initial information to pass to the dialog.
A Promise representing the asynchronous operation.
If the task is successful, the result indicates whether the dialog is still active after the turn has been processed by the dialog. By default, this calls the Dialog.BeginDialogAsync(DialogContext, object, CancellationToken) method of the component dialog's initial dialog, as defined by InitialDialogId. Override this method in a derived class to implement interrupt logic.
ProtectedcheckChecks to see if a containers child dialogs have changed since the current dialog instance was started.
Current dialog context.
Fluent method for configuring the object.
Configuration settings to apply.
The Configurable after the operation is complete.
Called when the dialog is continued, where it is the active dialog and the user replies with a new Activity.
The parent DialogContext for the current turn of conversation.
A Promise representing the asynchronous operation.
Creates the inner dialog context
the outer dialog context
The created Dialog Context.
ProtectedendCalled when the components last active child dialog ends and the component is ending.
Dialog context for the parents DialogSet.
Result returned by the last active child dialog. Can be a value of undefined.
A promise resolving to the dialog turn result.
Called when the Dialog is ending.
The TurnContext object for this turn.
State information associated with the instance of this component Dialog on its parent's dialog stack.
Reason why the Dialog ended.
A Promise representing the asynchronous operation.
Finds a child dialog that was previously added to the container.
ID of the dialog to lookup.
The Dialog if found; otherwise null.
Gets the converter for the selector configuration. *
The key of the conditional selector configuration. *
The converter for the selector configuration.
ProtectedgetReturns internal version identifier for this container.
Version which represents the change of the internals of this container.
DialogContainers detect changes of all sub-components in the container and map that to a versionChanged event.
Because they do this, DialogContainers "hide" the internal changes and just have the .id. This isolates changes
to the container level unless a container doesn't handle it. To support this DialogContainers define a
protected method getInternalVersion() which computes if this dialog or child dialogs have changed
which is then examined via calls to checkForVersionChange().
An encoded string used to aid in the detection of agent changes on re-deployment.
Unique string which should only change when dialog has changed in a way that should restart the dialog.
This defaults to returning the dialog's id but can be overridden to provide more
precise change detection logic. Any dialog on the stack that has its version change will
result in a versionChanged event will be raised. If this event is not handled by the agent,
an error will be thrown resulting in the agent error handler logic being run.
Returning an empty string will disable version tracking for the component all together.
ProtectedonCalled anytime an instance of the component has been started.
Dialog context for the components internal DialogSet.
Optionaloptions: O(Optional) options that were passed to the component by its parent.
A promise resolving to the dialog turn result.
ProtectedonProtectedonCalled anytime a multi-turn component receives additional activities.
Dialog context for the components internal DialogSet.
A promise resolving to the dialog turn result.
Called when an event has been raised, using DialogContext.emitEvent(),
by either the current dialog or a dialog that the current dialog started.
The dialog context for the current turn of conversation.
The event being raised.
True if the event is handled by the current dialog and bubbling should stop.
ProtectedonCalled when the component is ending.
Context for the current turn of conversation.
The components instance data within its parents dialog stack.
The reason the component is ending.
A promise representing the asynchronous operation.
ProtectedonCalled after an event was bubbled to all parents and wasn't handled.
The dialog context for the current turn of conversation.
The event being raised.
Whether the event is handled by the current dialog and further processing should stop.
ProtectedonCalled before an event is bubbled to its parent.
The dialog context for the current turn of conversation.
The event being raised.
Whether the event is handled by the current dialog and further processing should stop.
ProtectedonCalled when the component has been requested to re-prompt the user for input.
Context for the current turn of conversation.
The instance of the current dialog.
A promise representing the asynchronous operation.
Called when the dialog should re-prompt the user for input.
The TurnContext object for this turn.
State information for this dialog.
A Promise representing the asynchronous operation.
Called when a child dialog on the parent's dialog stack completed this turn, returning control to this dialog component.
The DialogContext for the current turn of conversation.
Reason why the dialog resumed.
Optional_result: anyOptional, value returned from the dialog that was called. The type of the value returned is dependent on the child dialog.
A Promise representing the asynchronous operation.
If the task is successful, the result indicates whether this dialog is still active after this dialog turn has been processed. Generally, the child dialog was started with a call to beginDialog(DialogContext, object) in the parent's context. However, if the DialogContext.replaceDialog(string, object) method is called, the logical child dialog may be different than the original. If this method is not overridden, the dialog automatically calls its RepromptDialog(ITurnContext, DialogInstance) when the user replies.
Base class for a dialog that contains other child dialogs.
Remarks
Component dialogs let you break your agent's logic up into components that can themselves be added as a dialog to another
ComponentDialogorDialogSet. Components can also be exported as part of a node package and used within other agents.