const { apiError, apiSuccess, requestAssist } = require('./requestAssist.js')

async function recommendServices({ scenario = '', message = '' } = {}) {
  try {
    const result = await requestAssist({
      intent: 'recommendServices',
      scenario,
      message,
    })
    return apiSuccess(result, result.reply || '已按场景推荐研究院服务。后续提交、下单和支付都需要用户手动确认。')
  } catch (error) {
    return apiError(error, '服务推荐失败')
  }
}

module.exports = recommendServices
