DialogManager class
Class which runs the dialog system.
- Extends
Constructors
Dialog |
Creates an instance of the DialogManager class. |
Properties
conversation |
|
dialogs | |
expire |
|
initial |
Values that will be copied to the |
root |
Gets the root Dialog ID. |
state |
|
user |
Methods
configure(Partial<Dialog |
Set configuration settings. |
on |
Runs dialog system in the context of a TurnContext. |
Inherited Methods
get |
Gets the converter for the selector configuration. * |
Constructor Details
DialogManager(Dialog<{}>, string)
Creates an instance of the DialogManager class.
new DialogManager(rootDialog?: Dialog<{}>, dialogStateProperty?: string)
Parameters
- rootDialog
-
Dialog<{}>
Optional, root Dialog to use.
- dialogStateProperty
-
string
Optional, alternate name for the dialogState property. (Default is "DialogStateProperty")
Property Details
conversationState
dialogs
expireAfter
expireAfter?: number
Property Value
number
initialTurnState
Values that will be copied to the TurnContext.turnState
at the beginning of each turn.
TurnContextStateCollection initialTurnState
Property Value
The turn state collection.
rootDialog
stateConfiguration
userState
Method Details
configure(Partial<DialogManagerConfiguration>)
Set configuration settings.
function configure(config: Partial<DialogManagerConfiguration>): DialogManager
Parameters
- config
-
Partial<DialogManagerConfiguration>
Configuration settings to apply.
Returns
The cofigured DialogManager context.
onTurn(TurnContext)
Runs dialog system in the context of a TurnContext.
function onTurn(context: TurnContext): Promise<DialogManagerResult>
Parameters
- context
- TurnContext
TurnContext for the current turn of conversation with the user.
Returns
Promise<DialogManagerResult>
Result of running the logic against the activity.
Inherited Method Details
getConverter(string)
Gets the converter for the selector configuration. *
function getConverter(_property: string): Converter<unknown, unknown> | ConverterFactory<unknown, unknown>
Parameters
- _property
-
string
The key of the conditional selector configuration. *
Returns
Converter<unknown, unknown> | ConverterFactory<unknown, unknown>
The converter for the selector configuration.
Inherited From Configurable.getConverter