Generic intent handler.

Type parameters

  • REQ

  • RES

Callable

  • __call ( request REQ ) : Promise < RES > | RES
  • Callback function for the intent.

    Implement this function to handle each intent request and return a response.

    Parameters

    • request: REQ

    Returns Promise<RES> | RES