DialogManager Class
- java.
lang. Object - com.
microsoft. bot. dialogs. DialogManager
- com.
public class DialogManager
Class which runs the dialog system.
Constructor Summary
| Constructor | Description |
|---|---|
| DialogManager(Dialog rootDialog, String dialogStateProperty) |
Initializes a new instance of the DialogManager class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Conversation |
getConversationState()
Gets the Conversation |
|
Dialog |
getDialogs()
Returns the Dialog |
| java.lang.Integer |
getExpireAfter()
Gets the (optinal) number of milliseconds to expire the bot's state after. |
|
Turn |
getInitialTurnState()
Gets Initial |
| Dialog |
getRootDialog()
Gets the Root Dialog. |
|
Dialog |
getStateManagerConfiguration()
Gets the Dialog |
|
User |
getUserState()
Gets the User |
|
java.util.concurrent.CompletableFuture<Dialog |
onTurn(TurnContext context)
Runs dialog system in the context of an ITurn |
| void |
setConversationState(ConversationState withConversationState)
Sets the Conversation |
| void |
setDialogs(DialogSet withDialogSet)
Set the Dialog |
| void |
setExpireAfter(Integer withExpireAfter)
Sets the (optional) number of milliseconds to expire the bot's state after. |
| void |
setRootDialog(Dialog dialog)
Sets root dialog to use to start conversation. |
| void |
setStateManagerConfiguration(DialogStateManagerConfiguration withStateManagerConfiguration)
Sets the Dialog |
| void |
setUserState(UserState userState)
Sets the User |
Methods inherited from java.lang.Object
Constructor Details
DialogManager
public DialogManager(Dialog rootDialog, String dialogStateProperty)
Initializes a new instance of the DialogManager class.
Parameters:
Method Details
getConversationState
public ConversationState getConversationState()
Gets the ConversationState.
Returns:
getDialogs
public DialogSet getDialogs()
Returns the DialogSet.
Returns:
getExpireAfter
public Integer getExpireAfter()
Gets the (optinal) number of milliseconds to expire the bot's state after.
Returns:
getInitialTurnState
public TurnContextStateCollection getInitialTurnState()
Gets InitialTurnState collection to copy into the TurnState on every turn.
Returns:
getRootDialog
public Dialog getRootDialog()
Gets the Root Dialog.
Returns:
getStateManagerConfiguration
public DialogStateManagerConfiguration getStateManagerConfiguration()
Gets the DialogStateManagerConfiguration.
Returns:
getUserState
public UserState getUserState()
Gets the UserState.
Returns:
onTurn
public CompletableFuture
Runs dialog system in the context of an ITurnContext.
Parameters:
Returns:
setConversationState
public void setConversationState(ConversationState withConversationState)
Sets the ConversationState.
Parameters:
setDialogs
public void setDialogs(DialogSet withDialogSet)
Set the DialogSet.
Parameters:
setExpireAfter
public void setExpireAfter(Integer withExpireAfter)
Sets the (optional) number of milliseconds to expire the bot's state after.
Parameters:
setRootDialog
public void setRootDialog(Dialog dialog)
Sets root dialog to use to start conversation.
Parameters:
setStateManagerConfiguration
public void setStateManagerConfiguration(DialogStateManagerConfiguration withStateManagerConfiguration)
Sets the DialogStateManagerConfiguration.
Parameters:
setUserState
public void setUserState(UserState userState)
Sets the UserState.
Parameters: