Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkillInvoker

Utility to invoke a Skill or RequestHandler for testing.

This wrapper mimics the lifecycle of an ASK Skill using AWS Lambda that is repeatedly invoked as a 'stateless' function which receives actual state in the session attributes of the Request object.

Hierarchy

  • SkillInvoker

Constructors

Methods

Constructors

constructor

  • new SkillInvoker(skillOrRequestHandler: Skill | RequestHandler): SkillInvoker
  • Parameters

    • skillOrRequestHandler: Skill | RequestHandler

    Returns SkillInvoker

Methods

invoke

  • Invoke the skill with a control-input object. The control input is first converted to a RequestEnvelope(IntentRequest)

    Parameters

    Returns Promise<TestResponseObject>