analyzeSentiment
chainalign-backend / gemini / analyzeSentiment
Function: analyzeSentiment()
analyzeSentiment(
text,tenantId,user):Promise<any>
Defined in: gemini.js:91
Analyzes the sentiment of the given text using Gemini via AIGateway.
Parameters
text
string
The text to analyze for sentiment.
tenantId
string
The ID of the tenant making the request.
user
any
The user object (e.g., from req.user).
Returns
Promise<any>
An object containing sentiment (e.g., positive, negative, neutral) and confidence.