DialogInspector class
Class for inspecting current dialog context.
Constructors
| Dialog |
Initializes a new instance of the |
Properties
| conversation |
Gets or sets the ConversationState. |
| dialogs | Gets or sets global dialogs that you want to have be callable. |
| initial |
Gets initialTurnState collection to copy into the turnState on every turn. |
| root |
Gets root dialog to use to start conversation. Sets root dialog to use to start conversation. |
| state |
Gets or sets the DialogStateManagerConfiguration. |
| user |
Gets or sets the UserState. |
Methods
| inspect(Turn |
Inspects a dialogs memory. |
Constructor Details
DialogInspector(Dialog, ResourceExplorer, string)
Initializes a new instance of the DialogInspector class.
new DialogInspector(rootDialog?: Dialog, resourceExplorer?: ResourceExplorer, dialogStateProperty?: string)
Parameters
- rootDialog
-
Dialog
Root dialog to use.
- resourceExplorer
-
ResourceExplorer
Resource explorer for expression access to .lg templates.
- dialogStateProperty
-
string
Alternate name for the dialogState property. (Default is "DialogState").
Property Details
conversationState
Gets or sets the ConversationState.
conversationState: ConversationState
Property Value
ConversationState
dialogs
Gets or sets global dialogs that you want to have be callable.
dialogs: DialogSet
Property Value
DialogSet
initialTurnState
Gets initialTurnState collection to copy into the turnState on every turn.
initialTurnState: TurnContextStateCollection
Property Value
TurnContextStateCollection
rootDialog
Gets root dialog to use to start conversation. Sets root dialog to use to start conversation.
Dialog | undefined rootDialog
Property Value
Dialog | undefined
The root dialog.
stateConfiguration
Gets or sets the DialogStateManagerConfiguration.
stateConfiguration: DialogStateManagerConfiguration
Property Value
DialogStateManagerConfiguration
userState
Gets or sets the UserState.
userState: UserState
Property Value
UserState
Method Details
inspect(TurnContext, DialogContextInspector)
Inspects a dialogs memory.
function inspect(context: TurnContext, inspector: DialogContextInspector): Promise<void>
Parameters
- context
-
TurnContext
Turn context.
- inspector
- DialogContextInspector
Inspector for analyzing/modifying dialog context.
Returns
Promise<void>