Interface BaseSkillBuilder
Methods
addErrorHandler
- addErrorHandler(matcher: function, executor: function): this
-
Parameters
-
matcher: function
-
- (input: HandlerInput, error: Error): Promise<boolean> | boolean
-
Parameters
Returns Promise<boolean>
|
boolean
-
executor: function
-
- (input: HandlerInput, error: Error): Promise<Response> | Response
-
Parameters
Returns Promise<Response>
|
Response
Returns this
addRequestHandler
- addRequestHandler(matcher: function | string, executor: function): this
-
Parameters
-
matcher: function | string
-
executor: function
-
-
Parameters
Returns Promise<Response>
|
Response
Returns this
withCustomUserAgent
- withCustomUserAgent(customUserAgent: string): this
withSkillId
- withSkillId(skillId: string): this
An interface containing help functions to build a CustomSkill.