ICallSessionOptions interface
Options passed to the constructor of a session.
Properties
auto |
(Optional) time to allow between each message sent as a batch. The default value is 150ms. |
dialog |
(Optional) arguments to pass to the conversations initial dialog. |
dialog |
Default error message to send users when a dialog error occurs. |
dialog |
Unique ID of the dialog to use when starting a new conversation with a user. |
library | The bots root library of dialogs. |
localizer | (Optional) localizer to use when localizing the bots responses. |
middleware | Array of session middleware to execute prior to each request. |
on |
Function to invoke when the sessions state is saved. |
on |
Function to invoke when a batch of messages are sent. |
prompt |
Default prompt settings to use. |
recognize |
Default recognizer settings to use. |
record |
Default recording settings to use. |
Property Details
autoBatchDelay
(Optional) time to allow between each message sent as a batch. The default value is 150ms.
autoBatchDelay?: number
Property Value
number
dialogArgs
(Optional) arguments to pass to the conversations initial dialog.
dialogArgs?: any
Property Value
any
dialogErrorMessage
Default error message to send users when a dialog error occurs.
dialogErrorMessage?: string | string[] | IAction | IIsAction
Property Value
dialogId
Unique ID of the dialog to use when starting a new conversation with a user.
dialogId: string
Property Value
string
library
localizer
(Optional) localizer to use when localizing the bots responses.
localizer?: ILocalizer
Property Value
middleware
Array of session middleware to execute prior to each request.
middleware: ICallSessionMiddleware[]
Property Value
onSave
Function to invoke when the sessions state is saved.
onSave: (done: (err: Error) => void) => void
Property Value
(done: (err: Error) => void) => void
onSend
Function to invoke when a batch of messages are sent.
onSend: (messages: IEvent[], done: (err: Error) => void) => void
Property Value
(messages: IEvent[], done: (err: Error) => void) => void
promptDefaults
recognizeDefaults
Default recognizer settings to use.
recognizeDefaults: IRecognizeAction