{ | |
"name": "analyze_sentiment", | |
"description": "Analyze sentiment of text with confidence scoring and emotion detection", | |
"parameters": { | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string", | |
"description": "Text to analyze for sentiment" | |
}, | |
"language": { | |
"type": "string", | |
"description": "Language code (en, es, fr, etc.)", | |
"default": "en" | |
}, | |
"include_emotions": { | |
"type": "boolean", | |
"description": "Include detailed emotion breakdown", | |
"default": false | |
}, | |
"confidence_threshold": { | |
"type": "number", | |
"description": "Minimum confidence score (0.0-1.0)", | |
"minimum": 0.0, | |
"maximum": 1.0, | |
"default": 0.7 | |
} | |
}, | |
"required": ["text"] | |
}, | |
"test_questions": [ | |
"Analyze the sentiment of this review: 'The product was amazing and exceeded my expectations!'", | |
"Check sentiment for 'I'm feeling frustrated with this service' with emotion details", | |
"What's the sentiment of this Spanish text: 'Me encanta este lugar' in Spanish?" | |
] | |
} |