/** * Sends a text message to the Nutrition Advisor. * @param message - The message to be sent. * @returns A Promise resolving to the status of the message sending. */sendMessage(message: string): Promise<PassioAdvisorMessageResultStatus |null>
constresponse=awaitNutritionAdvisor.sendMessage(message)switch (response?.status) {case'Success':// get your response here {response.response}returncase'Error':// get your erorr response here {response.message}return }