IPromptContext interface
Contextual information tracked for a Prompt. This information can be accessed within a prompt through session.dialogData.
Properties
active |
Used to track which Prompt.matches() handler is active. This is used internally to move the handlers waterfall to the next step. |
is |
If true, we're returning from an unexpected interruption and should send the initial turn-0 prompt again. |
last |
Timestamp of the last turn. |
options | Options that the prompt was called with. |
turns | Number of times the user has interacted with the prompt. The first message sent to the user is turn-0, the users first reply is turn-1, and so forth. |
Property Details
activeIntent
Used to track which Prompt.matches() handler is active. This is used internally to move the handlers waterfall to the next step.
activeIntent: string
Property Value
string
isReprompt
If true, we're returning from an unexpected interruption and should send the initial turn-0 prompt again.
isReprompt: boolean
Property Value
boolean
lastTurn
Timestamp of the last turn.
lastTurn: number
Property Value
number
options
turns
Number of times the user has interacted with the prompt. The first message sent to the user is turn-0, the users first reply is turn-1, and so forth.
turns: number
Property Value
number