You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Packages prompt and necessary settings, then sends a request to
24
+
* Vertex API.
25
+
* A check is performed to see if the response from Vertex AI contains FALSE as a value.
26
+
* Returns the outcome of that check which is a boolean.
27
+
*
28
+
* @param emailText - Email message that is sent to the model.
29
+
*/
30
+
31
+
functionprocessSentiment(emailText){
32
+
constprompt=`Analyze the following message: ${emailText}. If the sentiment of this message is negative, answer with FALSE. If the sentiment of this message is neutral or positive, answer with TRUE. Do not use any other words than the ones requested in this prompt as a response!`;
0 commit comments