module.exports.confirmIntentResponse = function()

in lex-validate-lambda/searchHotel/ResponseHandler.js [112:136]


module.exports.confirmIntentResponse = function (
  sessionAttributes,
  intentName,
  slots,
  messageText
) {
  return {
    sessionState: {
      sessionAttributes,
      dialogAction: {
        type: "ConfirmIntent",
      },
      intent: {
        name: intentName,
        slots,
      },
    },
    messages: [
      {
        contentType: "PlainText",
        content: messageText,
      },
    ],
  };
};