Skip to main content

HandlerService

Stentor API Reference


Stentor API Reference / stentor-models/src / HandlerService

Interface: HandlerService

Defined in: packages/stentor-models/src/Services/HandlerService.ts:10

The HandlerService provides the assistant application's dialog management with logic and content in the form of a Handler.

Methods​

get()​

get(id): Promise\<Handler\<Content, Data, Forward, Redirect>> | Promise\<undefined>

Defined in: packages/stentor-models/src/Services/HandlerService.ts:17

Returns the handler for the provided ID or undefined if not found.

Parameters​

id​

Either the ID as a string or an object that has the ID under intentId

string | { intentId: string; }

Returns​

Promise\<Handler\<Content, Data, Forward, Redirect>> | Promise\<undefined>